slownls / gmodstore_api
一个简单的用于 GmodStore API 的 PHP 库
1.0.0
2020-03-17 10:30 UTC
Requires
- guzzlehttp/guzzle: ^6.5
This package is auto-updated.
Last update: 2024-09-19 03:07:27 UTC
README
一个简单的用于 GmodStore API 的 PHP 库
安装
要安装此库,请使用 composer
composer require SlownLS/gmodstore_api
Wiki
收藏夹列表
- 用户
- 团队
- 插件
- 插件\优惠券
- 插件\购买
- 插件\评论
- 插件\统计
- 插件\版本
要使用收藏夹
use SlownLS\GmodStore\Client; $gmodstore = new Client("gmodstore_token"); $collection = $gmodstore->GetCollection("Users")
用户收藏夹
$collection->GetAPIOwner() // Used to retrieve the user from the API $collection->GetAddons(string steamid64) // Used to retrieve a user's addons $collection->GetPurchases(string steamid64) // Used to retrieve a user's purchases $collection->GetTeams(string steamid64) // Used to retrieve the teams of a user $collection->GetBans(string steamid64) // Used to retrieve a user's banns $collection->GetBadges(string steamid64) // Used to retrieve a user's badges
团队收藏夹
$collection->GetById(int teamId) // Used to retrieve team information $collection->GetUsers(int teamId) // Used to retrieve users from a team
插件收藏夹
$collection->GetAll() // Use to retrieve user addons $collection->GetById(int $addonId) // Use to retrieve a specific addon from the user
插件 - 优惠券收藏夹
$collection->GetAll(int $addonId) // Used to retrieve coupons from an addon $collection->Create(int $addonId, array $params) // Use to add a coupon for an addon $collection->Update(int $addonId, int $couponId, array $params) // Used to modify a coupon of an addon $collection->GetById(int $addonId, int $couponId) // Used to retrieve information from a coupon $collection->Destroy(int $addonId, int $couponId) // Use to delete a coupon
插件 - 购买收藏夹
$collection->GetAll(int $addonId) // Used to retrieve the purchases of an addon $collection->Create(int $addonId, array $params) // Use to create a purchase for an addon $collection->GetById(int $addonId, int $purchaseId) // Used to retrieve a purchase of an addon $collection->Revoke(int $addonId, int $purchaseId) // Use to delete a purchase
插件 - 评论收藏夹
$collection->GetAll(int $addonId) // Used to retrieve all notices of an addon $collection->GetById(int $addonId, int $reviewId) // Used to retrieve an addon review
插件 - 统计收藏夹
$collection->GetAll(int $addonId) // Use to get the stats of an addon
插件 - 版本收藏夹
$collection->GetAll(int $addonId) // Used to get the versions of an addon $collection->GetById(int $addonId, int $versionId) // Use to get a version of an addon $collection->Download(int $addonId) // Use to create a download link for an addon