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.
Requires
- php: ^7.3 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpunit/phpunit: ^8.0 || ^9.0
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
- Addon
- AddonCoupon
- AddonCouponListResponse
- AddonCouponResponse
- AddonDownload
- AddonDownloadResponse
- AddonImages
- AddonListResponse
- AddonPrice
- AddonPurchase
- AddonPurchaseListResponse
- AddonPurchaseResponse
- AddonResponse
- AddonReview
- AddonReviewListResponse
- AddonReviewResponse
- AddonStats
- AddonStatsResponse
- AddonStatsRevenue
- AddonStatsRevenueCurrent
- AddonStatsSales
- AddonStatsSalesCurrent
- AddonStatsViews
- AddonStatsViewsCurrent
- AddonVersion
- AddonVersionListResponse
- AddonVersionReleaseType
- AddonVersionResponse
- AdventCalendarStats
- AdventCalendarStatsResponse
- ApiKey
- ApiKeyResponse
- BadgeListResponse
- BadgeResponse
- Error
- ErrorResponse
- Money
- NewAddonPurchase
- OrderItem
- PermissionGroup
- PermissionGroupListResponse
- Team
- TeamAddon
- TeamAddonListResponse
- TeamListResponse
- TeamResponse
- TeamUser
- TeamUserListResponse
- User
- UserBadge
- UserBadgeLegend
- UserBan
- UserBanListResponse
- UserResponse
Documentation For Authorization
bearerAuth
- Type: Bearer authentication (API Key)