Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Streamlike/php-ws-sdk
https://github.com/Streamlike/php-ws-sdk
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/Streamlike/php-ws-sdk
- Owner: Streamlike
- Created: 2018-06-22T12:52:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T14:36:42.000Z (over 2 years ago)
- Last Synced: 2024-09-21T08:51:38.703Z (about 2 months ago)
- Language: PHP
- Homepage: http://www.streamlike.com/en/index
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Streamlike PHP Webservices SDK
## Requirements
PHP needs to be a minimum version of PHP 5.4.0.
## Installation
Download package and include streamlikeWs.php classe.
Or with composer:
`composer require streamlike/php-ws-sdk`
## Available services
- `playlists`
- `playlist`
- `media`
- `related`
- `qr`
- `rss`
- `languages`
- `countries`
- `getStreamlikeVersion`
- `manifest`
- `nowplaying`
- `podcast`
- `resume`
- `videositemap`## Samples
### Autoloading
```php
'48c6eab371919246',
);$content = $ws->getResult('playlists', $params, streamlikeWs::RESULTTYPE_RAW);
var_dump($content);
} catch (\Exception $e) {
// handle exception, log, retry...
}
```### GET vote
```php
'48c6eab371919246',
'media_id' => '4df5ede70f252c07',
'value' => 3,
);$content = $ws->setVote($params);
} catch (\Exception $e) {
// handle exception, log, retry...
}```
### GET Media list with many filters
Get json content about first 6 french media in playlist 983e6509573f4849 sorted by descending creation date:
```php
'983e6509573f4849',
'lng' => 'fr',
'pagesize' => 6,
'orderby' => 'creationdate',
'sortorder' => 'down'
);$content = $ws->getResult('playlist', $params);
} catch (\Exception $e) {
// handle exception, log, retry...
}
```### GET Media with statistics
```php
'4df5ede70f252c07',
'rate' => 'true',
);$content = $ws->getResult('media', $params, streamlikeWs::RESULTTYPE_RAW);
} catch (\Exception $e) {
// handle exception, log, retry...
}```
### GET Qr code picture
```php
'4df5ede70f252c07',
);$content = $ws->getResult('qr', $params);
} catch (\Exception $e) {
// handle exception, log, retry...
}
```### GET all media file details
```php
'4df5ede70f252c07',
);$content = $ws->getResult('manifest', $params);
} catch (\Exception $e) {
// handle exception, log, retry...
}
```### GET count of users who are currently watching the media
```php
'4df5ede70f252c07',
);$content = $ws->getResult('nowplaying', $params);
} catch (\Exception $e) {
// handle exception, log, retry...
}
```### GET Podcast feed
```php
'983e6509573f4849',
'lng' => 'fr',
'orderby' => 'lastupdateddate',
);$content = $ws->getResult('podcast', $params);
} catch (\Exception $e) {
// handle exception, log, retry...
}
```### GET Media related to a given media
```php
'4df5ede70f252c07',
'pagesize' => 4,
);$content = $ws->getResult('related', $params);
} catch (\Exception $e) {
// handle exception, log, retry...
}
```### GET Google video sitemap feed
```php
'48c6eab371919246',
);$content = $ws->getResult('videositemap', $params);
} catch (\Exception $e) {
// handle exception, log, retry...
}
```