also looking at this
folder and media search
#25
2 files
+26
-2
| @@ -125,6 +125,18 @@ class Folder | ||
| 125 | 125 | return $this->client->request('DELETE', "folders/{$id}"); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | /** | |
| 129 | * Get specific folders. | |
| 130 | * | |
| 131 | * @param string $query | |
| 132 | * | |
| 133 | * @return array | |
| 134 | */ | |
| 135 | public function search($query) | |
| 136 | { | |
| 137 | return $this->client->request('POST', 'folders/search', compact('query')); | |
| 138 | } | |
| 139 | ||
| 128 | 140 | /** |
| 129 | 141 | * Archive a folder. |
| 130 | 142 | * |
| @@ -63,7 +63,7 @@ class Media | ||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | * Get specific folders. | |
| 66 | * Get specific media. | |
| 67 | 67 | * |
| 68 | 68 | * @param int $id |
| 69 | 69 | * |
| @@ -71,7 +71,7 @@ class Media | ||
| 71 | 71 | */ |
| 72 | 72 | public function find($id) |
| 73 | 73 | { |
| 74 | $response = $this->client->request('GET', "folders/${id}"); | |
| 74 | $response = $this->client->request('GET', "media/${id}"); | |
| 75 | 75 | |
| 76 | 76 | return new Response($this, $response); |
| 77 | 77 | } |
| @@ -117,6 +117,18 @@ class Media | ||
| 117 | 117 | return $this->client->request('DELETE', "media/{$id}", ['media_id' => $id]); |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | /** | |
| 121 | * Get specific folders. | |
| 122 | * | |
| 123 | * @param string $query | |
| 124 | * | |
| 125 | * @return array | |
| 126 | */ | |
| 127 | public function search($query) | |
| 128 | { | |
| 129 | return $this->client->request('POST', 'media/search', compact('query')); | |
| 130 | } | |
| 131 | ||
| 120 | 132 | /** |
| 121 | 133 | * Archive a media. |
| 122 | 134 | * |