Skip to content

Instantly share code, notes, and snippets.

View kayalshri's full-sized avatar

Giri Raj kayalshri

View GitHub Profile
require('lib/http.php');
require('lib/oauth_client.php');
$client = new oauth_client_class;
$client->server = 'Paypal';
$client->redirect_uri = 'http://'.$_SERVER['HTTP_HOST'].
dirname(strtok($_SERVER['REQUEST_URI'],'?')).'/paypal_login.php';
@kayalshri
kayalshri / Paypal Authorization
Last active December 14, 2015 09:09
Paypal oauth authorization
<?php
/*
@topic : PAYPAL PROFILE ACCESS DEMO
@type : DEMO
@domain : http://ngiriraj.com
@path : http://ngiriraj.com/socialMedia/paypal_oauth/index.php
@author : Giriraj Namachivayam
@date : FEB 28, 2013
@license: FREE to Use
*/
@kayalshri
kayalshri / facebook-idcard
Last active December 15, 2015 03:19
Facebook IDcard by using PHP
<?php
/*
@author : Giriraj Namachivayam
@date : Mar 01, 2013
@demourl : http://ngiriraj.com/socialMedia/fbidcard/
@document : http://ngiriraj.com/work/
@download: : https://github.com/kayalshri/Facebook-idcard
*/
#Debug
<?php
/*
@author : Giriraj Namachivayam
@date : Mar 03, 2013
@demourl : http://ngiriraj.com/socialMedia/oauthlogin/google.php
@document : http://ngiriraj.com/work/http://ngiriraj.com/work/google-connect-by-using-oauth-in-php/
@license : Free to use
@History : V1.0 - Released oauth 2.0 service providers login access
*/
@kayalshri
kayalshri / Googleidcard
Created March 22, 2013 08:04
Google Identity card create by using PHP, oAuth
<?php
/*
@author : Giriraj Namachivayam
@date : Mar 21, 2013
@demourl : http://ngiriraj.com/socialMedia/googleplus_idcard/
@document : http://ngiriraj.com/work/
@license : Free to use
@History : V1.0 - Google IDCard
@download :https://github.com/kayalshri/Googleidcard
@kayalshri
kayalshri / google short url
Created March 22, 2013 09:59
Google Short URL Traffic analysis [PHP, Google Chart, Google ShortURL, Google webfonts, cURL]
<?php
/*
@author : Giriraj Namachivayam
@date : Mar 20, 2013
@demourl : http://ngiriraj.com/socialMedia/shorturl/
@document : http://ngiriraj.com/work/
@license : Free to use
@History : V1.0 - Released oauth 2.0 service providers login access
@ Reference : https://developers.google.com/url-shortener/v1/getting_started#shorten
*/
@kayalshri
kayalshri / Foursquare oauth php
Created March 27, 2013 11:41
Foursquare connect by using oauth in PHP, [PHP, oauth, foursquare, authentication]
<?php
# include oauth class
include "socialmedia_oauth_connect.php";
$oauth = new socialmedia_oauth_connect();
$oauth->provider="Foursquare";
$oauth->client_id = "CVH2LUFNUVAYQVPYCECHZ0FGOKEQHLKIRJBGHBPQVV0T1ZX1";
$oauth->client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
@kayalshri
kayalshri / Box oauth php authentication
Created March 27, 2013 12:08
Box oauth php authentication
<?php
include "socialmedia_oauth_connect.php";
$oauth = new socialmedia_oauth_connect();
$oauth->provider="Box";
$oauth->client_id = "l7r9q1aslzc5hmwrikgyzqqngzc8ef0i";
$oauth->client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxx";
$oauth->scope="";
$oauth->redirect_uri ="https://silver.nseasy.com/~ngiriraj/socialMedia/oauthlogin/box.php";
@kayalshri
kayalshri / Wordpress oauth php
Created March 27, 2013 12:36
Wordpress oauth php connect
<?php
include "socialmedia_oauth_connect.php";
$oauth = new socialmedia_oauth_connect();
$oauth->provider="WordPress";
$oauth->client_id = "2327";
$oauth->client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$oauth->redirect_uri ="http://ngiriraj.com/socialMedia/oauthlogin/wordpress.php";
@kayalshri
kayalshri / Bitly oauth php connect
Last active December 15, 2015 11:38
Bitly oauth php connect authentication
<?php
include "socialmedia_oauth_connect.php";
$oauth = new socialmedia_oauth_connect();
$oauth->provider="Bitly";
$oauth->client_id = "4cfed21a38e6b8e25f5da9b74bfad075710e96d4";
$oauth->client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$oauth->redirect_uri ="http://ngiriraj.com/socialMedia/oauthlogin/bitly.php";
$oauth->Initialize();