[Pkg-owncloud-commits] [owncloud-doc] 73/95: Add new method to know if item is shared
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 21:41:44 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud-doc.
commit a30c94cd2eb2adcbacb9c333bce14960de726add
Author: ggdiez <ggonzalez at solidgear.es>
Date: Tue Mar 25 11:51:40 2014 +0100
Add new method to know if item is shared
---
developer_manual/ios_library/examples.rst | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/developer_manual/ios_library/examples.rst b/developer_manual/ios_library/examples.rst
index 2b8b7fb..4ec51a0 100644
--- a/developer_manual/ios_library/examples.rst
+++ b/developer_manual/ios_library/examples.rst
@@ -551,6 +551,33 @@ Code example
}
];
+
+Check if file of folder is shared
+----------------------------------
+
+Check if a specific file or folder is shared in your cloud server.
+
+Teh info need is Path, your server URL and the Id of the item that you want.
+
+
+Before check an item, you have to read the shared items on the selected
+server, using the method “ readSharedByServer ” so that you get the array
+“items” with all the shared elements. These are objects OCShareDto, one of
+their properties is idRemoteShared, parameter needed to unshared an element.
+
+Code example
+~~~~~~~~~~~~
+
+.. code-block:: objective-c
+
+ [[AppDelegate sharedOCCommunication] isShareFileOrFolderByServer:path andIdRemoteShared:_shareDto.idRemoteShared onCommunication:[AppDelegate sharedOCCommunication] successRequest:^(NSHTTPURLResponse *response, NSString *redirectedServer, BOOL isShared) {
+ //File/Folder is shared
+
+ } failureRequest:^(NSHTTPURLResponse *response, NSError *error) {
+ //File/Folder is not shared
+ }];
+
+
Tips
----
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git
More information about the Pkg-owncloud-commits
mailing list