Skip to content

MascotGaming/php-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MascotGaming/php-api-client

Operator API v1 client for PHP.

Example:

<?php
use mascotgaming\mascot\api\client\Client;

require __DIR__.'/vendor/autoload.php';

$client = new Client(array(
        // This is the base URL for the Operator API v1.
        'url' => 'https://api.mascot.games/v1/',

        // This is the file path for the Operator API v1 key.
        'sslKeyPath' => __DIR__.'/ssl/apikey.pem',

        // Sometimes it's useful to enable debug mode.
        // 'debug' => true,
));

// This will list all games.
var_export($client->listGames(array()));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages