# AcessToken issue

**URL:** <https://devforum.zoom.us/t/acesstoken-issue/13659>\
**Category:** API and Webhooks\
**Created:** [April 17, 2020, 11:17am UTC](https://devforum.zoom.us/t/acesstoken-issue/13659 "2020-04-17T11:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumitonemail2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sumitonemail2/32/6339_2.png) [@sumitonemail2](https://devforum.zoom.us/u/sumitonemail2)\
**Post date:** [April 17, 2020, 11:17am UTC](https://devforum.zoom.us/t/acesstoken-issue/13659/1 "2020-04-17T11:17:44Z")

</div>

**Description**  
i am trying to get access token. from zoom Api,  
actullly it work proper when i post it from postman.  
but not getting response from my code.

**Error**  
i am not getting response. .

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Oauth

**Which Endpoint/s?**

```auto
https://zoom.us/oauth/token?grant_type=authorization_code&code=obBEe8ewaL_KdYKjnimT4KPd8KKdQt9FQ&redirect_uri=https://yourapp.com

**How To Reproduce (If applicable)**

        public static async Task<string> PostTogetToken<T>(string requestUrl, string code, string client_Secretkey) {

            ZoomToken hello = new ZoomToken();
            var EncodedURl = ApiService.Base64Encode(client_Secretkey);

         
                using (var _httpClient = new HttpClient()) {
                    if (!string.IsNullOrEmpty(requestUrl))
                        _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", "Basic " + EncodedURl);

                    var httpContent = new StringContent("", Encoding.UTF8, "application/x-www-form-urlencoded");

                    var httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, new Uri(requestUrl)) {
                        Version = HttpVersion.Version10,
                        Content = httpContent
                    };

                    using (var response = await _httpClient.SendAsync(httpRequestMessage)) {
                        if (response.IsSuccessStatusCode) {
                            response.EnsureSuccessStatusCode();
                            return await response.Content.ReadAsStringAsync();
                        } else {
                            return await response.Content.ReadAsStringAsync();
                        }
                    }
                }
        }

It actully get stuck or await from var response = await _httpClient.SendAsync(httpRequestMessage).
```

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 20, 2020, 3:52pm UTC](https://devforum.zoom.us/t/acesstoken-issue/13659/2 "2020-04-20T15:52:06Z")

</div>

Hey @sumitonemail2,

Have you followed the OAuth guide here: [https://marketplace.zoom.us/docs/guides/auth/oauth](https://marketplace.zoom.us/docs/guides/auth/oauth) ?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:33pm UTC](https://devforum.zoom.us/t/acesstoken-issue/13659/3 "2020-08-21T20:33:25Z")

</div>

Closed on August 21, 2020, 8:33pm UTC


