GogoKit is a lightweight, viagogo API client library for PHP. Our developer site documents all of the viagogo APIs.
Install via Composer.
$ composer require 'viagogo/gogokit'
See our developer site for more examples.
// All methods require authentication. To get your viagogo OAuth credentials,
// See TODO: docs url
$clientId = 'CLIENT_ID';
$clientSecret = 'CLIENT_SECRET';
$viagogo = new Viagogo\ViagogoClient($clientId, $clientSecret);
$viagogo->setToken($viagogo->getOAuthClient()->getClientAccessToken());
// Get an event by id
$event = $client->getEventClient()->getEvent(676615);
// Get a list of results that match your search query
$searchResults = $client->getSearchClient()->getSearch("FC Barcelona tickets");
- PHP 5.5 or higher
All submissions are welcome. Fork the repository, read the rest of this README file and make some changes. Once you're done with your changes send a pull request. Thanks!
Just submit a issue if you need any help. And, of course, feel free to submit pull requests with bug fixes or changes.