@@ 562-574 (lines=13) @@ | ||
559 | * @param string |
|
560 | * @return stdClass |
|
561 | */ |
|
562 | public function authUserGet($token) |
|
563 | { |
|
564 | if ($this->auth_config === false) { |
|
565 | $this->authConfigException(); |
|
566 | } |
|
567 | ||
568 | $query_string = $this->buildQueryString(array( |
|
569 | 'oauth_token' => $token, |
|
570 | 'client_id' => $this->auth_config['client_id'], |
|
571 | )); |
|
572 | ||
573 | return $this->request(self::URI_USER_AUTH . $query_string); |
|
574 | } |
|
575 | ||
576 | /** |
|
577 | * Get the authenticated channel |
|
@@ 582-594 (lines=13) @@ | ||
579 | * @param string |
|
580 | * @return stdClass |
|
581 | */ |
|
582 | public function authChannelGet($token) |
|
583 | { |
|
584 | if ($this->auth_config === false) { |
|
585 | $this->authConfigException(); |
|
586 | } |
|
587 | ||
588 | $query_string = $this->buildQueryString(array( |
|
589 | 'oauth_token' => $token, |
|
590 | 'client_id' => $this->auth_config['client_id'], |
|
591 | )); |
|
592 | ||
593 | return $this->request(self::URI_CHANNEL_AUTH . $query_string); |
|
594 | } |
|
595 | ||
596 | /** |
|
597 | * Returns an array of users who are editors of specified channel |
|
@@ 603-615 (lines=13) @@ | ||
600 | * @param string |
|
601 | * @return stdClass |
|
602 | */ |
|
603 | public function authChannelEditors($token, $channel) |
|
604 | { |
|
605 | if ($this->auth_config === false) { |
|
606 | $this->authConfigException(); |
|
607 | } |
|
608 | ||
609 | $query_string = $this->buildQueryString(array( |
|
610 | 'oauth_token' => $token, |
|
611 | 'client_id' => $this->auth_config['client_id'], |
|
612 | )); |
|
613 | ||
614 | return $this->request(sprintf(self::URI_CHANNEL_EDITORS_AUTH, $channel) . $query_string); |
|
615 | } |
|
616 | ||
617 | /** |
|
618 | * @description Returns an array of subscriptions who are subscribed to specified channel |