Hi,
This is my first attempt, so sorry if this has a very obvious solution.
I’ve crawled through the questions and haven’t been able to find a clear solution. I have been trying to do a simple get request (via Axios), I have done this on APIs that didn’t need authorisation, but cannot seem to work out how to do it for companies house.
My request is basically:
const res = await axios.get(https://api.company-information.service.gov.uk/company/06219884/officers
, { ‘headers’: { ‘Authorization’: token } });
Please can you let me know where I’m going wrong. I only want to just do a basic get request for the directors of a company, so if I’ve overcomplicated this please let me know.