# Sample-app-web-master

**URL:** <https://devforum.zoom.us/t/sample-app-web-master/3521>\
**Category:** Web\
**Created:** [March 7, 2019, 2:32pm UTC](https://devforum.zoom.us/t/sample-app-web-master/3521 "2019-03-07T14:32:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastercenter](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@mastercenter](https://devforum.zoom.us/u/mastercenter)\
**Post date:** [March 7, 2019, 2:32pm UTC](https://devforum.zoom.us/t/sample-app-web-master/3521/1 "2019-03-07T14:32:12Z")

</div>

Tried to run index.html, and got  
errorCode: 1,  
errorMessage : “The account don’t enable API.”  
method: “join”  
result: null,  
status: false

The host Open the meeting room already, and the meeting number is correct. please let me know what possible problem did cause the issue. Thanks!

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [March 7, 2019, 4:31pm UTC](https://devforum.zoom.us/t/sample-app-web-master/3521/2 "2019-03-07T16:31:23Z")

</div>

Hi @mastercenter,

Does the account that has the API Key/Secret have has API enabled?

---

<div class="post-metadata">

**Author:** ![mastercenter](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@mastercenter](https://devforum.zoom.us/u/mastercenter)\
**Post date:** [March 7, 2019, 5:18pm UTC](https://devforum.zoom.us/t/sample-app-web-master/3521/3 "2019-03-07T17:18:27Z")

</div>

Hi Michael,

Here is API key/secret from My Meeting Settings

key:

Secret:

Here is index.js code. look like client did not catch the key and secret value.

(function(){ console.log(‘checkSystemRequirements’);

```
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));

```

// it’s option if you want to chenge the jssdk dependency link resources.

```
// ZoomMtg.setZoomJSLib('https://dmogdx0jrul3u.cloudfront.net/1.3.7/lib', '/av'); 

// CDN version default 

```

// ZoomMtg.setZoomJSLib(‘[http://localhost:9999/node\_modules/zoomus-jssdk/dist/lib](http://localhost:9999/node_modules/zoomus-jssdk/dist/lib)’, ‘/av’);

```
// Local version default

ZoomMtg.preLoadWasm();

ZoomMtg.prepareJssdk();    

var API_KEY = 'YOUR_API_KEY';

/**

 * NEVER PUT YOUR ACTUAL API SECRET IN CLIENT SIDE CODE, THIS IS JUST FOR QUICK PROTOTYPING

 * The below generateSignature should be done server side as not to expose your api secret in public

 * You can find an eaxmple in here: https:

//marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/tutorial/generate-signature

 */ 

 var API_SECRET = 'YOUR_API_SECRET';   

 document.getElementById('join_meeting').addEventListener('click', function(e)

	{e.preventDefault();        

		if(!this.form.checkValidity())

			{ alert("Enter Name and Meeting Number");            

			return false; 

			}       

		 var meetConfig = { apiKey: API_KEY, apiSecret: API_SECRET, meetingNumber:ParseInt(document.getElementById('meeting_number').value), userName: document.getElementById('display_name').value, passWord: "", leaveUrl: "https://zoom.us", role: 0 }; 

		 var signature = ZoomMtg.generateSignature(	{meetingNumber: meetConfig.meetingNumber, apiKey: meetConfig.apiKey, apiSecret: meetConfig.apiSecret,	role: meetConfig.role,	success: function(res)	{ console.log(res.result);	} }); 

		 ZoomMtg.init(	{leaveUrl: 'http://www.zoom.us', isSupportAV: true,Success: function () {ZoomMtg.join( { meetingNumber: meetConfig.meetingNumber, userName: meetConfig.userName, signature: signature,	apiKey: meetConfig.apiKey,                      

						userEmail: 'mastercenter@163.com',                       

						 passWord: meetConfig.passWord,                       

				 		success: function(res)	{$('#nav-tool').hide();                           

						 console.log('join meeting success');

						},

                                     		error: function(res) 

                                            		{

```

console.log(res);

```
							}

					     });

                                   },

       

                                        error: function(res) 

                                            {

```

console.log(res);

}

```
                                  });

         });

```

})();

Please check it.

Thanks a lot!

Ling

---

<div class="post-metadata">

**Author:** ![mastercenter](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@mastercenter](https://devforum.zoom.us/u/mastercenter)\
**Post date:** [March 8, 2019, 2:08am UTC](https://devforum.zoom.us/t/sample-app-web-master/3521/4 "2019-03-08T02:08:27Z")

</div>

Where can I check if the account that has the API Key/Secret have has API enabled?

Thanks!

---

<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 13, 2021, 6:27pm UTC](https://devforum.zoom.us/t/sample-app-web-master/3521/5 "2021-05-13T18:27:09Z")

</div>

You can see your JWT App within your marketplace settings: [App Marketplace](https://marketplace.zoom.us/user/build)

-Tommy

---

<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 13, 2021, 6:27pm UTC](https://devforum.zoom.us/t/sample-app-web-master/3521/6 "2021-05-13T18:27:12Z")

</div>

Closed on May 13, 2021, 6:27pm UTC


