I've used quite a few RESTful API's over recent years, but never before have I encountered one that is as frustrating this!
I have a simple task: retrieve the filing history list for a company, then retrieve a document.
Simple right? Wrong!
Steps using the built-in website test tools:
I enter the company number I am interested in (01777777), items_per_page=100, and select my API key. Click 'Try it Out', works fine.
I enter the first 'document_metadata' URL returned which is https://document-api.companieshouse.gov.uk/document/Bn6EK_4buGwtLlVIFJO3OZcG2p9rj0w4-RwbtV8HR5s, then it asks for Authorisation.
The example on the page lists Authorisation as: Basic bXlfYXBpX2tleTo=
So on that note, 'Basic' is the token_type, but where do I get the access_token from??? When I try and enter my api key here, I get an error every single time:
If access_token was clickable I'd be able to follow it to a definition like any sane person would do, but no, that makes too much sense.
Apologies about the tone of this but I am incredibly frustrated at what should be a very simple task...