generateSignature - Angular

Dears,

I created a file.js to call the method generateSignature, then I pass apiKey, apiSecret, meetingNumber, role like params.

But, the msg ad hash don’t return value, therefore, I don’t have value to the Signature.


const msg = Buffer.from(apiKey + meetingNumber + timestamp + role).toString(‘base64’)
alert(msg);

const hash = crypto.createHmac(‘sha256’, apiSecret).update(msg).digest(‘base64’)
alert(hash);


Hey @silasas,

Are you seeing any errors being thrown in your console when you are running this code?

Thanks,
Tommy

Hi Master,

Then, probably that doesn’t work using javascript, just nodejs, but I am not sure about it.

My project is on net core and I am using Angular in the front. So I decided change the signature to c# instead javascript.

Then, I got the signature, but show other error with black window:

See:

My code:

Hey @silasas,

Can you share the signature you are generating to developersupport@zoom.us so I can help debug the issue?

Thanks,
Tommy

Hi Tommy,

This picture is better to you see my problem.

Follow the signature:

Hi Tommy,

I got…
I am not expert in Angular, so it was hard for me.
I am using Angular just for the Zoom and C# to the signature.

Follow my solution to this problem:

  1. I created a file of service (meeting.service.ts) to make http from c# code.

  1. Then, Inside the method ngOnInit() on MEETINGS.COMPONENT.TS

    a) I call the method => getSignature() from meeting.service.ts
    b) I call the startMeeting passing the signature.

  1. The startMeeting is standard from SDK Zoom:

  1. To the constructor I use the meeting.service.ts and httpClient:

1 Like

Happy to hear you got the issue sorted out! :slight_smile:

Thanks for sharing your solution!

-Tommy

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.