paypal v2 curl api invalid_client

  curl, paypal, paypal-sandbox, php

The question is about paypal API v2 and curl request, I’m getting "error":"invalid_client","error_description":"Client Authentication failed"

(tested with cCurl and PHP, both same invalid_client error)

I’m using the documentation

curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Basic __id__:__secret__"

I’m still in sandbox phase.

I have the feeling I miss a step or something but unable to figure out what…

I went to in the section My apps & credentials
were there is SANDBOX API CREDENTIALS with Client ID and Secret
Secret is enabled and tried to create a new one….

Is someone knows what to do at this point ?

Source: Ask PHP