You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this closed issue (#6) I see that it is possible to post JSON data. I can't seem to get it to work. I'm not a PHP expert so I could be missing something basic.
I keep getting a "Authentication parameters missing" message from the server so I thought I might not have a proper access token but a var_dump of $client looks ok to me...
Hi,
In this closed issue (#6) I see that it is possible to post JSON data. I can't seem to get it to work. I'm not a PHP expert so I could be missing something basic.
my code
$data = '{"action": "read"}';
$response = $client->fetch('https://the-api-resource', $data, 'POST');
I keep getting a "Authentication parameters missing" message from the server so I thought I might not have a proper access token but a var_dump of
$client
looks ok to me...object(OAuth2\Client)#3 (10) { ["client_id":protected]=> string(8) "7c23519f" ["client_secret":protected]=> string(32) "6e71a3a1452f4ee1df71771192dbc526" ["client_auth":protected]=> int(0) ["access_token":protected]=> string(40) "c88eeaea6cf10ec207edfe0f0fc2e27d55f1cc29" ["access_token_type":protected]=> int(0) ["access_token_secret":protected]=> NULL ["access_token_algorithm":protected]=> NULL ["access_token_param_name":protected]=> string(12) "access_token" ["certificate_file":protected]=> NULL ["curl_options":protected]=> array(0) { } }
Thanks
The text was updated successfully, but these errors were encountered: