ExStreamClient.Operations.Uploads (ExStreamClient v0.1.13)
View SourceModules for interacting with the uploads group of Stream APIs
API Reference: https://getstream.github.io/protocol/?urls.primaryName=Chat%20v2
Shared options
All functions in this module accept the following optional parameters:
api_key- API key to use. If not provided, the default key from config will be usedauthenticate_as_user- User id to authenticate. If not provided, the server key will be usedapi_key_secret- API key secret to use. If not provided, the default secret from config will be usedendpoint- endpoint to use. If not provided, the default endpoint from config will be usedclient- HTTP client to use. Must implementExStreamClient.Http.Behavior. Defaults toExStreamClient.Httpreq_opts- all of these options will be forwarded to req. SeeReq.new/1for available options
Summary
Functions
Deletes previously uploaded file
Deletes previously uploaded image
Uploads file
Uploads image
Types
Functions
@spec delete_file_global([{:url, String.t()} | shared_opts()]) :: {:ok, ExStreamClient.Model.Response.t()} | {:error, any()}
Deletes previously uploaded file
Optional Arguments:
url- All options from Shared Options are supported.
@spec delete_image_global([{:url, String.t()} | shared_opts()]) :: {:ok, ExStreamClient.Model.Response.t()} | {:error, any()}
Deletes previously uploaded image
Optional Arguments:
url- All options from Shared Options are supported.
@spec upload_file_global(ExStreamClient.Model.FileUploadRequest.t(), shared_opts()) :: {:ok, ExStreamClient.Model.FileUploadResponse.t()} | {:error, any()}
Uploads file
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.
@spec upload_image_global(ExStreamClient.Model.ImageUploadRequest.t(), shared_opts()) :: {:ok, ExStreamClient.Model.ImageUploadResponse.t()} | {:error, any()}
Uploads image
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.