OK, thanks for your help. I wonder where to find al this info. (I got already lost in 'oauth'-land before I noticed your library!
I do however not get json data and I am using youre own example file, which I just modified for https and my secrets/ids etc.
with this:
$client->scope = 'r_fullprofile r_emailaddress';
..
$success = $client->CallAPI(
'http://api.linkedin.com/v1/people/~/email-address',
'GET', array(
'format'=>'json'
), array('FailOnAccessError'=>true), $user);
I get this:
you have logged in successfully with LinkedIn!
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<email-address>wow! my emailadres was here!</email-address>
which I can postprocess with something like:
$xml = simplexml_load_string(print_r($user, 1));
to get this:
SimpleXMLElement Object
(
[0] =>
[email protected]
)
getName: email-address
nof_childs: 0
string: {
[email protected]}
parsing the id data is more complex, but of coarse possible
but linkedin does not provide a unique id, so I have to fallback to less unique data like the first/lastname and separate available email.
That LinkedIn does not provide this info is of COARSE not a problem of your library.
oeps, just found out (by trying):
this:
'http://api.linkedin.com/v1/people/~/id', // but maybe this was what you ment to be used here....?
gives:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<id>a unique ID!</id>
Maybe the xml response to the json format request is a small problem within your lib.
Do you understand the need for the unique ID as also mentioned in message 8 by the other person?
Anyhow thank you very much for your library which already takes us a lot of work out of our hands!
Also your quick responses here are special and much appreciated!