Login   Register  
PHP Classes
elePHPant
Icontem

File: angellist.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Giri Raj  >  PHP oAuth2 lightweight wrapper  >  angellist.php  >  Download  
File: angellist.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: 2013-04-24 23:37
Size: 734 bytes
 

Contents

Class file image Download
<?php
/*
    @author        :    Giriraj Namachivayam
    @date         :    Apr 25, 2013
    @demourl        :    http://ngiriraj.com/socialMedia/oauthlogin/
    @license        :     Free to use, 
*/

include "socialmedia_oauth_connect.php";

$oauth = new socialmedia_oauth_connect();
$oauth->provider="AngelList";
$oauth->client_id "d7c723fdcf7b151fdd54f0d2ffa19e39";
$oauth->client_secret "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$oauth->redirect_uri  ="http://ngiriraj.com/socialMedia/oauthlogin/angellist.php";

$oauth->Initialize();

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

if(empty(
$code)) {
    
$oauth->Authorize();
}else{
    
$oauth->code $code;
#    $oauth->getAccessToken();
    
$getData json_decode($oauth->getUserProfile());
    
$oauth->debugJson($getData);

}


?>