# Create Meeting from ASP.Net Page with OAuth Example

**URL:** <https://devforum.zoom.us/t/create-meeting-from-asp-net-page-with-oauth-example/87305>\
**Category:** API and Webhooks\
**Created:** [April 25, 2023, 8:40am UTC](https://devforum.zoom.us/t/create-meeting-from-asp-net-page-with-oauth-example/87305 "2023-04-25T08:40:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![milaapmp](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@milaapmp](https://devforum.zoom.us/u/milaapmp)\
**Post date:** [April 28, 2023, 10:57am UTC](https://devforum.zoom.us/t/create-meeting-from-asp-net-page-with-oauth-example/87305/4 "2023-04-28T10:57:36Z")

</div>

Hi Elisa,

Thanks for response, I have used the code to generate the token.

var client = new RestClient(“[Sign In | Zoom](https://zoom.us/oauth/authorize?response_type=code&client_id=iBnqJNr7TvK89qiVAfpLTA&redirect_uri=https%3A%2F%2Fmpmilaap.in%2FCreate)”);  
var request = new RestRequest(“”, Method.Post);  
request.AddHeader(“Authorization”, “HSrRBUOaUTbUL6bV1UXKTGXvgKem5PY2”);

```
        RestResponse response = client.Execute(request);
        Label1.Text = response.Content;

```

I refer the code from the given link below, but the token is not generating, it will shift to zoom

> [@Generate Authorization code and token c# code](http://devforum.zoom.us/t/generate-authorization-code-and-token-c-code/39197/2):
>
> Hi @mnf, Thanks for reaching out about this. Have you had a chance to look over our OAuth Guide? The first step, if you haven’t already, is to [create an OAuth App](https://marketplace.zoom.us/docs/guides/build/oauth-app) to generate your Client ID and Secret. From there, you will then need to follow steps 1 and 2 in our guide: retrieving the code from your redirect URL after the user installs the app, and then using that code in step 2 to fetch an access token. Your second request (after you retrieve the code), should look something like this: var…

Request to help

Best Regards  
Tarun

---

_[View the full topic](https://devforum.zoom.us/t/create-meeting-from-asp-net-page-with-oauth-example/87305)._
