Download the PHP package jcroll/foursquare-api-bundle without Composer
On this page you can find all versions of the php package jcroll/foursquare-api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jcroll/foursquare-api-bundle
More information about jcroll/foursquare-api-bundle
Files in jcroll/foursquare-api-bundle
Package foursquare-api-bundle
Short Description Symfony2 bundle for the jcroll/foursquare-api-client
License MIT
Homepage https://github.com/jcroll/foursquare-api-bundle
Informations about the package foursquare-api-bundle
JcrollFoursquareApiBundle
This bundle integrates the JcrollFoursquareApiClient into the Symfony framework.
Why?
This bundle will allow you to easily configure the JcrollFoursquareApiClient and additionally easily allow you to integrate with the HWIOAuthBundle (if you are using it) for signed requests to the foursquare api (see the JcrollFoursquareApiBundleSandbox for examples).
Installation
Add JcrollFoursquareApiBundle in your composer.json:
Download bundle:
Add the JcrollFoursquareApiBundle to your AppKernel.php
Basic configuration
-
If you're not using HWIOAuthBundle add your application id and secret parameters (other parameters are optional):
- If you are using HWIOAuthBundle configure a
foursquare
resource owner and the client's credentials will automatically be configured (unless you wish to specify custom values forversion
ormode
).
Usage
You can find a list of the client's available commands in the bundle's client.json but basically they should be the same as the api endpoints listed in the docs.
HWIOAuthBundle Integration
If you are using HWIOAuthBundle this bundle will automatically look for
a resource_owner
of type foursquare
in that bundle's configuration and inject the client_id
and client_secret
into the jcroll_foursquare_client
service (no need to configure this bundle unless you want to define custom values
for version
or mode
).
Additionally a listener will be configured and if the authenticated user possesses an oauth token belonging to foursquare
the token will be automatically injected into the jcroll_foursquare_client
service for signed requests (no need to call
setToken
).