PHP Classes

File: linkedin.php

Recommend this page to a friend!
  Classes of Giri Raj   PHP oAuth2 lightweight wrapper   linkedin.php   Download  
File: linkedin.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP oAuth2 lightweight wrapper
Authenticate users with OAuth based sites
Author: By
Last change:
Date: 10 years ago
Size: 787 bytes


Class file image Download
    @author : Giriraj Namachivayam
    @date : Apr 25, 2013
    @demourl :
    @license : Free to use,

include "socialmedia_oauth_connect.php";
$oauth = new socialmedia_oauth_connect();
$oauth->client_id = "ej2ast2u49vo";
$oauth->client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$oauth->scope="r_fullprofile r_emailaddress";
$oauth->redirect_uri ="";


$code = ($_REQUEST["code"]) ? ($_REQUEST["code"]) : "";

$code)) {
$oauth->code = $code;
# print $oauth->getAccessToken();
$getData = $oauth->getUserProfile();