예제 #1
0
 /**
  * @return array
  */
 private function getAllSources()
 {
     $raw = $this->client->files('list', array('project_id' => $this->project, 'per_page' => 100));
     $response = json_decode($raw, true);
     $data = $response['data'];
     return array_map(function ($item) {
         return $item['file_name'];
     }, $data);
 }
예제 #2
0
 /**
  * @expectedException \UnexpectedValueException
  * @expectedExceptionMessage Invalid authenticate data of api key or secret
  */
 public function testFilesDeleteDetectInvalidAuthentication()
 {
     $this->api->files('delete', ['project_id' => 123]);
 }