定制 evilfreelancer/steam-api-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

evilfreelancer/steam-api-client

Composer 安装命令:

composer require evilfreelancer/steam-api-client

包简介

The SteamAPI PHP Client is a PHP library for interacting with the Steam API. It provides an easy way to fetch data from the Steam platform, such as user profiles, games, and reviews.

README 文档

README

Note: This library is still under development and not yet production-ready.

The SteamAPI PHP Client is a PHP library for interacting with the Steam API. It provides an easy way to fetch data from the Steam platform, such as user profiles, games, and reviews.

Installation

To install the SteamAPI PHP Client, simply use Composer:

composer require evilfreelancer/steam-api-client

Usage

Configuration

First, you need to create a Config object with your desired configuration:

use SteamApi\Config;

$config = new Config();
$config->storeUri = 'https://store.steampowered.com';
$config->retries = 5;
$config->retryTimeoutMs = 1000;

Next, create an instance of the HttpClient class and pass your Config object:

use SteamApi\HttpClient;

$httpClient = new HttpClient($config);

Getting Curator Reviews

To get reviews for a specific curator, you can use the Curator class:

// Replace with a valid curator ID
$curatorId = 31790204; // Games-4-Programmers
$curator = $httpClient->store->curator($curatorId);

// Get the total number of reviews for the curator
$totalCount = $curator->getTotalCount();

// Get a limited number of reviews (default: last 10 reviews)
$reviews = $curator->getReviews();

// Get all available reviews
$allReviews = $curator->allReviews();

License

This library is released under the MIT License. See the LICENSE file for details.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-30