Looking at using Zoom's API but not an experienced developer

Hi there,

I’m looking at building a simple app that enables me to get a user’s PMI by submitting their email address.

Although I know some javascript I haven’t worked with APIs before. Is there anyway I could see an example project (maybe a github repo) for a simple API implementation so I could edit to my needs?

Thank you very much.
João.

Hi João, 

Sure, here is the API to get a user’s PMI via email address (https://zoom.github.io/api/#retrieve-a-user). Also, here is a sample GitHub project along with documentation to get your started!

Github Project - https://github.com/zoom/sample-app-web

Docs - https://zoom.github.io/zoom-sdk-web/tutorial-getting-started.html

Thanks

Michael

 

 

Hi Michael!

Thanks for that.
I’ve sat down with a developer here and have come up with the following:

(function(){

document.getElementById(‘requestPMI’).addEventListener(‘click’, function(e){

var userId = document.getElementById(‘user_email’).value;
var token = ‘OUR TOKEN’;

$.ajax({
type: “GET”,
jsonp: “callback”,
dataType: “jsonp”,
url: “https://api.zoom.us/v2/users/” + userId + “?access_token=” + token,

jsonpCallback: ‘callback’,
success: function (data) {

console.log(data);
}

});

 

 

});

})();"

This generates a "Uncaught SyntaxError: Unexpected token : " though. If I click on this error I can see what the API returned though

({“id”:“34VOq4A_SZmcV6ufRqWCFA”,“first_name”:“João”,“last_name”:“Rocha”,“email”:“joao.rocha@transferwise.com”,“type”:2,“pmi”:2086373653,“vanity_url”:“https://transferwise.zoom.us/my/joaorocha",“timezone”:“Europe/London”,“verified”:0,“dept”:“IT”,“created_at”:“2017-04-20T16:47:44Z”,“last_login_time”:“2018-06-04T11:32:34Z”,“last_client_version”:“4.1.20199.0205(mac)”,“pic_url”:“https://transferwise.zoom.us/p/34VOq4A_SZmcV6ufRqWCFA/d704e6c5-0e15-4272-9d3c-ecfcce4b85c7-6385”,“account_id”:"YBfuo2s-RXK6riCoZ3e4CQ”} )

So we’ve established connection with the API but something seems to be wrong. Could you help at all?
Thank you!

Hi João,

Can you email us your accountID, along with the code to developersupport@zoom.us? From there we can take a better look at troubleshooting your issue. 

Thanks

Michael

Hi Michael,

 

sure, looking at doing this right now.

Thank you.

Closing old topic.

-Tommy