Beispiel #1
0
 public async Task ProcessVerificationCode(string code)
 {
     UriBuilder builder = new UriBuilder("https://slack.com/api/oauth.access");
     var        payload = new ExchangeVerificationCodeRequestModel()
     {
         code          = code,
         client_id     = clientId,
         client_secret = clientSecret,
         redirect_uri  = redirectUri
     };
 }
Beispiel #2
0
        private StringContent prepareContent(string code)
        {
            var payload = new ExchangeVerificationCodeRequestModel()
            {
                code          = code,
                client_id     = clientId,
                client_secret = clientSecret,
                redirect_uri  = redirectUri
            };

            var content = new StringContent(JsonConvert.SerializeObject(payload),
                                            Encoding.UTF8, "application/json");

            return(content);
        }