# Issue to get access token through code

**URL:** <https://devforum.zoom.us/t/issue-to-get-access-token-through-code/14654>\
**Category:** API and Webhooks\
**Created:** [April 23, 2020, 6:55pm UTC](https://devforum.zoom.us/t/issue-to-get-access-token-through-code/14654 "2020-04-23T18:55:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sirizappsdeveloper](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@sirizappsdeveloper](https://devforum.zoom.us/u/sirizappsdeveloper)\
**Post date:** [April 23, 2020, 6:55pm UTC](https://devforum.zoom.us/t/issue-to-get-access-token-through-code/14654/1 "2020-04-23T18:55:28Z")

</div>

**Description**  
I am getting access token on postman but when i try to get from my code in C#. It gives me error  
**Error**  
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host  
**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

Please guide me about this issue.

---

<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 24, 2020, 7:36pm UTC](https://devforum.zoom.us/t/issue-to-get-access-token-through-code/14654/2 "2020-04-24T19:36:35Z")

</div>

Hey @sirizappsdeveloper,

Please share your request url so we can debug.

This could also be an issue with your C# server configuration.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sirizappsdeveloper](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@sirizappsdeveloper](https://devforum.zoom.us/u/sirizappsdeveloper)\
**Post date:** [April 28, 2020, 9:07am UTC](https://devforum.zoom.us/t/issue-to-get-access-token-through-code/14654/3 "2020-04-28T09:07:34Z")

</div>

Thanks @tommy I have just resolve the issue, it was problem with me Stream configuration. but when I am trying to join meeting from my web application it shows me ‘ZoomMtg’ is not defined. even I am using web SDK example code in my .js file. can you just please explain me how I can install sdk files to my C# application or can I use just the link to run? I am talking about following links

src=“js/plugin/jquery.js”\>  
href=“css/plugin/online/react-select.css” /\>  
src=“[https://source.zoom.us/1.7.6/lib/vendor/react.min.js](https://source.zoom.us/1.7.6/lib/vendor/react.min.js)”\>  
src=“[https://source.zoom.us/1.7.6/lib/vendor/react-dom.min.js](https://source.zoom.us/1.7.6/lib/vendor/react-dom.min.js)”\>  
src=“[https://source.zoom.us/1.7.6/lib/vendor/redux.min.js](https://source.zoom.us/1.7.6/lib/vendor/redux.min.js)”\>  
src=“[https://source.zoom.us/1.7.6/lib/vendor/redux-thunk.min.js](https://source.zoom.us/1.7.6/lib/vendor/redux-thunk.min.js)”\>  
src=“[https://source.zoom.us/1.7.6/lib/vendor/lodash.min.js](https://source.zoom.us/1.7.6/lib/vendor/lodash.min.js)”\>  
src=“js/plugin/online/webim.min.js”\>  
src=“[https://source.zoom.us/zoom-meeting-1.7.6.min.js](https://source.zoom.us/zoom-meeting-1.7.6.min.js)”\>  
src=“js/plugin/online/zoomus-websdk.umd.min.js”\>  
src=“js/plugin/online/tool.js”\>  
src=“js/plugin/online/index.js”\>

only these are required?

---

<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:** [May 4, 2020, 3:24am UTC](https://devforum.zoom.us/t/issue-to-get-access-token-through-code/14654/5 "2020-05-04T03:24:03Z")

</div>

Hey @sirizappsdeveloper,

Glad you are able to get access token.

Please post your Web SDK question in the #web-sdk category and we will be happy to assist.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![johnnyharris345](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@johnnyharris345](https://devforum.zoom.us/u/johnnyharris345)\
**Post date:** [February 21, 2024, 8:19pm UTC](https://devforum.zoom.us/t/issue-to-get-access-token-through-code/14654/6 "2024-02-21T20:19:10Z")

</div>

please recheck your endpoint url you are using in C#
