question

hai-nguyen14283 avatar image
hai-nguyen14283 asked hai-nguyen14283 commented

Glip Compliance Export in C#

I want to create Data Export Compliance task but I can't find Rc.Restapi().Glip().DataExport(). I dev on C# with Winform frame work. Please help me !!

sdk
1 |3000

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

Tyler Liu avatar image
Tyler Liu answered
https://github.com/ringcentral/RingCentral.Net/blob/master/samples.md#create-data-export-task

RingCentral.Net is the new RingCentral SDK to replace ringcentral-csharp-client. We are going to announce it next week.  Please have a try:  https://www.nuget.org/packages/RingCentral.Net/
1 |3000

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

hai-nguyen14283 avatar image
hai-nguyen14283 answered
Ok, thanks very much !!
1 |3000

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

hai-nguyen14283 avatar image
hai-nguyen14283 answered hai-nguyen14283 commented
I follow you and I get taskId and archiveId. But when I using Rc.Restapi().Glip().DataExport(taskId).Archive(archiveId).Get() I receive error:

Response:
StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Connection: keep-alive
  RoutingKey: SJC11P01
  RCRequestId: 8ade8990-3caf-11e9-9acd-005056bba449
  Date: Sat, 02 Mar 2019 05:53:45 GMT
  Server: nginx
  Content-Length: 83
  Content-Type: application/json
}
Content: {
  "errorCode" : "AGW-404",
  "message" : "Resource not found",
  "errors" : [ ]
}

Request:
Method: GET, RequestUri: ' https://platform.devtest.ringcentral.com/restapi/v1.0/glip/data-export/238074004-238074004-486026144...', Version: 1.1, Content: <null>, Headers:
{
  User-Agent: RingCentral.Net
  Authorization: Bearer U0pDMTFQMDFQQVMwMHxBQURiejVrdDM5blBqZ19TLVhhTkFOM1VpZ0N3RGRWMVhjdzBzQzZFYlFZVEtFbnBGTk95cFFWUVQ3ZjB1em9ZVWdSNF9QWWRPMEVYNEhPV3FzbEwwTUtuOTJiWmRXWlJvTkk4RWFEc3FFZ0lVQmgzY3pudlk1OWFBbWVIcmFfcmdxaDdhQ0I5Z3h4WXhuV3ZhcUZpUW1vV2dYbkRfUlFVSmR4eTd2U25rWDM3aXRJdWQ4dnU2dlFab1Zibk5Na0JfOFBrcTVKMHBheFR5N2JSdmNKRHVkWEd8anA2YzNnfElMUnEzZHl0SURsLWJPb3VoQWV1Y3d8QUE
}

I check on the status of an Export Task, I receive "Completed" status. Why message is "Resourcec not found" ?
14 comments
1 |3000

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

Tyler Liu avatar image Tyler Liu ♦ commented ·
Make sure both IDs are correct. (how did you find them?)

There might be a little delay, could you please try again now?
0 Likes 0 ·
hai-nguyen14283 avatar image hai-nguyen14283 commented ·
I get taskId by "var result = await rc.Restapi(apiVersion).Glip().DataExport().Post(createDataExportTaskRequest)", then I use "var result = await rc.Restapi(apiVersion).Glip().DataExport(taskId).Get()" and I receive uri : " https://media.devtest.ringcentral.com/restapi/v1.0/glip/data-export/238074004-238074004-4860261447dc..." I think archiveId is "1"
0 Likes 0 ·
Tyler Liu avatar image Tyler Liu ♦ commented ·
I don't think archieveId is "1". Because "1" is too special to be valid.
0 Likes 0 ·
Tyler Liu avatar image Tyler Liu ♦ commented ·
"var result = await rc.Restapi(apiVersion).Glip().DataExport(taskId).Get()" result is

https://github.com/ringcentral/RingCentral.Net/blob/master/RingCentral.Net/Definitions/DataExportTas...


It has a property named "result" with type:

https://github.com/ringcentral/RingCentral.Net/blob/master/RingCentral.Net/Definitions/ExportTaskRes...

And there you can find the uri to download.

Let me know if you cannot download it.
0 Likes 0 ·
hai-nguyen14283 avatar image hai-nguyen14283 commented ·
How to using uri to download if I want to download by .Net SDK ?
0 Likes 0 ·
Show more comments
hai-nguyen14283 avatar image
hai-nguyen14283 answered hai-nguyen14283 commented
Hi, thank you about your help for me. I downloaded zip file but when I extract zip file then I don't recieve folder and file which same  folder and file I recieved in Ringcentral APP. I can't use them
8 comments
1 |3000

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

Tyler Liu avatar image Tyler Liu ♦ commented ·
Could you please be more specific?  
According to  https://medium.com/ringcentral-developers/glip-compliance-exports-api-for-ediscovery-gdpr-and-analyt...

There should be three files in the zip file: guests/guests_1.json  members/members_1.json and request_info.json

Is it not the same in your case?
0 Likes 0 ·
hai-nguyen14283 avatar image hai-nguyen14283 commented ·
When I create report in Ringcentral App them I reieved People_And_Groups, People_Chats, Team_Chats, Teams but when I using API then I reieved chats, events, files, guests, members, notes, posts, task, and request_info.json. I can't work with them
0 Likes 0 ·
Tyler Liu avatar image Tyler Liu ♦ commented ·
OK, I will escalate this issue and keep you updated.
0 Likes 0 ·
hai-nguyen14283 avatar image hai-nguyen14283 commented ·
Thanks, I look forward to hearing from you soon !
0 Likes 0 ·
Tyler Liu avatar image Tyler Liu ♦ commented ·
Hi Hai,

I double checked with my colleagues and we knew that the results between APP and API are different and it is probably by design.

Question for you: is there important data missing ? If yes what data that you need but the API doesn't return?  If no could you please adjust your code to handle data from API?
0 Likes 0 ·
Show more comments

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