2017 © Pedro Peláez
 

library foursquare-api

Foursquare API v2 client

image

ner0tic/foursquare-api

Foursquare API v2 client

  • Monday, May 6, 2013
  • by ner0tic
  • Repository
  • 1 Watchers
  • 1 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

php-foursquare-api

ORM agnostic php library to access foursquare api version 2.0, (*1)

Installation

Add to composer, (*2)

    "require": {
        "ner0tic/php-api-core":     "2.*",
        "ner0tic/foursquare-api":   "2.*"
        // ...

Usage

$fs = new \Foursquare\Client();

$checkins = $fs->api('checkins')->recent(); // recent($id,max=10)
foreach($checkins as $checkin) {
  echo $checkin; // $checkin->timestamp.' '.$checkin->getVenue()->getName()
}

Api's to choose from: - users - checkins - venues - venue groups - tips - lists - updates - photos - settings - specials - campaigns - events - pages - page updates - multi, (*3)

To set the auth settings manually, (*4)

$fs = new \Foursquare\Client();

$fs->setAuthClientId($id);
$fs->setAuthHttpPassword($pass);
$fs->setAuthUrlToken($token);
$fs->setAuthHttpToken($token);

If you have api keys to use, mash them into a pem file and set the certificate option to the path of the file., (*5)

$client->setOption('certificate', $pem_file);

Make a query, (*6)

$result = $api->get($endpoint, $parameters, $request_options);

ToDo

Laundry List - DI to access config.yml for variables, (*7)

The Versions

06/05 2013

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/ner0tic/php-foursquare-api

Foursquare API v2 client

  Sources   Download

MIT

The Requires

 

api foursquare venue checkin

06/05 2013

2.0.0

2.0.0.0 https://github.com/ner0tic/php-foursquare-api

Foursquare API v2 client

  Sources   Download

MIT

The Requires

 

api foursquare venue checkin

06/05 2013

dev-master

9999999-dev https://github.com/ner0tic/php-foursquare-api

Foursquare API v2 client

  Sources   Download

MIT

The Requires

 

api foursquare venue checkin

16/09 2012

v0.0.1

0.0.1.0 https://github.com/ner0tic/php-github-api

Foursquare API v2 client

  Sources   Download

MIT

The Requires

 

api foursquare venue checkin