async fn execute_post_api_v1_access_token(
    client: &reqwest::Client,
    refresh_token: &str,
    client_id: &str,
    client_password: &str,
) -> std::result::Result<reqwest::Response, reqwest::Error> {
    client
        .post("https://www.reddit.com/api/v1/access_token")
        .body("grant_type=refresh_token&refresh_token=".to_string() + refresh_token)
        .basic_auth(client_id, Some(client_password))
        .send()
        .await
}
// This is manually written, as API documentation doesn't contain it
This is manually written, as API documentation doesn't contain it
This is manually written as API documentation doesn ' t contain it
async fn execute_post_api_v1_access_token(
    client: &reqwest::Client,
    refresh_token: &str,
    client_id: &str,
    client_password: &str,
) -> std::result::Result<reqwest::Response, reqwest::Error> {
    client
        .post("https://www.reddit.com/api/v1/access_token")
        .body("grant_type=refresh_token&refresh_token=".to_string() + refresh_token)
        .basic_auth(client_id, Some(client_password))
        .send()
        .await
}
async fn execute_post_api_v1_access_token ( client : & reqwest :: Client , refresh_token : & str , client_id : & str , client_password : & str , ) -> std :: result :: Result < reqwest :: Response , reqwest :: Error > { client . post ( " " ) . body ( " " . to_string ( ) + refresh_token ) . basic_auth ( client_id , Some ( client_password ) ) . send ( ) . await }
This is manually written, as API documentation doesn't contain it
This is manually written as API documentation doesn ' t contain it
client
&reqwest::Client
refresh_token
&str
client_id
&str
client_password
&str
client
&reqwest::Client
refresh_token
&str
client_id
&str
client_password
&str