Open HariSekhon opened 4 years ago
Access to the API is restricted for users without paid subscriptions (documentation). A few routes will work, but not many. However, I'm not sure why you would need an /accounts
route for a badge. It looks like the issue you have linked above is trying to call /projects/:projectId/branchRunStatus
, which should be possible to call without a token.
@a-murphy
Thanks very much for the feedback.
I have tested /projects/:projectId/branchRunStatus
and I can indeed access that without even a token.
Would it possible to allow free account tokens to access /accounts/:accountId/runStatus
? It sort of doesn't make sense to have such limited API access, such as projects but not builds. I've used a lot of hosted CI systems and I don't recall any of the others having such a restricted API as it means personal developers like me can't really properly test out or develop against the system.
Regarding the /accounts
route, I had a script to find the account id from the token, for easier use in other scripts, to auto figure it out for other scripts so it would be good if that worked too.
The Shippable API is broken for both the accounts and builds endpoints, but works with the same account id and token for the projects endpoint, implying that my account id and token auth are not the problem.
The error I get for both the builds and account endpoints are:
I use a script in my GitHub for calling the builds API which hasn't changed, which makes me think that it's something on the authz end that might have changed on Shippable's end (I did check http://status.shippable.com/ but everything is reported as operational there):
but the projects API endpoint works with the same token and account ID:
The accounts API endpoint has always been broken for me, I raised the issue on the website but realize it's probably better tracked here too (can fork this to a new ticket if needed, but not sure if this is really the same underlying problem):