Create Meeting API

Hi,

I am integrating Zoom functionality into an application and the create meeting api is not responding with anything.  My code is exactly like create user or create group, which both work fine, but for some reason it is like I am not getting a response from Zoom.

This is the code snippet that is turning up no response so I get a null pointer on the buffered reader:

public class CreateMeeting {
// Variables, getters and setters ommitted for brevity

public static boolean GetZoomMeetingURL() {

String urlString = “https://api.zoom.us/v1/meeting/create?api_key=” + getApiKey() +
“&api_secret=” + getApiSecret() + “&data_type=JSON&host_id=” + getZoomHostId() +
“&topic=” + getTopic() + “&type=” + getMeetingType() + “&start_time=” +
getStartTime() + “&timezone=” + getTimezone();

try {
String postData = “”;
URL url = new URL(urlString);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setRequestProperty(“Content-Type”, “application/json”);
connection.setRequestProperty(“Content-Length”, “” + postData.length());
connection.setRequestMethod(“POST”);

connection.connect();

byte outputBytes = postData.getBytes(“UTF-8”);

OutputStream os = connection.getOutputStream();
os.write(outputBytes);
os.close();

InputStream is;

if (connection.getResponseCode() >= 400) {
is = connection.getErrorStream();
} else {
is = connection.getInputStream();
}

BufferedReader in = new BufferedReader(new InputStreamReader(is));

 

I use the same code to connect to all the other apis and this is the only one I am having an issue with. 

 

Thanks for any help you can provide,

Deb

have you tried making the request with just curl or a REST tool like Postman?

 

You can see an example curl request on https://zoom.github.io/api/#create-a-meeting

 

Try that with the parameters/values you are passing here to verify it isn’t an issue with the data you are sending.