x

Platform API Token

Hi,

From my setting page in weebly, i have generated the Platform API Token.

Question: With this token and site ID, do i need to do something else for connecting through the API and get e.g. orders from the shop. I test this through POSTman for getting results - but only get the
{
    "error": {
        "code": 403,
        "message": "Unknown api key provided."
    }
}

Which of cause is dued to the API key.

And the API key generater in weebly is not there?

I have tried to google and look for answears, but with no luck.

I found something on the weebly Cloud and it look like something totally different, but there is can see the key generator page.

I also have a develope account and created an app, but I can't get the app and my client to match or do something together..

Can I anyone help me on this ??

What am I doing wrong.

Appreciate the help..

Thanks!

/Martin

3,097 Views
Message 1 of 5
Report
4 REPLIES 4

Hello @gliczynski

Yes, there is a big distinction between the Weebly Platform API, and the Weebly Cloud API.

Are you building an app for Weebly's App Center?

The base URL you use to access the API will tell you which documentation to use for authenticating API requests properly.

If it is `https://api.weebly.com`, then it it is the Platform API, and you will use this documentation: https://dev.weebly.com/about-rest-apis.html

If it is `https://api.weeblycloud.com`, then it is the Cloud API, and you will use this documentation: https://cloud-developer.weebly.com/about-the-rest-apis.html

Once I know the answer to the above questions, I will be able to help you further in resolving your issue.

Tags (3)
3,073 Views
Message 2 of 5
Report

Hi,

I actually just want to pull out data from the store, so my client have a better overview than what the UI is given me today.

the link that you sent me doesn't help me, and i have already tried that.. but maybe i'm doing some thing wrong.

See the attached image.

image

hope you can help!

/Martin

3,055 Views
Message 3 of 5
Report

Hi, is there anybody who can help on this issue!!

Thanks!!!

3,032 Views
Message 4 of 5
Report

Have you made certain that your app is successfully executing "redirecting to the final destination" per the documentation here?
Here's the important excerpt about this required action:

Redirect to Final Destination

When the secret and authorization code are verified, Weebly responds with the following:
  • access_token: the permanent token​
  • callback_url: The final endpoint, as configured in the manifest. 
Note: Be sure to store your tokens so that you can gain access to APIs. Tokens do not expire and are site-specific. If a site owner manages more than one site that installs your app, you will need to store the token for each site.

Once you receive the token, you have access to the Weebly API for this site. You now redirect to the final destination using the callback URL sent in the previous reply. The app is now considered connected. As long as the app is connected it can continue to access data via the Weebly API.
3,027 Views
Message 5 of 5
Report