Open theo-armour opened 5 years ago
Hi, @theo-armour! What you have to do is:
GET /accounts/{account}
section in Swagger UI and click on the toggle button at the right. This should start an in-browser OAuth authentication process.If any of the steps from 2 onwards fails, try an incognito tab. There might be some issues with the JS inside Swagger UI.
@igstan @sbxalex
Yay! I'm in. Thank you for the speedy weekend response.
It would save newbs like me hours of trial and error, if the Swagger instructions your provided are made available via a link in the Swagger UI page and as part of the Shoeboxed GitHub pages.
I look forward to exploring the API in detail.
My objective is to create simple FOSS methods to transfer documents from Shoeboxed to the Internet Archive and or other similar online archives without expiry dates.
More about this effort ( and questions) in future GitHub issues.
Theo
I am trying to initiate the Shoeboxed Swagger UI at:
https://api.shoeboxed.com/v2/explorer/index.html
The goal is to fill the input with "OAuth Client ID" as placeholder text with the correct data.
Here is what I am doing:
Create a test app at https://app.shoeboxed.com/member/v2/settings#api with a redirect url of https://api.shoeboxed.com/v2/explorer/o2c.html. I have received an ID and secret.
Use the ID to obtain a credential using:
https://id.shoeboxed.com/oauth/authorize?client_id=<client id>&response_type=code&scope=all&redirect_uri=https://api.shoeboxed.com/v2/explorer/o2c.html&state=012345678
An error is reported in the JavaScript console, but there is an entry for a credential:
Use this credential to create the following curl:
The curl receives the following error:
What should I be doing to get the Swagger UI to run as it should?