Класс для работы с облачной тв-платформой Смотрешка(https://smotreshka.tv)
VERSION = 0.1.1
PHP >= 5.2
Http class CURL wrapper ( https://github.com/stepanovit/http_curl_wrapper )
Include Smotreshka class to .php file
require_once('Smotreshka.php');Initialize new Class, and use methods like
$smotreshka = new Smotreshka($operator, $node);
$smotreshka->subscriptions();$operator login in service
$node note in service
public function account_create($email, $login = null, $password = null ,$purchases = null, $info = null)
Create user account in service
$smotreshka->account_create($email);$email required email for send password
$login any chars
$password 5 to 200 chars
$purchases: array() array of subscribes
$info: object any data
Show user account data
$smotreshka->account_show($id);$id user account id in service
$smotreshka->account_update($id, $info);$id user account id in service
$info: object any data
$smotreshka->account_reset_password($id, $password)$id user account id in service
$password new password 5 to 200 chars
$smotreshka->account_delete($id)$id user account id in service
$smotreshka->accounts()$count count element on page
$page page number
$smotreshka->account_subscriptions($id)$id user account id in service
$smotreshka->account_subscription_create($id, $subscription_id)$id user account id in service
$subscription_id subscription id
$smotreshka->account_subscription_delete($id, $subscription_id)$id user account id in service
$subscription_id subscription id
Get all available subscriptions
$smotreshka->subscriptions()- Fork it ( https://github.com/stepanovit/Smotreshka/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request