PHP Classes

PUT does not stop to load

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  PUT does not stop to load  >  (Un) Subscribe thread alerts  
Subject:PUT does not stop to load
Summary:I use PUT to set the billing state on teamviewer
Messages:15
Author:Mathias
Date:2014-08-14 11:10:01
 
  1 - 10   11 - 15  

  11. Re: PUT does not stop to load   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-08-28 10:45:41 - In reply to message 9 from Senthilkumar Santhalingam
BTW, I meant the latest version of the HTTP class. That is the one that was fixed to solve this problem. You need to upgrade that class.

  12. Re: PUT does not stop to load   Reply   Report abuse  
Picture of Senthilkumar Santhalingam Senthilkumar Santhalingam - 2014-08-28 20:59:20 - In reply to message 10 from Manuel Lemos
Authentication window comes up, after enter linkedin email and password. I am getting error. API is it add a member to a group.

api.linkedin.com/v1/people/~/group- ...

  13. Re: PUT does not stop to load   Reply   Report abuse  
Picture of Senthilkumar Santhalingam Senthilkumar Santhalingam - 2014-08-28 21:05:06 - In reply to message 10 from Manuel Lemos
["debug"]=>
int(1)
["debug_http"]=>
int(1)
["exit"]=>
bool(false)
["debug_output"]=>
string(5976) "OAuth client: Checking the OAuth token authorization state
OAuth client: The OAuth token is not yet authorized
OAuth client: Checking the OAuth token and verifier
OAuth client: Accessing the OAuth access token at https://api.linkedin.com/uas/oauth/accessToken
OAuth client: Access token expiry: 2014-10-27 20:38:11 UTC
OAuth client: The OAuth token was authorized
OAuth client: Accessing the API call at https://api.linkedin.com/v1/people/~/group-memberships/4380946
OAuth client: Could not retrieve the OAuth access token. Error: it was not possible to access the API call: it was returned an unexpected response status 400 Response:
["debug_prefix"]=>
string(14) "OAuth client: "
["server"]=>
string(8) "LinkedIn"
["configuration_file"]=>
string(24) "oauth_configuration.json"
["request_token_url"]=>
string(61) "https://api.linkedin.com/uas/oauth/requestToken?scope={SCOPE}"
["dialog_url"]=>
string(47) "https://api.linkedin.com/uas/oauth/authenticate"
["offline_dialog_url"]=>
string(0) ""
["append_state_to_redirect_uri"]=>
string(0) ""
["access_token_url"]=>
string(46) "https://api.linkedin.com/uas/oauth/accessToken"
["oauth_version"]=>
string(4) "1.0a"
["url_parameters"]=>
bool(true)
["authorization_header"]=>
bool(true)
["token_request_method"]=>
string(3) "GET"
["signature_method"]=>
string(9) "HMAC-SHA1"

.....................

string(0) ""
["get_token_with_api_key"]=>
bool(false)
["scope"]=>
string(38) "r_fullprofile r_emailaddress rw_groups"
["offline"]=>
bool(false)
["access_token"]=>
string(36) "ed1baf02-ad56-4271-af45-a64a488a7448"
["access_token_secret"]=>
string(36) "0d42eb04-ac10-4f80-b38b-0991fdcfbae4"
["access_token_expiry"]=>
string(19) "2014-10-27 20:38:11"
["access_token_type"]=>
string(0) ""
["default_access_token_type"]=>
string(0) ""
["access_token_parameter"]=>
string(0) ""
["access_token_response"]=>
NULL
["store_access_token_response"]=>
bool(false)
["access_token_authentication"]=>
string(0) ""
["refresh_token"]=>
string(0) ""
["authorization_error"]=>
string(0) ""
["response_status"]=>
int(400)
["oauth_username"]=>
string(0) ""
["oauth_password"]=>
string(0) ""
["oauth_user_agent"]=>
string(70) "PHP-OAuth-API (http://www.phpclasses.org/oauth-api $Revision: 1.112 $)"

  14. Re: PUT does not stop to load   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-08-29 01:13:16 - In reply to message 13 from Senthilkumar Santhalingam
I need to see the whole debug output that goes to PHP error log file because includes the actual HTTP requests and response.

I suspect you are not sending the correct parameters that API call requires. Can you show the actual code you are using to define the parameters and call the API?

  15. Re: PUT does not stop to load   Reply   Report abuse  
Picture of Senthilkumar Santhalingam Senthilkumar Santhalingam - 2014-08-29 03:07:57 - In reply to message 14 from Manuel Lemos
Yes. It is a mistake in the data array. Thanks for your help.

 
  1 - 10   11 - 15