Wax.CloudAPI.Media (wax v1.0.0)

Media managment via the Cloud API

Summary

Functions

Uploads an image to the Cloud API servers

Functions

upload(file_path, auth)

@spec upload(Path.t(), Wax.CloudAPI.Auth.t()) ::
  {:ok, Media.media_id()} | {:error, String.t()}

Uploads an image to the Cloud API servers

This returns the Media ID, which is required to send any type of media files in a message.