Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

getAccessToken returns HTTP Code 400 #325

Open
@bhumikadividebuy2024

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /