/** * Perform the operation, returning a promise or raw response object * * @author Art <*****@*****.**> * * @param string $query The search query * @param string $path The folder to search * @param SearchOptions|null $options Additional options * * @return \GuzzleHttp\Promise\PromiseInterface|\Psr\Http\Message\ResponseInterface The promise interface if * async is set to true and the * request interface if it is * set to false * @throws \GuzzleHttp\Exception\ClientException */ public function raw($query, $path = '', SearchOptions $options = null) { return $this->send('files/search', $path, Options::merge([Option::QUERY => $query], $options)); }
/** * Perform the operation, returning a promise or raw response object * * @author Art <*****@*****.**> * * @param string|resource|\Psr\Http\Message\StreamInterface $data The file contents. Can be a string, a fopen() * @param UploadSessionCursor $cursor The upload session cursor * @param UploadSessionActiveOptions|null $options Additional operation options * * @return \GuzzleHttp\Promise\PromiseInterface|\Psr\Http\Message\ResponseInterface The promise interface if * async is set to true and the * request interface if it is * set to false * @throws \GuzzleHttp\Exception\ClientException */ public function raw($data, UploadSessionCursor $cursor, UploadSessionActiveOptions $options = null) { return $this->send('upload_session/append_v2', null, $data, Options::merge($options, [Option::CURSOR => $cursor])); }