@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 21 | 21 | * @param $extensions |
| 22 | 22 | * |
| 23 | - * @return array |
|
| 23 | + * @return string[] |
|
| 24 | 24 | */ |
| 25 | 25 | function register_myself( $extensions ) { |
| 26 | 26 | $extensions[] = __FILE__; |
@@ -58,6 +58,9 @@ discard block |
||
| 58 | 58 | die(); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param string $token |
|
| 63 | + */ |
|
| 61 | 64 | public function verify_token($token){ |
| 62 | 65 | |
| 63 | 66 | $remote = wp_remote_get("https://api.vimeo.com/oauth/verify", array( |
@@ -145,6 +148,9 @@ discard block |
||
| 145 | 148 | return $this->error_response("Unrecognized Vimeo url."); |
| 146 | 149 | } |
| 147 | 150 | |
| 151 | + /** |
|
| 152 | + * @param string $id |
|
| 153 | + */ |
|
| 148 | 154 | public function fetch_video($id) { |
| 149 | 155 | if (!is_numeric($id)) { |
| 150 | 156 | return $this->error_response("Invalid video id supplied."); |
@@ -182,6 +188,10 @@ discard block |
||
| 182 | 188 | return $response; |
| 183 | 189 | } |
| 184 | 190 | |
| 191 | + /** |
|
| 192 | + * @param string $type |
|
| 193 | + * @param string $id |
|
| 194 | + */ |
|
| 185 | 195 | public function fetch_stream($type, $id, $page = 1, $offset = 0) { |
| 186 | 196 | $supports = array("album", "channel", "user"); |
| 187 | 197 | |