midas/sdk/dnsimple

Types

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

Constructors

  • App(
      client_id: String,
      client_secret: String,
      redirect_uri: String,
    )
pub type Domain {
  Domain(id: Int, name: String)
}

Constructors

  • Domain(id: Int, name: String)

Functions

pub fn auth_redirect(
  redirect: Uri,
) -> Result(#(String, String), String)
pub fn authenticate(app: App) -> Effect(#(String, Int))
pub fn list_domains(
  token: String,
  account: Int,
) -> Effect(List(Domain))
pub fn list_domains_request(
  token: String,
  account: Int,
) -> Request(BitArray)
pub fn list_domains_response(
  response: Response(BitArray),
) -> Result(List(Domain), Snag)
pub fn token_request(
  client_id: String,
  client_secret: String,
  redirect_uri: String,
  code: String,
  state: String,
) -> Request(BitArray)
pub fn token_response(
  response: Response(BitArray),
) -> Result(#(String, Int), a)
Search Document