question

hai-nguyen avatar image
hai-nguyen asked ·

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 !!
topic-default
1 |1000 characters needed characters left characters exceeded

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/
Share
1 |1000 characters needed characters left characters exceeded

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

hai-nguyen avatar image
hai-nguyen answered ·
Ok, thanks very much !!
Share
1 |1000 characters needed characters left characters exceeded

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

hai-nguyen avatar image
hai-nguyen answered ·
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 Share
1 |1000 characters needed characters left characters exceeded

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

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 · ·
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 · ·
I don't think archieveId is "1". Because "1" is too special to be valid.
0 Likes 0 · ·
"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 · ·
How to using uri to download if I want to download by .Net SDK ?
0 Likes 0 · ·
Show more comments
hai-nguyen avatar image
hai-nguyen answered ·
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 Share
1 |1000 characters needed characters left characters exceeded

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

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 · ·
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 · ·
OK, I will escalate this issue and keep you updated.
0 Likes 0 · ·
Thanks, I look forward to hearing from you soon !
0 Likes 0 · ·
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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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