Skip to content

A simple foursquare API v2 library for PHP focused on supplying core functionality without any extra bloat.

Notifications You must be signed in to change notification settings

spencerlim/foursquare-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Foursquare SDK - Laravel Bundle

A simple Laravel wrapper for https://github.com/stephenyoung/php-foursquare

Installation

Aritsan

php artisan bundle:install foursquare-sdk

Bundle Registration

Add the following to your application/bundles.php file:

'foursquare-sdk' => array('auto' => true),

Configuration

Add the following to your application/config/foursquare.php file:

return array(
	'app_id' => '',
	'secret' => '',
);

Usage

Foursquare::SetAccessToken('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$self = Foursquare::GetPrivate('users/self');	

OR

$foursquare = IoC::resolve('foursquare-sdk');
$foursquare->SetAccessToken('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$self = $foursquare->GetPrivate('users/self');	

Fork of https://github.com/stephenyoung/php-foursquare

About

A simple foursquare API v2 library for PHP focused on supplying core functionality without any extra bloat.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published