Know the active edition

Integration questions/issues
Post Reply
bclauss
Posts: 22
Joined: Mon Sep 18, 2017 9:06 am

Know the active edition

Post by bclauss » Tue Dec 19, 2017 11:00 am

Hey,

I need to know the document that are currently open and modified. Is there a service in the document server that I can call to get this information ?

Thanks,

Baptiste C.

Maxim
Posts: 1751
Joined: Tue Oct 11, 2016 2:34 pm

Re: Know the active edition

Post by Maxim » Tue Dec 19, 2017 1:11 pm

Hello bclauss!
I need to know the document that are currently open and modified
What exactly do you want to know about this document?

bclauss
Posts: 22
Joined: Mon Sep 18, 2017 9:06 am

Re: Know the active edition

Post by bclauss » Tue Dec 19, 2017 1:17 pm

If the document is open by another user and if I need to generate a new key or not. (I want to make a co-editing system)

Maxim
Posts: 1751
Joined: Tue Oct 11, 2016 2:34 pm

Re: Know the active edition

Post by Maxim » Tue Dec 19, 2017 1:27 pm

Hello bclauss!
I think you should look here

bclauss
Posts: 22
Joined: Mon Sep 18, 2017 9:06 am

Re: Know the active edition

Post by bclauss » Tue Dec 19, 2017 1:37 pm

I already read this. I know how it works. But thing is that in my document manager I don't know if my document is already open or not. Is there a way to ask the api ?

Maxim
Posts: 1751
Joined: Tue Oct 11, 2016 2:34 pm

Re: Know the active edition

Post by Maxim » Tue Dec 19, 2017 1:52 pm

Hello bclauss!
I hope this will help you.

bclauss
Posts: 22
Joined: Mon Sep 18, 2017 9:06 am

Re: Know the active edition

Post by bclauss » Tue Dec 19, 2017 2:21 pm

Thanks,
I receive a error code equal 0 if the document is open or not. Is that okay ?

Maxim
Posts: 1751
Joined: Tue Oct 11, 2016 2:34 pm

Re: Know the active edition

Post by Maxim » Thu Dec 21, 2017 12:17 pm

Hello bclauss!
If a document is not open you will get "Error code -1"- Document key is missing or no document with such key could be found.
If a document is open you will get "Error code - 0" and callback will get data with information who edits the file.

Post Reply