DBSHARINGAppAuthRoutes
Objective-C
@interface DBSHARINGAppAuthRoutes : NSObject
Swift
class DBSHARINGAppAuthRoutes : NSObject
Routes for the Sharing
namespace
-
An instance of the networking client that each route will use to submit a request.
Declaration
Objective-C
@property (nonatomic, readonly) id<DBTransportClient> _Nonnull client;
-
Initializes the
DBSHARINGAppAuthRoutes
namespace container object with a networking client.Declaration
Objective-C
- (nonnull instancetype)init:(nonnull id<DBTransportClient>)client;
-
Get the shared link’s metadata.
Declaration
Objective-C
- (nonnull DBRpcTask<DBSHARINGSharedLinkMetadata *, DBSHARINGSharedLinkError *> *)getSharedLinkMetadata:(nonnull NSString *)url;
Swift
func getSharedLinkMetadata(_ url: String) -> DBRpcTask<DBSHARINGSharedLinkMetadata, DBSHARINGSharedLinkError>
Parameters
url
URL of the shared link.
Return Value
Through the response callback, the caller will receive a
DBSHARINGSharedLinkMetadata
object on success or aDBSHARINGSharedLinkError
object on failure. -
Get the shared link’s metadata.
Declaration
Objective-C
- (nonnull DBRpcTask<DBSHARINGSharedLinkMetadata *, DBSHARINGSharedLinkError *> *)getSharedLinkMetadata:(nonnull NSString *)url path:(nullable NSString *)path linkPassword:(nullable NSString *)linkPassword;
Swift
func getSharedLinkMetadata(_ url: String, path: String?, linkPassword: String?) -> DBRpcTask<DBSHARINGSharedLinkMetadata, DBSHARINGSharedLinkError>
Parameters
url
URL of the shared link.
path
If the shared link is to a folder, this parameter can be used to retrieve the metadata for a specific file or sub-folder in this folder. A relative path should be used.
linkPassword
If the shared link has a password, this parameter can be used.
Return Value
Through the response callback, the caller will receive a
DBSHARINGSharedLinkMetadata
object on success or aDBSHARINGSharedLinkError
object on failure.