PHP Classes

XING Access

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  XING Access  >  (Un) Subscribe thread alerts  
Subject:XING Access
Summary:XING API Access
Messages:3
Author:Igor Altach
Date:2013-03-25 15:28:15
Update:2013-03-26 08:20:51
 

  1. XING Access   Reply   Report abuse  
Picture of Igor Altach Igor Altach - 2013-03-25 15:28:15
Hello,

is it possible to add Xing to the class? I'm trying to add xing by myself, but I get the Error MISSING_OAUTH_VERIFIER.

Thank you!

  2. Re: XING Access   Reply   Report abuse  
Picture of Igor Altach Igor Altach - 2013-03-25 16:31:30 - In reply to message 1 from Igor Altach
That is my code so far:

$client = new oauth_client_class;

$client->debug = true;

$client->debug_http = true;

$client->server = '';

$client->redirect_uri = 'http://'.$_SERVER['HTTP_HOST'].
dirname(strtok($_SERVER['REQUEST_URI'],'?')).'/test_oauth_client.php';

$client->client_id = 'xxxxxxx';

$client->client_secret = 'xxxxxx';

$client->oauth_version = '1.0';
$client->request_token_url = "https://api.xing.com/v1/request_token";
$client->dialog_url = "https://api.xing.com/v1/authorize";
$client->access_token_url = "https://api.xing.com/v1/access_token";
$client->url_parameters = true;


if(($success = $client->Initialize()))
{
if(($success = $client->Process()))
{
if(strlen($client->access_token))
{
$success = $client->CallAPI(
'https://api.xing.com/v1/users/me',
'GET', array(
'format'=>'json'
), array('FailOnAccessError'=>true), $user);
}
}

I found out, that the variable access_token ist empty, but the method Process() returns true.

  3. Re: XING Access   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-03-26 08:20:51 - In reply to message 2 from Igor Altach
The version is 1.0a but several providers say it is 1.0.

Anyway, I have just uploaded a new version with built-in support to XING.