Skip to content

harveytoro/DailyCred--deprecated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

DailyCred php Class

So using DailyCred couldn't get much easier there clear and easy to understand documentation rocks, but heres a php class that follows the OAUTH flow to make it even easier.

How to use

Add your client_id and client_secret to the class

Link to Sign In url:

$signin_url = $Object->generate_url("signin");

Link to Sign Up url:

$signup_url = $Object->generate_url("signup");

Exchanging code for access_token and retrieving graph data:

Check if code has been returned and get data from graph:

if(isset($_GET['code'])){

$code = $_GET['code'];

$graph = $Object->graph_request($code); //Returns graph json

//Get data from graph

$userEmail = $graph->email;

}

Check out DailyCred at http://dailycred.com

About

PHP class for DailyCred

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages