tepkool01 / simple-linkedinphp

Automatically exported from code.google.com/p/simple-linkedinphp
0 stars 0 forks source link

I cannot get the invite on linkedin by email to work #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. click on Invite others to join your linkedin network
2. in the section "invite others to join your linkedin network", enter a valid 
email address and a message and click on "Send Invitation"
3. An error message is returned. as follows:

Error sending invite:

RESPONSE:

Array
(
[linkedin] =>

401
1328088378868
5YQ8AA6BOL
0
[unauthorized]. 
OAU:ihxky5OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1|445d962a-e0
df-470a-ae1b-3e32335350d1|*01|*01:1328088130:oFMiIuxU2RhQVEoufu3PL3NK0vs=

[info] => Array
(
[url] => https://api.linkedin.com/v1/people/~/mailbox
[content_type] => text/xml;charset=UTF-8
[http_code] => 401
[header_size] => 208
[request_size] => 1260
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.060927
[namelookup_time] => 3.1E-5
[connect_time] => 0.010253
[pretransfer_time] => 0.03594
[size_upload] => 738
[size_download] => 393
[speed_download] => 6450
[speed_upload] => 12112
[download_content_length] => 393
[upload_content_length] => 0
[starttransfer_time] => 0.060881
[redirect_time] => 0
[certinfo] => Array
(
)

)

[oauth] => Array
(
[header] => Authorization: OAuth 
realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="0a96ab130
c5deb46d9248509ceaed734",oauth_timestamp="1328088130",oauth_consumer_key="ihxky5
OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1",oauth_token="445d962
a-e0df-470a-ae1b-3e32335350d1",oauth_signature_method="HMAC-SHA1",oauth_signatur
e="oFMiIuxU2RhQVEoufu3PL3NK0vs%3D"
[body] =>

First Name
Last Name

Invitation to connect
test....

friend

[string] => 
POST&https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fpeople%2F~%2Fmailbox&oauth_consumer_k
ey%3Dihxky5OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1%26oauth_no
nce%3D0a96ab130c5deb46d9248509ceaed734%26oauth_signature_method%3DHMAC-SHA1%26oa
uth_timestamp%3D1328088130%26oauth_token%3D445d962a-e0df-470a-ae1b-3e32335350d1%
26oauth_version%3D1.0
)

[success] =>
[error] => HTTP response from LinkedIn end-point was not code 201
)

LINKEDIN OBJ:

LinkedIn Object
(
[callback:protected] =>
[token:protected] => Array
(
[oauth_token] => 445d962a-e0df-470a-ae1b-3e32335350d1
[oauth_token_secret] => a01ebf5e-57ce-4d81-a8a0-925f3906dc9b
[oauth_expires_in] => 0
[oauth_authorization_expires_in] => 0
)

[application_key:protected] => 
ihxky5OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1
[application_secret:protected] => 
_PpZ0H5yO0w_asqa69H4EMFxrBwofg5cGyGP7k2FgArl8aMecG0mTl6ETcJJ43J0
[response_format:protected] => xml
[last_request_headers] => Array
(
[0] => Authorization: OAuth 
realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="0a96ab130
c5deb46d9248509ceaed734",oauth_timestamp="1328088130",oauth_consumer_key="ihxky5
OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1",oauth_token="445d962
a-e0df-470a-ae1b-3e32335350d1",oauth_signature_method="HMAC-SHA1",oauth_signatur
e="oFMiIuxU2RhQVEoufu3PL3NK0vs%3D"
)

[last_request_url] => https://api.linkedin.com/v1/people/~/mailbox
)

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
I'm running the live on-line demo

Please provide any additional information below.

Original issue reported on code.google.com by m.ocon...@arithon.com on 1 Feb 2012 at 9:32

GoogleCodeExporter commented 9 years ago
Did you found a solution? I am facing the same problem.

Original comment by feizy.r...@gmail.com on 19 Mar 2015 at 9:42