everyday/gmodstore-sdk

Welcome to the GmodStore API! You can use our API to access GmodStore API endpoints, which can be used interact with GmodStore programmatically.

This package's canonical repository appears to be gone and the package has been frozen as a result.

3.1.0 2022-05-04 06:27 UTC

This package is auto-updated.

Last update: 2024-07-23 22:02:38 UTC


README

Welcome to the GmodStore API! You can use our API to access GmodStore API endpoints, which can be used interact with GmodStore programmatically.

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.2.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen For more information, please visit https://docs.gmodstore.com

Requirements

PHP 7.2 and later

Installation & Usage

Composer

To install the bindings via Composer, run the following command:

composer require everyday/gmodstore-sdk

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/GmodStore SDK/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure Bearer (API Key) authorization: bearerAuth
$config = Everyday\GmodStore\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Everyday\GmodStore\Sdk\Api\AddonCouponsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$addonId = 56; // int | Id of the addon
$addonCoupon = new \Everyday\GmodStore\Sdk\Model\AddonCoupon(); // \Everyday\GmodStore\Sdk\Model\AddonCoupon | 
$with = array('with_example'); // string[] | The relations you want to fetch with the `AddonCoupon`

try {
    $result = $apiInstance->createAddonCoupon($addonId$addonCoupon$with);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AddonCouponsApi->createAddonCoupon: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://api.gmodstore.com/v2

Documentation For Models

Documentation For Authorization

bearerAuth

  • Type: Bearer authentication (API Key)