Perhaps one of the most basic tasks for video communications is to schedule the actual meeting.
This step by step guide will provide you with an example of how to use the onVideo REST API's to schedule a meeting.
BlueJeans REST API messages must contain certain formatting values in order to be recognized as valid. Please ensure that each REST call has the following fields:
Step 1
Create a Session
The first step an application must do before calling any meaningful API's is to create a session. A BlueJeans session is the result of a successful authentication - just like just like logging into a web site or an application.
When an application authenticates, the BlueJeans cloud returns something called an access token which becomes your software passkey to call API's.
BlueJeans uses the industry standard OAuth protocol for authentication.
{ grant_type: "password", username : "myusername", password : "mypwrd" }
{ "access_token": "c2d18e8adbe7461c837ae187287a1261", "expires_in": 1209600, "scope": { "user": 1442589, "partitionName": "z2", "partition": { "id": 2, "name": "z2" }, }, "refresh_token": "" }
Step 2
Set a Meeting date/time
The next step is where you actually submit the API request to create a meeting for a set date and time.
Along with this API call, you must pass the access_token obtained from the Authentication step.
A normal end user can only schedule meetings for their account. An enteprise admin user is able to schedule on behalf of any user. In both cases you must specify the unique BlueJeans user ID number as part of the API request.
One important thing to do when submitting a meeting schedule request is to appropriately set the endpoint field values. For basic use, the endPointType should be "WEB_APP", and the endPointVersion should be "2.10". These values ensure that your meeting is listed in the user's BlueJean's web portal.
The example below successfully scheduled a meeting with these attributes
BlueJeans assigned this meeting with the Meeting ID of: 752584732
{ "title": "My First API Scheduled Meeting", "description": "I am using BlueJeans' onVideo API's to schedule this meeting", "start": 1507244400000, "end": 1507246200000, "timezone": "America/Los_Angeles", "addAttendeePasscode": true, "endPointVersion": "2.10", "endPointType": "WEB_APP", "attendees": [ { "email": "glenn@bluejeans.com" } ], "advancedMeetingOptions": { "autoRecord": false, "muteParticipantsOnEntry": false, "encryptionType": "NO_ENCRYPTION", "moderatorLess": true, "videoBestFit": true, "disallowChat": false, "publishMeeting": true, "showAllAttendeesInMeetingInvite": true } }
{ "id": 12405075, "uuid": "55c9153b-2be5-4ca0-abd7-774900344339", "title": "My First API Scheduled Meeting", "description": "I am using BlueJeans' onVideo API's to schedule this meeting", "start": 1507244400000, "end": 1507246200000, "timezone": "America/Los_Angeles", "advancedMeetingOptions": { "videoBestFit": true, "publishMeeting": true, "encryptionType": "NO_ENCRYPTION", "moderatorLess": true, "allowStream": false, "autoRecord": false, "disallowChat": false, "muteParticipantsOnEntry": false, "showAllAttendeesInMeetingInvite": true, "editability": { "autoRecord": true, "enforceMeetingEncryption": true, "videoBestFit": true, "enforceMeetingEncryptionAllowPSTN": true, "disallowChat": true, "muteParticipantsOnEntry": true, "moderatorLess": true, "showAllAttendeesInMeetingInvite": true } }, "notificationUrl": null, "notificationData": null, "moderator": { "id": 1442589, "username": "glenn.apitest", "firstname": "", "lastname": "", "profile_pic_url": "" }, "numericMeetingId": "752584732", "attendeePasscode": "4396", "addAttendeePasscode": true, "deleted": false, "allow720p": false, "status": null, "locked": false, "sequenceNumber": 0, "icsUid": "IiN1S_EUsH46Krwt@xun48xfWzzi2nzd", "endPointType": "1", "endPointVersion": "Web", "attendees": [ { "meeting": { "id": 12405075 }, "email": "glenn@bluejeans.com", "followupEmailSentDate": null, "inviteeid": 1407819, "firstname": "", "lastname": "", "profile_pic_url": "" } ], "isLargeMeeting": false, "created": 1507235408569, "lastModified": 1507235408607, "isExpired": false, "parentMeetingId": null, "parentMeetingUUID": null, "nextOccurrence": null, "timelessMeeting": false, "endlessMeeting": false, "first": { "start": 1507244400000, "end": 1507246200000 }, "last": { "start": 1507244400000, "end": 1507246200000 }, "next": { "start": 1507244400000, "end": 1507246200000 }, "nextStart": 1507244400000, "nextEnd": 1507246200000, "isPersonalMeeting": false, "inviteeJoinOption": 0 }
In the event that this meeting is part of a chain of recurring meetings, these fields designate:
Step 3
Join the Meeting...
At this point you will be ready to join your scheduled meeting (from example in Step 2, the meeting has Meeting ID: 752584732).
You have multiple ways to join a BlueJeans meeting.
The quickest way to launch into the BlueJeans meeting is to use the meeting URL which is formed from http://bluejeans.com and the meeting ID.
http://bluejeans.com/752584732/webrtc
The "/webrtc" is optional. If included, it will try to use your browser as the video client by invoking WebRTC technology.
If your browser does not support WebRTC, then you will be guided to download the BlueJeans client application to connect to the meeting.