for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Syntax\SteamApi\Steam;
use Syntax\SteamApi\Client;
class News extends Client
{
public function __construct()
parent::__construct();
$this->interface = 'ISteamNews';
}
public function GetNewsForApp($appId, $count = 5, $maxLength = null)
// Set up the api details
$this->method = __FUNCTION__;
$this->version = 'v0002';
// Set up the arguments
$arguments = [
'appid' => $appId,
'count' => $count,
];
if (! is_null($maxLength)) {
$arguments['maxlength'] = $maxLength;
// Get the client
$client = $this->setUpClient($arguments);
return $client->appnews;