# Zoom Video SDK issue with createMeetingItem() method

**URL:** <https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374>\
**Category:** iOS\
**Created:** [March 3, 2020, 1:49pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374 "2020-03-03T13:49:29Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnil.more](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swapnil.more/32/3394_2.png) [@swapnil.more](https://devforum.zoom.us/u/swapnil.more)\
**Post date:** [March 3, 2020, 1:49pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/1 "2020-03-03T13:49:29Z")

</div>

Task: To create meeting with the use of Zoom iOS sdk

Issue : createMeetingItem() method returns nil.

SDK version : v4.6.15084.0206

Steps taken:

SDK initialization and Authentication - done successfully and user can join meetings as well.

Now when I tried to create scheduled meeting with reference to SDK documentation , I stuck at this method.

After creating preMeeting with “MobileRTC.shared().getPreMeetingService()”  
Next step is not successfull when I try to create meeting item for creating meeting.

Reference: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/other-features/schedule-meeting-for-login-user](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/other-features/schedule-meeting-for-login-user)

**MobileRTC.shared().isRTCAuthorized() returns True**

 ![Screenshot 2020-03-03 at 6.52.34 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b5920605a04e35d9c01084194f51aa75f7c02862.png)

---

<div class="post-metadata">

**Author:** ![swapnil.more](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swapnil.more/32/3394_2.png) [@swapnil.more](https://devforum.zoom.us/u/swapnil.more)\
**Post date:** [March 3, 2020, 1:53pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/2 "2020-03-03T13:53:36Z")

</div>

I dont know how to debug this and whats the problem , just need the help to get around this issue.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 4, 2020, 3:12am UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/3 "2020-03-04T03:12:21Z")

</div>

Hi

Thanks for using Zoom SDK. May I confirm that the user has successfully logged-in with email/password or SSO token? The premeeting service is only available for the logged in user.

