/home/techb158/ileadtechnology.com/vendor/cartalyst/stripe/src/Api
Edit: /home/techb158/ileadtechnology.com/vendor/cartalyst/stripe/src/Api/Files.php (1647B)
getClient()->request('POST', 'v1/files', [
'headers' => $headers,
'multipart' => [
[ 'name' => 'purpose', 'contents' => $purpose ],
[ 'name' => 'file', 'contents' => fopen($file, 'r') ]
],
]);
return json_decode($response->getBody(), true);
}
/**
* Retrieves an existing file upload.
*
* @param string $fileId
* @return array
*/
public function find($fileId)
{
return $this->_get("files/{$fileId}");
}
/**
* Lists all file uploads.
*
* @param array $parameters
* @return array
*/
public function all(array $parameters = [])
{
return $this->_get('files', $parameters);
}
}