x

Why doesn't platform API token save to site?

I am trying to use the weebly REST api in order to get sale data from my site using a python script, but I can't seem to generate the platform api token correctly. I navigate to the normal weebly site, go to edit site, settings and scroll down to where it says 'generate platform api'. I can click the button and the api is correctly generated, but whenever I navigate out of the settings page or even publish the site, this token is not saved and doesn't work in the script, only returns saying the api key is invalid. From what I understand there are two seperate weebly api's, one for weebly apps and another for completing tasks like what I am trying to do. I can only seem to find prominent information on the weebly based apps that use OAuth to verify login, but I simply want to use the python requests library to call 'https://api.weebly.com/v2/user/sites/{SITE_ID}/store' and send the api token in order to verify my account sign-in and get json data back. Has anyone had any luck using this REST api and saving these keys correctly?

552 Views
Message 1 of 1
Report
0 REPLIES 0