Modular anime streaming and metadata API built with Hono on Cloudflare Workers.
For more information, please visit https://gox.my.id.
PHP 8.1 and later.
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/shionstream/shionstream-php.git"
}
],
"require": {
"shionstream/shionstream-php": "*@dev"
}
}Then run composer install
Download the files and include autoload.php:
<?php
require_once('/path/to/shionstream-client/vendor/autoload.php');Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new ShionStreamClient\Api\AnimeApi(
// 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()
);
$page = '1'; // string
$limit = '20'; // string
$search = 'search_example'; // string
$type = 'type_example'; // string
$status = 'status_example'; // string
$genre = 'genre_example'; // string
$season = 'season_example'; // string
$year = 'year_example'; // string
$sort = 'latest'; // string
try {
$result = $apiInstance->v1AnimeGet($page, $limit, $search, $type, $status, $genre, $season, $year, $sort);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnimeApi->v1AnimeGet: ', $e->getMessage(), PHP_EOL;
}All URIs are relative to https://api.gox.my.id
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AnimeApi | v1AnimeGet | GET /v1/anime | List Anime Catalog |
| AnimeApi | v1AnimeSlugGet | GET /v1/anime/{slug} | Get Anime Details by Slug |
| CommentsApi | v1CommentsGet | GET /v1/comments | Get Episode Comments |
| CommentsApi | v1CommentsIdLikePost | POST /v1/comments/{id}/like | Like or Dislike Comment |
| CommentsApi | v1CommentsIdReportPost | POST /v1/comments/{id}/report | Report Comment |
| CommentsApi | v1CommentsPost | POST /v1/comments | Create Comment |
| DashboardApi | v1DashboardAnimeGet | GET /v1/dashboard/anime | Get Administrative Anime List |
| DashboardApi | v1DashboardCategoriesGet | GET /v1/dashboard/categories | Get Category & Genre Distributions |
| DashboardApi | v1DashboardEpisodesGet | GET /v1/dashboard/episodes | Get Administrative Episodes List |
| DashboardApi | v1DashboardModerationGet | GET /v1/dashboard/moderation | Get Comment Moderation Reports |
| DashboardApi | v1DashboardModerationIdPatch | PATCH /v1/dashboard/moderation/{id} | Resolve or Dismiss Moderation Report |
| DashboardApi | v1DashboardOverviewGet | GET /v1/dashboard/overview | Get Dashboard Overview |
| DashboardApi | v1DashboardRolesGet | GET /v1/dashboard/roles | Get System Roles & Permissions |
| DashboardApi | v1DashboardSeasonsGet | GET /v1/dashboard/seasons | Get Seasonal Broadcast Distributions |
| DashboardApi | v1DashboardStatsGet | GET /v1/dashboard/stats | Get Platform Stats |
| DashboardApi | v1DashboardUsersGet | GET /v1/dashboard/users | Get Users Directory (Admin Only) |
| EpisodesApi | v1AnimeSlugEpisodesGet | GET /v1/anime/{slug}/episodes | List Episodes by Anime Slug |
| EpisodesApi | v1EpisodesIdStreamGet | GET /v1/episodes/{id}/stream | Get Episode Stream Sources |
| SampleApi | v1ProtectedSampleGet | GET /v1/protected/sample | Protected Sample Endpoint |
| SystemApi | healthGet | GET /health | Health Check |
| UploadApi | v1UploadHlsPost | POST /v1/upload/hls | Upload HLS Package to Cloudflare R2 |
| UploadApi | v1UploadImagePost | POST /v1/upload/image | Upload Image to Cloudflare R2 |
| UserApi | v1UserHistoryDelete | DELETE /v1/user/history | Clear All History |
| UserApi | v1UserHistoryGet | GET /v1/user/history | Get Watch History |
| UserApi | v1UserHistoryIdDelete | DELETE /v1/user/history/{id} | Delete History Item |
| UserApi | v1UserHistoryPost | POST /v1/user/history | Record Playback Progress |
| UserApi | v1UserProfileGet | GET /v1/user/profile | Get User Profile |
| UserApi | v1UserSettingsGet | GET /v1/user/settings | Get User Settings |
| UserApi | v1UserSettingsPatch | PATCH /v1/user/settings | Update User Settings |
| UserApi | v1UserWatchlistAnimeIdDelete | DELETE /v1/user/watchlist/{animeId} | Remove from Watchlist |
| UserApi | v1UserWatchlistAnimeIdPatch | PATCH /v1/user/watchlist/{animeId} | Update Watchlist Entry |
| UserApi | v1UserWatchlistGet | GET /v1/user/watchlist | Get User Watchlist |
| UserApi | v1UserWatchlistPost | POST /v1/user/watchlist | Add to Watchlist |
- HealthGet200Response
- HealthGet500Response
- V1AnimeGet200Response
- V1AnimeGet200ResponseDataInner
- V1AnimeGet200ResponsePagination
- V1AnimeSlugEpisodesGet200Response
- V1AnimeSlugEpisodesGet200ResponseAnime
- V1AnimeSlugEpisodesGet200ResponseDataInner
- V1AnimeSlugGet200Response
- V1AnimeSlugGet200ResponseData
- V1AnimeSlugGet200ResponseDataGenresInner
- V1AnimeSlugGet200ResponseDataSchedule
- V1AnimeSlugGet200ResponseDataTrendingStats
- V1CommentsGet200Response
- V1CommentsGet200ResponseDataInner
- V1CommentsIdLikePost200Response
- V1CommentsIdLikePostRequest
- V1CommentsIdReportPostRequest
- V1CommentsPost201Response
- V1CommentsPostRequest
- V1DashboardAnimeGet200Response
- V1DashboardCategoriesGet200Response
- V1DashboardCategoriesGet200ResponseCategoriesInner
- V1DashboardCategoriesGet200ResponseGenresInner
- V1DashboardEpisodesGet200Response
- V1DashboardModerationGet200Response
- V1DashboardModerationGet200ResponseReportsInner
- V1DashboardModerationGet200ResponseReportsInnerAuthor
- V1DashboardModerationGet200ResponseReportsInnerReporter
- V1DashboardModerationIdPatchRequest
- V1DashboardOverviewGet200Response
- V1DashboardOverviewGet200ResponseNotificationsInner
- V1DashboardOverviewGet200ResponseRecentActivitiesInner
- V1DashboardOverviewGet200ResponseTrafficDataInner
- V1DashboardRolesGet200Response
- V1DashboardRolesGet200ResponseRolesInner
- V1DashboardSeasonsGet200Response
- V1DashboardSeasonsGet200ResponseSeasonsInner
- V1DashboardStatsGet200Response
- V1DashboardStatsGet200ResponseStats
- V1DashboardUsersGet200Response
- V1DashboardUsersGet200ResponseUsersInner
- V1EpisodesIdStreamGet200Response
- V1EpisodesIdStreamGet200ResponseAudioInner
- V1EpisodesIdStreamGet200ResponseEpisode
- V1EpisodesIdStreamGet200ResponseSourcesInner
- V1EpisodesIdStreamGet200ResponseSubtitlesInner
- V1ProtectedSampleGet200Response
- V1ProtectedSampleGet200ResponseUser
- V1ProtectedSampleGet401Response
- V1UploadHlsPost200Response
- V1UploadHlsPost200ResponseData
- V1UploadImagePost200Response
- V1UploadImagePost200ResponseData
- V1UserHistoryGet200Response
- V1UserHistoryGet200ResponseDataInner
- V1UserHistoryPostRequest
- V1UserProfileGet200Response
- V1UserProfileGet200ResponseData
- V1UserProfileGet200ResponseDataActivity
- V1UserSettingsGet200Response
- V1UserSettingsGet200ResponseData
- V1UserSettingsGet200ResponseDataNotifications
- V1UserSettingsGet200ResponseDataPlayer
- V1UserSettingsPatch200Response
- V1UserSettingsPatchRequest
- V1UserSettingsPatchRequestNotifications
- V1UserSettingsPatchRequestPlayer
- V1UserSettingsPatchRequestProfile
- V1UserWatchlistAnimeIdPatchRequest
- V1UserWatchlistGet200Response
- V1UserWatchlistGet200ResponseDataInner
- V1UserWatchlistPostRequest
Authentication schemes defined for the API:
- Type: Bearer authentication (JWT / API-Key)
To run the tests, use:
composer install
vendor/bin/phpunitThis PHP package is automatically generated for ShionStream API using OpenAPI specification:
- API version:
1.0.0- Generator version:
7.26.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen