midas/sdk/vimeo

Types

pub type App {
  App(client_id: String, redirect_uri: String)
}

Constructors

  • App(client_id: String, redirect_uri: String)
pub type Video {
  Video(
    name: String,
    link: String,
    duration: Int,
    created_time: String,
    plays: Int,
    has_audio: Bool,
  )
}

Constructors

  • Video(
      name: String,
      link: String,
      duration: Int,
      created_time: String,
      plays: Int,
      has_audio: Bool,
    )

Functions

pub fn auth_redirect(
  redirect: Uri,
) -> Result(#(String, String, String), String)
pub fn authenticate(
  app: App,
  scopes: List(String),
) -> Effect(String)
pub fn my_videos(token: String) -> Effect(List(Video))
pub fn my_videos_request(token: String) -> Request(BitArray)
pub fn my_videos_response(
  response: Response(BitArray),
) -> Result(List(Video), Snag)
pub fn video_decoder(
  data: Dynamic,
) -> Result(Video, List(DecodeError))
Search Document