API to retrieve sha...
 
Notifications
Clear all

[Solved] API to retrieve share informations for shared files

2 Posts
1 Users
0 Reactions
157 Views
 thbz
(@thbz)
Joined: 4 months ago
Posts: 3
Topic starter  

Hi,

It seems that the "GetShareInfo" SOAP command doesn't retrieve informations about shared files.

The shared file (a png file) is visible from the grantee account, but not in the result of the "GetShareInfo" command :

# soap_client.request('GetShareInfo', {'includeSelf': 1})

{'share': [{'folderPath': '/_InternalGAL', 'view': 'contact', 'granteeId': '30aba298-2415-4c01-b82b-f198a34fd21d', 'rights': 'r', 'ownerId': '8b58cc57-b7cf-4219-9c3f-fb17915158af', 'folderUuid': 'ca71a0de-6367-40fc-adcc-50eb6f30b38a', 'granteeType': 'dom', 'folderId': '257', 'ownerEmail': 'galsync.g3kjra6dbu@carbonio.local', 'granteeName': 'carbonio.local'}, {'folderPath': '/test_share', 'view': 'message', 'granteeId': '6bdba223-9352-4b1b-a44d-2c242083c4e4', 'rights': 'r', 'ownerId': '256af023-37c9-44ad-b00d-932db4ac2bd7', 'folderUuid': '544aadd2-82e1-4f86-b9d4-f708d74341bf', 'granteeType': 'usr', 'folderId': '257', 'ownerEmail': 'user2@carbonio.local', 'granteeName': 'user1@carbonio.local'}]}

Is there an API to retrieve share informations about shared files ?

Regards.


   
Quote
 thbz
(@thbz)
Joined: 4 months ago
Posts: 3
Topic starter  

Ok, it seems that this is possible with the Graphql API.
I'm able to list a node and its children with the query find on this page :
https://docs.zextras.com/carbonio/html/develop/files-howto.html#api-requests-structure
But I can't find how to add shares to my query.

Can somebody help me about this ?

Regards.

This post was modified 3 months ago by thbz

   
ReplyQuote