pub struct OauthV2 {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl OauthV2
impl OauthV2
Sourcepub async fn oauth_access(
&self,
client_id: &str,
client_secret: &str,
code: &str,
redirect_uri: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn oauth_access( &self, client_id: &str, client_secret: &str, code: &str, redirect_uri: &str, ) -> Result<Response<DndEndSchema>, ClientError>
This function performs a GET to the /oauth.v2.access endpoint.
Exchanges a temporary OAuth verifier code for an access token.
FROM: https://api.slack.com/methods/oauth.v2.access
Parameters:
client_id: &str– Issued when you created your application.client_secret: &str– Issued when you created your application.code: &str– Thecodeparam returned via the OAuth callback.redirect_uri: &str– This must match the originally submitted URI (if one was sent).
Auto Trait Implementations§
impl Freeze for OauthV2
impl !RefUnwindSafe for OauthV2
impl Send for OauthV2
impl Sync for OauthV2
impl Unpin for OauthV2
impl !UnwindSafe for OauthV2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more