# Help Generate SDK With Net Core 6

**URL:** <https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310>\
**Category:** Meeting SDK\
**Tags:** api\
**Created:** [January 5, 2024, 9:04pm UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310 "2024-01-05T21:04:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonardosfrancisco](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/leonardosfrancisco/32/55313_2.png) [@leonardosfrancisco](https://devforum.zoom.us/u/leonardosfrancisco)\
**Post date:** [January 5, 2024, 9:04pm UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310/1 "2024-01-05T21:04:06Z")

</div>

My name is Leonardo. I created an app-server-to-server and already got ApiKey, ApiSecret, ClientID.

Following the forum, I found an example in C# of how to generate the signature using my apikey and apisecret.

Every time I try to use the signature in Angular I get an error of ‘SdkKey invalid’ or sometimes ‘Signature invalid’

C# Post Method  
[HttpPost(“GenerateSignatureZoom”)]  
public string GenerateSignature(long meetingNumber, int role)  
{  
string apiKey = “wc2yJ3WxQ8ai1LQD37v48w”;  
string apiSecret = “BCbtD8C3DSG0hJprqsLkoZZHn7P08tu6”;  
long ToEpoch(DateTime value) =\> (value.Ticks - 621355968000000000) / (10000 \* 1000);

```
        var now = DateTime.UtcNow;
        var iat = ToEpoch(now);
        var exp = ToEpoch(now.AddDays(1));
        var payload = new Dictionary<string, object>()
        {
            { "appKey", apiKey },
            { "sdkKey", apiKey },
            { "mn", meetingNumber },
            { "roll", roll },
            { "iat", iat },
            { "exp", exp },
            { "tokenExp", exp },
        };
        return Jose.JWT.Encode(payload, Encoding.UTF8.GetBytes(apiSecret), JwsAlgorithm.HS256);
    }

```

Angular  
startMeeting() {

```
let meetingSDKElement = document.getElementById('meetingSDKElement');

this.ngZone.runOutsideAngular(() => {
  this.client.init({zoomAppRoot: meetingSDKElement, language: 'en-US'}).then(() => {
    this.client.join({
      signature: this.signature,
      sdkKey: this.sdkKey,
      meetingNumber: this.meetingNumber,
      password: this.passWord,
      userName: this.userName,
      userEmail: this.userEmail,
      tk: this.registrantToken,
      zak: this.zakToken
    }).then(() => {
      console.log('joined successfully')
    }).catch((error) => {
      console.log(error)
    })
  }).catch((error) => {
    console.log(error)
  })
})

```

}

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 6, 2024, 3:28am UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310/2 "2024-01-06T03:28:33Z")

</div>

Hi @leonardosfrancisco !

Welcome to the Zoom Developer community. You cannot use the Server-to-Server OAuth application credentials with the SDKs. You must use the Meeting SDK credentials to generate the signature.

Here’s the documentation you need:

- [Zoom Meeting SDK for web](https://developers.zoom.us/docs/meeting-sdk/web/)
- [Meeting SDK Auth](https://developers.zoom.us/docs/meeting-sdk/auth/)

---

<div class="post-metadata">

**Author:** ![leonardosfrancisco](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/leonardosfrancisco/32/55313_2.png) [@leonardosfrancisco](https://devforum.zoom.us/u/leonardosfrancisco)\
**Post date:** [January 8, 2024, 11:36am UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310/4 "2024-01-08T11:36:11Z")

</div>

Hi Gianni

I admit I’m lost in the documentation. In MeetingSDK I only have ClientID and ClientSecret. I’m using the address [https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id={accountId}](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=%7BaccountId%7D) to generate the Token, but in the MeetingSDK there is no AccountId (I don’t know where to find it).

What is the endpoint to generate Access Token to MeetingSDK?

Can you please clarify these doubts for me?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 8, 2024, 1:04pm UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310/5 "2024-01-08T13:04:24Z")

</div>

> [@leonardosfrancisco](#):
>
> I admit I’m lost in the documentation. In MeetingSDK I only have ClientID and ClientSecret. I’m using the address [https://zoom.us/oauth/token?grant\_type=account\_credentials&account\_id={accountId}](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=%7BaccountId%7D) to generate the Token, but in the MeetingSDK there is no AccountId (I don’t know where to find it).

Hi @leonardosfrancisco no worries!

You cannot use the Server-to-Server OAuth URL with Meeting SDK credentials. The URL you used is for Server-to-Server OAuth app. Server-to-Server OAuth app is for _internal application data access_.

Since you are using Meeting SDK, please follow the guidance here: [Meeting SDK Auth](https://developers.zoom.us/docs/meeting-sdk/auth/)

_You will use your Meeting SDK client id and client secret to generate a SDK JWT/signature that allows you to join/start meetings:_

> ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/c/2c8d50b36d82f4700e994c16f68389957db10465.png)

**If you want to access the Zoom Open API endpoints at a later point, you can use your MSDK client id and client secret to [generate an OAuth access token](https://developers.zoom.us/docs/integrations/oauth/).**

You can also create a Server-to-Server OAuth or standard OAuth app type and run through the process to get to the endpoints.

---

<div class="post-metadata">

**Author:** ![leonardosfrancisco](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/leonardosfrancisco/32/55313_2.png) [@leonardosfrancisco](https://devforum.zoom.us/u/leonardosfrancisco)\
**Post date:** [January 8, 2024, 1:31pm UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310/6 "2024-01-08T13:31:54Z")

</div>

> [@leonardosfrancisco](#):
>
> MeetingSDK

Gianni,

I fixed it and created a MeetingSDK. Thank you for the response.

I’m having trouble generating the access token now.

You can use this access token to make requests to the Zoom API, the documentation is confusing on how to use the endpoint [https://zoom.us/oauth/token](https://zoom.us/oauth/token)

The code I used is giving an Invalid Token or Bad Request error.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 8, 2024, 6:27pm UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310/7 "2024-01-08T18:27:40Z")

</div>

Hi @leonardosfrancisco ,

If you’re using an OAuth app, follow this guide: [Create an OAuth app](https://developers.zoom.us/docs/integrations/create/)

For Server-to-Server: [Internal apps (Server-to-server)](https://developers.zoom.us/docs/internal-apps/)

You can also use our Postman workspace to help with authentication: [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/folder/22097587-e7ae0b09-de23-433a-8dde-c96a57c775fd?ctx=comments)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/0/8070e1fd373357668fc24990edd18605d2d061fb.png)

---

<div class="post-metadata">

**Author:** ![leonardosfrancisco](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/leonardosfrancisco/32/55313_2.png) [@leonardosfrancisco](https://devforum.zoom.us/u/leonardosfrancisco)\
**Post date:** [January 8, 2024, 8:43pm UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310/8 "2024-01-08T20:43:01Z")

</div>

Hi @gianni.zoom

I appreciate your help and patiente.

GET oauth/token?response\_type=code&client\_id={{oAuthDevClientId}}&redirect\_uri={{oAuthDevRedirectUri}}  
OR  
GET oauth/authorize?response\_type=code&client\_id={{oAuthDevClientId}}&redirect\_uri={{oAuthDevRedirectUri}}

If it is a token at the end (gives status 405 Method Not Allowed) and if it is authorize at the end (it only brings HTML from a page other than the one I configured in the MeetingSDK and does not bring the code)

POST [https://zoom.us/oauth/token](https://zoom.us/oauth/token)  
I configured using Postman Authorization Tab and generated the code. But the method gives status 400

Are the Apis really up to date? Why do I do the same procedure and path and it gives an error? I’m sure my configuration in MeetingSDK is correct.

I want creat it in my backend Net Core. Please help me

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 11, 2024, 7:33pm UTC](https://devforum.zoom.us/t/help-generate-sdk-with-net-core-6/101310/9 "2024-01-11T19:33:19Z")

</div>

Hi @leonardosfrancisco ,

Sorry for the confusion! Can you please clarify which app type you are using to access the Zoom APIs?

**Let’s back track and use the Meeting SDK credentials:**

 ![Screenshot 2024-01-11 at 1.36.55 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/2/a21d2d0c0ce04ffd98536a6383085337a2fc6f6c.png)

If you have your MSDK set to “intend to publish: yes”, you will have both development and production app credentials. If you have your MSDK set to “intend to publish: no”, you will just have one set of credentials.

**Please take those credentials, and follow the OAuth process:**

- [OAuth for user authorized apps](https://developers.zoom.us/docs/integrations/oauth/)

**If you’d like to do the OAuth process with PKCE, you can reference the docs here:**

- [OAuth for user authorized apps](https://developers.zoom.us/docs/integrations/oauth/)

**I recommend getting your access token using [our public workspace](https://www.postman.com/zoom-developer/workspace/93c57614-646e-432d-94ed-3792fa567a48/folder/22097587-06f4e298-6839-47c6-875f-9b53910b9e73) since it is your first time.**

For help on how to use the workspace, please see the instructions and tutorials [here](https://www.postman.com/zoom-developer/workspace/93c57614-646e-432d-94ed-3792fa567a48/overview).