Our demo app also has this implementation: [https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/ScheduleTableViewController.m#L472](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/ScheduleTableViewController.m#L472)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![swapnil.more](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swapnil.more/32/3394_2.png) [@swapnil.more](https://devforum.zoom.us/u/swapnil.more)\
**Post date:** [March 6, 2020, 5:54am UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/4 "2020-03-06T05:54:07Z")

</div>

hello Carson,

Thanks for the help, Yes I was trying to schedule meeting without login the user.

So for implementing schedule meeting, I am now trying to use ZOOM APIS.  
Steps taken so far are as follows.  
Created Oauth app in account.  
Tested the required apis, on zoom documentation with the help of widget and THAT WORKS FINE.

Tested to create user (cust\_create) and schedule a meeting with this user.

Refering to this page:  
[https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom)

I am trying to implement

```auto
https://zoom.us/oauth/authorize?response_type=code&client_id=XXXXXXXXX&redirect_uri=https://yourapp.com

```

Now while implementing thi api in ios app, I dont know what to put in "redirect\_uri ".

On that page its written as follows.  
**All Zoom OAuth and API endpoints must be called from the server side of your application. If called from the client side, CORS errors will be thrown.**

My app dont have backend server, so what can I do to get auth token without a redirect URI?

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:** [March 6, 2020, 10:10pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/5 "2020-03-06T22:10:12Z")

</div>

Hey @swapnil.more,

You will need to make a proxy server to call the APIs.

Your Mobile App \> Your Proxy Server \> Zoom API

Checkout this document: [https://www.oauth.com/oauth2-servers/mobile-and-native-apps](https://www.oauth.com/oauth2-servers/mobile-and-native-apps)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![swapnil.more](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swapnil.more/32/3394_2.png) [@swapnil.more](https://devforum.zoom.us/u/swapnil.more)\
**Post date:** [March 16, 2020, 3:58pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/6 "2020-03-16T15:58:17Z")

</div>

Hello @tommy,  
Thanks for the information.  
Although i found that I can use JWT token to authorize and call API which resolves my previous issue.  
I am creating non-login users, and creating meeting with those users as host.  
Then I tried to start meeting with SDK, but that is failing.

I am generating , Zoom token and ZAK as well.  
Please let me know , whats the issue.

Consider all param values are non Nil And startmeeting is started with param object (ignore spelling meetingParam).  
Its showing meeting error 150. Which is failed to write configure file. I dont understand that.

 ![Screenshot 2020-03-16 at 9.27.09 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/9b05ac22267b482b982dc2d44c619344b027331c.png)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 17, 2020, 1:45am UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/7 "2020-03-17T01:45:19Z")

</div>

Hi [swapnil.more](https://devforum.zoom.us/u/swapnil.more),

Thanks for the reply. The error code 150 means “Invalid arguments”, which means one of the parameters are not valid.

I have tried to use the same code snippet shown in the screenshot and I am able to start a meeting with tokens(if passing the “param” instead of “meetingParam” to startMeeting).

Normally the following situation would cause the error code 150:

1. The parameter object that is passing to `startMeeting` is not valid
2. The SDK was not initialized successfully
3. The user is logged-in
4. userID, token, or zak is not valid

Please double check the above info and see if it helps. Our demo app also has the code snippet that works: [https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how\_to\_start\_join\_meeting/start\_with\_rest\_api\_user/SDKStartJoinMeetingPresenter%2BRestApiWithoutLoginUser.m#L41](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_start_join_meeting/start_with_rest_api_user/SDKStartJoinMeetingPresenter%2BRestApiWithoutLoginUser.m#L41)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![swapnil.more](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swapnil.more/32/3394_2.png) [@swapnil.more](https://devforum.zoom.us/u/swapnil.more)\
**Post date:** [March 17, 2020, 4:41pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/8 "2020-03-17T16:41:45Z")

</div>

Hello @carson.zoom,

Thanks for the reply, I found the issue which was logged-in user.  
So I added a check to see if the user is logged in and logged out if yes.  
After that , start meeting method works.

In addition I would like to suggest at some places you guys can improve documentation for the same.  
Like how to solve the error codes and their possible reasons.  
I am not complaining , you must have thought about it

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 17, 2020, 11:27pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/9 "2020-03-17T23:27:57Z")

</div>

Hi [swapnil.more](https://devforum.zoom.us/u/swapnil.more),

Thanks for the reply and glad to hear that the problem has been resolved. And really appreciate the kindly suggestions. I understand there is a lot of room for improvement in our documentation and we keep improving our documentation. I will forward your suggestions to the documentation team and we will make it better.

In the meantime, if you found any issues that are not being answered by our doc, please let us know and we will be more than happy to assist you to resolve them.

Thanks! Happy Zooming!

---

<div class="post-metadata">

**Author:** ![swapnil.more](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swapnil.more/32/3394_2.png) [@swapnil.more](https://devforum.zoom.us/u/swapnil.more)\
**Post date:** [March 18, 2020, 4:18pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/10 "2020-03-18T16:18:40Z")

</div>

Hello @carson.zoom,  
Yes I will keep sending suggestions about documentation as per my findings.

I need to clarify some things from you.

I have enabled the cloud recording setting for meetings which are scheduled by API users.  
But when meeting is started that meeting is not getting recorded, it’s only getting recorded when licensed user have scheduled it.

My question is , can I record all meetings in to cloud even if licensed user is not part of them?  
What solution can be suggested for this scenario?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 19, 2020, 4:32am UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/11 "2020-03-19T04:32:55Z")

</div>

Hi [swapnil.more](https://devforum.zoom.us/u/swapnil.more),

Thanks for the reply. When you are mentioning “I have enabled the cloud recording setting for meetings which are scheduled by API users.”, do you mean you have enabled the “Automatic recording” in the web portal ([zoom.us](http://zoom.us))?

 ![Screen Shot 2020-03-18 at 9.14.45 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/50a2d41d42dd88bc14a439981f5058d2447a076d.png)

Or are you using the iOS SDK interface `turnOnCMR`([https://zoom.github.io/zoom-sdk-ios/interface\_mobile\_r\_t\_c\_meeting\_service.html#a4fce04d5ce18fb43b0352d6543f00bb1](https://zoom.github.io/zoom-sdk-ios/interface_mobile_r_t_c_meeting_service.html#a4fce04d5ce18fb43b0352d6543f00bb1)) to turn on cloud recording when the meeting starts?

The cloud recording is a paid feature so I am afraid if the user does not have this feature bind with the account, then the feature will not be available in the meeting.

If you would like to record all meetings, you might need to have a licensed user to schedule all meetings, and have the non-licensed user to join the meeting.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![swapnil.more](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/swapnil.more/32/3394_2.png) [@swapnil.more](https://devforum.zoom.us/u/swapnil.more)\
**Post date:** [March 21, 2020, 10:11am UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/12 "2020-03-21T10:11:04Z")

</div>

**Hello Carson,**

Thanks for the reply,

I am using an api to create meeting and in settings I am sending the autoRecording parameter as “cloud”.

And also have turned on auto recording option in setting page of zoom portal profile.

But problem is that meetings created by API users can’t get recorded automatically.

Scenario:

API users created with “custCreate” method, which are non login users.

Create user api gives error if we try to create licensed user , it says max. 1 paid user for this account.

So we can only create basic users in create api

**My client wants that meetings created by these API users should get recorded in cloud.**

My question :

Is there any way to Pay one time amount to acheive this, rather than paying per host every month.

Please guide how can we accomplish this?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 24, 2020, 1:20am UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/14 "2020-03-24T01:20:47Z")

</div>

Hi [swapnil.more](https://devforum.zoom.us/u/swapnil.more),

Thanks for the reply. Regarding the options or alternatives for your question, I will ask an expert to help you. Get back to you shortly.

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:** [March 24, 2020, 9:35pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/15 "2020-03-24T21:35:56Z")

</div>

Hey @swapnil.more,

Can you create a new topic in the [Zoom API category](https://devforum.zoom.us/c/zoom-api) so I can assist you with your issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:28pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-issue-with-createmeetingitem-method/8374/17 "2020-08-21T19:28:54Z")

</div>

Closed on August 21, 2020, 7:28pm UTC


