Skip to content

Commit

Permalink
Merge pull request #16 from voxlunch/master
Browse files Browse the repository at this point in the history
Added searchGames()
  • Loading branch information
PetterKraabol committed Mar 2, 2019
2 parents 8cc340c + 076eb44 commit dd7f403
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/API/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ public function searchChannels($options)

return $this->sendRequest('GET', 'search/channels', false, $options, $availableOptions);
}

public function searchGames($options)
{
$availableOptions = ['query', 'limit', 'offset'];

return $this->sendRequest('GET', 'search/games', false, $options, $availableOptions);
}
}
4 changes: 1 addition & 3 deletions src/Services/TwitchApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,11 @@ public function searchStreams($options)
return $search->searchStreams($options);
}*/

/* Coming Soon
public function searchGames($options)
{
$search = new Search();
return $search->searchGames($options);
}*/
}

/**
* Streams.
Expand Down

0 comments on commit dd7f403

Please sign in to comment.