Go Back   Tech Support Forum > The IT Pro > Programming

User Tag List

Integrating Zoom API to angularJs

This is a discussion on Integrating Zoom API to angularJs within the Programming forums, part of the Tech Support Forum category. Hi everyone, I am trying to integrate the zoom API into my angularjs application. HTML Code: <head> <link type= "text/css"


Reply
 
Thread Tools Search this Thread
Old 05-05-2020, 04:43 PM   #1
Registered Member
 
Join Date: Apr 2010
Posts: 2
OS: XP



Hi everyone,

I am trying to integrate the zoom API into my angularjs application.
HTML Code:
<head>
    <link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.7.7/css/bootstrap.css"/>
    <link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.7.7/css/react-select.css"/>
According to the documentation, I have added an index.js as so:
Code:
var myAppModule = angular.module('zoomAPI',[]);
myAppModule.controller('zoomController', function($scope) {
}).directive ('zoomMeeting', function(service, utils){
    return {
        link: function(scope, element, attrs) {
            var canvasWidth, canvasHeight, rafID, analyserContext, props = service.$html5AudioProps;

            console.log('checkSystemRequirements');
            console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
            
            ZoomMtg.preLoadWasm();
            ZoomMtg.prepareJssdk();
            
            const API_KEY = 'oyuXBO0uQjWVb_2WpVHNkQ';
            const API_SECRET = 'rfV6wvlAHJ9ssWNJhpn1ha3YYWo9vRDaXIiu';
            
            const meetConfig = {
                apiKey: API_KEY,
                apiSecret: API_SECRET,
                meetingNumber: 76961137243,
                passWord: '3njjdH',
                userName: 'infinitizon',
                leaveUrl: 'https://school.edugate.loc/tests/zoom/',
                role: 0
            };
            
            var signature = ZoomMtg.generateSignature({
                meetingNumber: meetConfig.meetingNumber,
                apiKey: meetConfig.apiKey,
                apiSecret: meetConfig.apiSecret,
                role: meetConfig.role,
                success: function(res){
                    console.log('signature', res.result);
                }
            });
        
            ZoomMtg.init({
                leaveUrl: 'https://school.edugate.loc/tests/zoom/',
                isSupportAV: true,
                success: function () {
                    ZoomMtg.join(
                        {
                            meetingNumber: meetConfig.meetingNumber,
                            userName: meetConfig.userName,
                            signature: signature,
                            apiKey: meetConfig.apiKey,
                            passWord: meetConfig.passWord,
                            success: function(res){
                                console.log('join meeting success');
                            },
                            error: function(res) {
                                console.log(res);
                            }
                        }
                    );
                },
                error: function(res) {
                    console.log(res);
                }
            });
        }
    }
});
Help!!!
infinitizon is offline   Reply With Quote
Sponsored Links
Advertisement
 
Reply

« linking in mysli | - »
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2
Powered by vBadvanced CMPS v3.2.3


All times are GMT -7. The time now is 06:09 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts