Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

FabianBeiner/HybridAuth-XING

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

XING DECIDED TO DISABLE THEIR PUBLIC API!

Please read https://www.xing.com/communities/posts/important-information-about-xing-public-api-support-1012409468?sc_o=as_g.


HybridAuth provider for the XING.com API

Tested with HybridAuth 2.1.1-dev and 2.4.0-dev.

Requirements

Get the latest version (>= 2.4.0-dev) of HybridAuth from github.com/hybridauth/hybridauth.

Quick Start

After you downloaded and installed HybridAuth (see above), you'll have to modify the config.php. Add the following to the providers array:

"XING" => array (
	"enabled" => true,
	"keys"    => array ( "key" => "", "secret" => "" )
)

Create a new directory and put an index.php file in it, containing the following:

<?php
require_once '../Hybrid/Auth.php';
try {
    $oHybridAuth = new Hybrid_Auth('../config.php');
    $oXING       = $oHybridAuth->authenticate('XING');
    var_dump($oXING->getUserProfile());
    var_dump($oXING->setUserStatus('This is an example from PHP.'));
    var_dump($oXING->getUserContacts());
}
catch(Exception $e) {
    echo 'Error: ' . $e->getMessage();
}

That's it. :) The rest is up to you.

Deutsche Information auch in meinem Blog.

License

HybridAuth is released under dual licence MIT and GPL. So is HybridAuth-XING.

If you're using it somehwere, I'd love to hear from you. :)

About

HybridAuth provider for the XING.com API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages