Skip to content

stepanovit/Smotreshka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smotreshka

Класс для работы с облачной тв-платформой Смотрешка(https://smotreshka.tv)

VERSION = 0.1.1

Requirement

PHP >= 5.2

Http class CURL wrapper ( https://github.com/stepanovit/http_curl_wrapper )

Usage

Include required files in the application

Include Smotreshka class to .php file

require_once('Smotreshka.php');

How to use

Initialize new Class, and use methods like

$smotreshka = new Smotreshka($operator, $node);
$smotreshka->subscriptions();

$operator login in service

$node note in service

Methods

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

public function account_show($id)

Show user account data

$smotreshka->account_show($id);

$id user account id in service

public function account_update($id, $info)

$smotreshka->account_update($id, $info);

$id user account id in service

$info: object any data

public function account_reset_password($id, $password)

$smotreshka->account_reset_password($id, $password)

$id user account id in service

$password new password 5 to 200 chars

public function account_delete($id)

$smotreshka->account_delete($id)

$id user account id in service

public function accounts($count = null, $page = null)

$smotreshka->accounts()

$count count element on page

$page page number

public function account_subscriptions($id)

$smotreshka->account_subscriptions($id)

$id user account id in service

public function account_subscription_create($id, $subscription_id)

$smotreshka->account_subscription_create($id, $subscription_id)

$id user account id in service

$subscription_id subscription id

public function account_subscription_delete($id, $subscription_id)

$smotreshka->account_subscription_delete($id, $subscription_id)

$id user account id in service

$subscription_id subscription id

public function subscriptions()

Get all available subscriptions

$smotreshka->subscriptions()

Contributing

  1. Fork it ( https://github.com/stepanovit/Smotreshka/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages