323 votes
0 answers
api - Shopify - Custom PHP app gives Missing Authorization key error
Solution:
It seems like the Shopify API for PHP expects you to (https://github.com/Shopify/shopify-api-php/blob/7a5b651d276c833101ebb7a43106e55b2e532581/src/Auth/OAuth.php#L219) set theAuthorization
header field/ doesn't supportX-Shopify-Access-Token
. Try this instead:
$requestHeaders = array(
'api_version'=>'2022-10',
'Authorization'=>'Bearer YOUR_ACCESS_TOKEN'
);
Undefined asked
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.