oconnedk / gogokit.php

A viagogo API client library for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GogoKit - viagogo API Client Library for PHP

Package Version Total Downloads Code Climate

GogoKit is a lightweight, viagogo API client library for PHP. Our developer site documents all of the viagogo APIs.

Installation

Install via Composer.

$ composer require viagogo/gogokit

Usage

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';

$viagogoClient = new Viagogo\ViagogoClient($clientId, $clientSecret);
$viagogoClient->setToken($viagogoClient->getOAuthClient()->getClientAccessToken());

// Get an event by id
$event = $viagogoClient->getEventClient()->getEvent(676615);

// Get a list of results that match your search query
$searchResults = $viagogoClient->getSearchClient()->getSearch("FC Barcelona tickets");

Supported Platforms

  • PHP 5.5 or higher

How to contribute

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!

Need Help? Found a bug?

Just submit a issue if you need any help. And, of course, feel free to submit pull requests with bug fixes or changes.

About

A viagogo API client library for PHP

License:MIT License


Languages

Language:PHP 100.0%