Wax.CloudAPI.Media (wax v1.1.0)
Media managment via the Cloud API
Summary
Functions
Uploads an image to the Cloud API servers from binary data
Uploads an image to the Cloud API servers from the given path
Functions
@spec upload_binary(iodata(), String.t(), Wax.CloudAPI.Auth.t()) :: {:ok, Media.media_id()} | {:error, String.t()}
Uploads an image to the Cloud API servers from binary data
This returns the Media ID, which is required to send any type of media files in a message.
@spec upload_from_path(Path.t(), Wax.CloudAPI.Auth.t()) :: {:ok, Media.media_id()} | {:error, String.t()}
Uploads an image to the Cloud API servers from the given path
This returns the Media ID, which is required to send any type of media files in a message.