I have this command that runs from command line perfectly, and I need to transform it into PHP curl and get headers for response. What it would look like?
curl -X POST -i -H 'Authorization: OAuth oauth_consumer_key="abcdrsldkfj", oauth_nonce="somerandom", oauth_signature="generatedsignature", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1456967973", oauth_version="1.0"' https://api.fitbit.com/oauth/request_token
I tried to use a few libraries to authenticate with FitBit but no luck so far. Trying to use plain curl for authentication.