Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAccessToken returns HTTP Code 400 #325

Open
bhumikadividebuy2024 opened this issue Jun 7, 2024 · 0 comments
Open

getAccessToken returns HTTP Code 400 #325

bhumikadividebuy2024 opened this issue Jun 7, 2024 · 0 comments

Comments

@bhumikadividebuy2024
Copy link

Hi, I'm trying to call the getAccessToken function. I've put the function call in a try-and-catch block and got this response: "PHPShopify\Exception\CurlException: Request failed with HTTP Code 400.". What am I doing wrong here?

I've already set the ShopUrl with the 'shop.myshopify.com' format.

I've verified the params and URL and the details are as below.

API URL: https://{store_name}.myshopify.com/admin/oauth/access_token
params: {
    "client_id" : "client_id",
    "client_secret" : "client_secret",
    "code": "code"
}

Error:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant