Skip to content

Instantly share code, notes, and snippets.

@Aldaviva
Last active July 9, 2016 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aldaviva/e8932ccad09aa4105c50a22f111d5583 to your computer and use it in GitHub Desktop.
Save Aldaviva/e8932ccad09aa4105c50a22f111d5583 to your computer and use it in GitHub Desktop.
Get the Title of a Blue Jeans Meeting

Get the Title of a Blue Jeans Meeting

Inputs

  • (required) Blue Jeans numeric Meeting ID, e.g. 494435558
  • (required for meetings with a passcode) Blue Jeans meeting passcode, can be either the participant passcode or the moderator passcode, e.g. 3691

Outputs

  • Title of the meeting (as set by the owner), e.g. Ben's Meeting

1. Generate an OAuth Token

Request example

POST https://api.bluejeans.com/oauth2/token HTTP/1.1
Content-Type: application/json
Host: api.bluejeans.com
Content-Length: 65

{
  "grant_type": "meeting_passcode",
  "meetingNumericId": "494435558",
  "meetingPasscode": "3691"
}

If the meeting is passcodeless, omit the meetingPasscode property from the request body.

Response example

HTTP/1.1 200 OK
Server: BlueJeans Proxy
Content-Type: application/json; charset=UTF-8

{
  "access_token": "564lgo0njiejl9tj85z2cl25b8tzk2hd@z2",
  "expires_in": 86400,
  "scope": {
    "meeting": {
      "id": 123,
      "leaderId": 4835,
      "meetingNumericId": "494435558",
      "meetingUri": "\/v1\/user\/4835\/live_meetings\/494435558",
      "isModerator": false,
      "endpointUriSet": [
        
      ],
      "meetingId": "72660"
    },
    "partitionName": "z2",
    "partition": {
      "id": 2,
      "name": "z2"
    }
  }
}

The important properties of the response are access_token and scope.meeting.leaderId, which you will use for the next request.

2. Get the meeting info

In this request, use the access_token, scope.meeting.leaderId, and meetingNumericId values from before.

Request URL template

https://api.bluejeans.com/v1/user/{scope.meeting.leaderId}/live_meetings/{meetingNumericId}?access_token={access_token}

Request example

GET https://api.bluejeans.com/v1/user/4835/live_meetings/494435558?access_token=564lgo0njiejl9tj85z2cl25b8tzk2hd@z2 HTTP/1.1
Host: api.bluejeans.com

The leaderId and meetingNumericId appear as path parameters, and the access_token is a query parameter.

Response example

HTTP/1.1 200 OK
Server: BlueJeans Proxy
Content-Type: application/json; charset=UTF-8

{
  "meetingId": "494435558",
  "meetingGuid": "494435558:209403-c7cf89cb-93ba-4fd3-a42b-1a84172903c8",
  "status": "terminated",
  "isContentSharingActive": false,
  "bridged": false,
  "locked": false,
  "audioMuteOnEntry": false,
  "videoMuteOnEntry": false,
  "moderatorLess": true,
  "title": "Ben's Meeting",
  "chatEnabled": true,
  "pinnedEndpointGuid": "00000000-0000-0000-0000-000000000000",
  "audioEndpointCount": 0,
  "videoEndpointCount": 0,
  "recordingEnabled": true,
  "participantWebJoinURL": "https:\/\/bluejeans.com\/494435558",
  "isLargeMeeting": true,
  "features": [],
  "delayedMeetingEndTime": null,
  "meetingMarkedForDelayedTermination": false,
  "inactiveMeetingStatus": false,
  "recordinginfo": {
    "contentStatus": null,
    "recordingStartTime": null,
    "active": false,
    "recorded": false
  }
}

Get the title of the meeting from the title property of the JSON response body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment