PHP Classes

goog work - problems with linkedIn

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  goog work - problems with linkedIn  >  (Un) Subscribe thread alerts  
Subject:goog work - problems with linkedIn
Summary:linkedin does not work
Messages:3
Author:Melanie Wehowski
Date:2014-05-31 17:48:21
Update:2014-06-01 14:57:32
 

  1. goog work - problems with linkedIn   Reply   Report abuse  
Picture of Melanie Wehowski Melanie Wehowski - 2014-05-31 17:48:21
Hello,
first I want to say thank you for this great class!

Everything works fine, but I cannot get the linkedin eyample to work.
I tried every possible combination of setting I think, but now I have to give up. Maybe you can give me a hint?


[31-May-2014 19:01:28] OAuth client: Checking the OAuth token authorization state
[31-May-2014 19:01:28] OAuth client: The OAuth token was already authorized
[31-May-2014 19:01:28] OAuth client: Accessing the API call at http://api.linkedin.com/v1/people/~
[31-May-2014 19:01:28] Connecting to api.linkedin.com
[31-May-2014 19:01:28] Resolving HTTP server domain "api.linkedin.com"...
[31-May-2014 19:01:28] Connecting to HTTP server IP 216.52.242.83 port 80...
[31-May-2014 19:01:28] Connected to api.linkedin.com
[31-May-2014 19:01:28] C GET /v1/people/~ HTTP/1.1
[31-May-2014 19:01:28] C Host: api.linkedin.com
[31-May-2014 19:01:28] C User-Agent: webdof\Webfan\http_client\OAuth
[31-May-2014 19:01:28] C Accept: */*
[31-May-2014 19:01:28] C Authorization: OAuth oauth_signature="xxxxxxxxxxxxxxxxxxxxxxx"
[31-May-2014 19:01:28] C Connection: Keep-Alive
[31-May-2014 19:01:28] C
[31-May-2014 19:01:28] S HTTP/1.1 401 Unauthorized
[31-May-2014 19:01:28] S Server: Apache-Coyote/1.1
[31-May-2014 19:01:28] S x-li-request-id: xxxxxxxxxx
[31-May-2014 19:01:28] S X-LI-UUID: xxxxxxxxxxx==
[31-May-2014 19:01:28] S Date: Sat, 31 May 2014 17:01:28 GMT
[31-May-2014 19:01:28] S Vary: *
[31-May-2014 19:01:28] S x-li-format: xml
[31-May-2014 19:01:28] S Content-Type: text/xml;charset=UTF-8
[31-May-2014 19:01:28] S Content-Length: 273
[31-May-2014 19:01:28] S X-Li-Fabric: PROD-ELA4
[31-May-2014 19:01:28] S Connection: keep-alive
[31-May-2014 19:01:28] S X-Li-Pop: PROD-ELA4
[31-May-2014 19:01:28] S Set-Cookie: lidc="b=LB52:g=70:u=1:i=1401555688:t=1401642088:s=556158058"; Expires=Sun, 01 Jun 2014 17:01:28 GMT; domain=.linkedin.com; Path=/
[31-May-2014 19:01:28] S
[31-May-2014 19:01:28] S <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>401</status>
<timestamp>1401555688986</timestamp>
<request-id>2KNFL6VOXM</request-id>
<error-code>0</error-code>
<message>OAuthProblemException while parsing OAuth request</message>
</error>

[31-May-2014 19:01:28] Keeping the connection alive to api.linkedin.com
[31-May-2014 19:01:28] 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 401 Response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>401</status>
<timestamp>1401555688986</timestamp>
<request-id>2KNFL6VOXM</request-id>
<error-code>0</error-code>
<message>OAuthProblemException while parsing OAuth request</message>
</error>



thank you + have a nice weekend
regards,
Till

  2. Re: goog work - problems with linkedIn   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-06-01 00:42:04 - In reply to message 1 from Melanie Wehowski
It seems you are missing the format parameter.

Pass as parameters this array, just like in the example script:

array('format'=>'json')

  3. Re: good work - problems with linkedIn   Reply   Report abuse  
Picture of Melanie Wehowski Melanie Wehowski - 2014-06-01 14:57:32 - In reply to message 2 from Manuel Lemos
I did not miss the format parameter, but I get it from an input form. Maybe I made a mistake there, I will take a look... Thank you!