Skip to content
Advertisement

Send APi key and secret key in CURL

I’m trying to convert the line below to be used with PHP whilst also learning how to use CURL!

JavaScript

Bellow is what I have so far, however I keep getting HTTP ERROR 403 UnauthorizedException accessing service error, so I think the key and secret and not being sent correctly.

JavaScript

Advertisement

Answer

Use this tool as it save so much time – https://incarnate.github.io/curl-to-php/

Generated this:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement