highoctanehosting / untapped-api Goto Github PK
View Code? Open in Web Editor NEWThis project forked from pintlabs/pintlabs_service_untappd
PHP library to interact with the Untappd public API
License: MIT License
This project forked from pintlabs/pintlabs_service_untappd
PHP library to interact with the Untappd public API
License: MIT License
PHP library to interact with the public Untappd API version 4, patterned after other service libraries in Zend Framework. Information on the API can be found on Untappd's website. http://untappd.com/api/dashboard A client ID and client secret is required. An access token is required for certain method calls, such as myFriendFeed. Contact Untappd to attain your credentials. This library also contains 2 helper methods to generate the correct authenticate URI for OAuth2 authentication, as well as a method to exchange a "code" from your redirect URI for an access token. Examples are below. ============================================== Installation: Using composer: Add the repository to your composer.json file "repositories": [ { "type": "vcs", "url": "https://github.com/PintLabs/Pintlabs_Service_Untappd.git" } ], Add the library to your requirements list: "require": { "php": ">=5.5.9", "laravel/framework": "5.2.*", "fabpot/goutte": "^3.1", "PintLabs/Pintlabs_Service_Untappd": "*@dev" }, Add the Untappd dir to your autoload list: "autoload": { "classmap": [ "vendor/Pintlabs/Pintlabs_Service_Untappd/library/Pintlabs/Service/" ], } Run `composer update` ============================================== Usage: <?php // Setup Untappd $config = array( 'clientId' => $clientId, 'clientSecret' => $clientSecret, 'accessToken' => $accessToken, 'redirectUri' => $redirectUri, ); $untappd = new Pintlabs_Service_Untappd($config); // Example 1: Basic method call try { $result = $untappd->myFriendFeed(); } catch (Pintlabs_Service_Untappd_Exception $e) { die($e->getMessage()); } // Example 2: Redirecting to Untappd OAuth2 authentication URI header('Location: ' . $untappd->authenticateUri()); // Example 3: Exchanging code argument for access token $accessToken = $untappd->getAccessToken($_GET['code']);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.