I am trying to make an initial call to get contact by email, these are first tests. It is not returning anything, does anyone have any ideas - does the IP of the server need to be whitelisted? I didn't see that anywhere.
https://api.hubapi.com/contacts/v1/contact/email/foo@example.com/profile?hapikey=demo string(155) "{"status":"error","message":"contact does not exist","correlationId":"4d192aed-9202-476a-83a0-fcd587b17ce1","requestId":"5702fadf179a5d5563fe64760716103a"}"
Curl won't send any headers by default I think - maybe you're behind a firewall that blocks headerless requests?
I tried your file_get_contents one too - but that just returned a 404 not found error
Another useful program is Postman which will let you do posts easily as well and can have tabs for different calls. Very useful when learning APIs like this.
Thanks for that suggestion, it comes back with the JSON including "contact does not exist". As a result I can look more closely at why the way I was calling it didn't work / get a response...