slackline/api/oauth/access

This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.

Setters for the optional arguments of oauth.access. Each setter takes the call that oauth.access returns and sets one argument:

oauth.access()
|> access.client_id("2141029472.691202649728")

Values

pub fn client_id(
  call: slackline.Call(oauth.Access, r),
  client_id: String,
) -> slackline.Call(oauth.Access, r)

Issued when you created your application. If possible, avoid sending client_id and client_secret as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme.

pub fn client_secret(
  call: slackline.Call(oauth.Access, r),
  client_secret: String,
) -> slackline.Call(oauth.Access, r)

Issued when you created your application. If possible, avoid sending client_id and client_secret as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme.

pub fn code(
  call: slackline.Call(oauth.Access, r),
  code: String,
) -> slackline.Call(oauth.Access, r)

The code param returned via the OAuth callback.

pub fn redirect_uri(
  call: slackline.Call(oauth.Access, r),
  redirect_uri: String,
) -> slackline.Call(oauth.Access, r)

This must match the originally submitted URI (if one was sent).

pub fn single_channel(
  call: slackline.Call(oauth.Access, r),
  single_channel: Bool,
) -> slackline.Call(oauth.Access, r)

Request the user to add your app only to a single channel. Only valid with a legacy workspace app. Defaults to false.

✨ Search Document