question

tomas-kratochvil5330 avatar image
tomas-kratochvil5330 asked ak answered

Export conversation

Hello,


Is it possible to export glip conversation? To TXT or in any other way?


getting started
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

ak avatar image
ak answered
In Order to retrieve the conversations inside a Group, you would need to make two API calls to get :
  1. Group ID 
  2. Get Posts for the Group ID
                 

Group ID

In order to retrieve the  groupID, please use the  GET Groups List  endpoint to list all the available groups for the User / Extension

A sample response would look like this:

{
                 
      "id": "groupID1",
      "name": null,
      "description": null,
      "type": "Group",
      "members": [
        "memberID1",
        "memberID2",
        "memberID3"
      ],
      "isPublic": null,
      "creationTime": "2017-04-03T17:30:21.729Z",
      "lastModifiedTime": "2017-04-03T17:30:21.729Z"
    },
    {
      "id": "groupID2",
      "name": null,
      "description": null,
      "type": "PrivateChat",
      "members": [
        "memberID1",
        "memberID2"
      ],
      "isPublic": null,
      "creationTime": "2016-05-26T02:31:54.822Z",
      "lastModifiedTime": "2016-05-26T02:31:54.822Z"
    },
    {
      "id": "groupID3",
      "name": null,
      "description": null,
      "type": "PrivateChat",
      "members": [
        "memberID10",
        "memberID2"
      ],
      "isPublic": null,
      "creationTime": "2017-03-22T23:06:29.353Z",
      "lastModifiedTime": "2017-03-22T23:06:29.353Z"
    }
}
Get Posts for the Group ID

Once you have the groupID from the above API call, you could use the  GET Posts by GroupID and filter the posts by groupID

A sample response would look like this:

[
   {
      "id": "1384680292356",
      "groupId": "groupID1",
      "type": "TextMessage",
      "text": "Hi team, customer is unable to access their Sandbox account. I searched for their account details on DPW and there were no results. User ID Blah Blah Blah .\n\nHow can we enable this account so they may access it again? Thanks.",
      "creatorId": "glip-1271750659",
      "addedPersonIds": null,
      "creationTime": "2017-01-26T22:53:03.426Z",
      "lastModifiedTime": "2017-01-26T22:53:03.426Z"
    },
    {
      "id": "1335248527364",
      "groupId": "groupID1",
      "type": "TextMessage",
      "text": "**Team, this is now our Glip Group to communicate between people**",
      "creatorId": "630769004",
      "addedPersonIds": null,
      "creationTime": "2017-01-16T18:27:05.697Z",
      "lastModifiedTime": "2017-01-26T23:01:17.291Z"
    }
Boom ! you have the conversations for the Group. 

You could take a look at our API endpoints for Glip within our API Explorer 

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys