Example #1
0
 public function getFileInfoById($id, $asArray = false)
 {
     $res = $this->postJson('get_file_info', ['fileId' => $id]);
     return $asArray ? $res : File::fromInfo($res, $this);
 }