SlackWebAPI v1.2.0 SlackWebAPI.Api.AppsPermissionsUsers View Source
API calls for all endpoints tagged AppsPermissionsUsers
.
Link to this section Summary
Functions
Returns list of user grants and corresponding scopes this app has on a team.
Enables an app to trigger a permissions modal to grant an app access to a user access scope.
Link to this section Functions
Link to this function
apps_permissions_users_list(connection, opts \\ [])
View Sourceapps_permissions_users_list(Tesla.Env.client(), keyword()) :: {:ok, SlackWebAPI.Model.DefaultSuccessTemplate.t()} | {:error, Tesla.Env.t()}
Returns list of user grants and corresponding scopes this app has on a team.
Parameters
- connection (SlackWebAPI.Connection): Connection to server
opts (KeywordList): [optional] Optional parameters
- :cursor (String.t): Paginate through collections of data by setting the
cursor
parameter to anext_cursor
attribute returned by a previous request'sresponse_metadata
. Default value fetches the first "page" of the collection. See pagination for more detail. - :token (String.t): Authentication token. Requires scope:
none
- :limit (integer()): The maximum number of items to return.
- :cursor (String.t): Paginate through collections of data by setting the
Returns
{:ok, %SlackWebAPI.Model.DefaultSuccessTemplate{}} on success {:error, info} on failure
Link to this function
apps_permissions_users_request(connection, opts \\ [])
View Sourceapps_permissions_users_request(Tesla.Env.client(), keyword()) :: {:ok, SlackWebAPI.Model.DefaultSuccessTemplate.t()} | {:error, Tesla.Env.t()}
Enables an app to trigger a permissions modal to grant an app access to a user access scope.
Parameters
- connection (SlackWebAPI.Connection): Connection to server
opts (KeywordList): [optional] Optional parameters
- :scopes (String.t): A comma separated list of user scopes to request for
- :token (String.t): Authentication token. Requires scope:
none
- :user (String.t): The user this scope is being requested for
- :trigger_id (String.t): Token used to trigger the request
Returns
{:ok, %SlackWebAPI.Model.DefaultSuccessTemplate{}} on success {:error, info} on failure