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
DBSHARINGAppAuthRoutesnamespace 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
urlURL of the shared link.
Return Value
Through the response callback, the caller will receive a
DBSHARINGSharedLinkMetadataobject on success or aDBSHARINGSharedLinkErrorobject 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
urlURL of the shared link.
pathIf 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.
linkPasswordIf the shared link has a password, this parameter can be used.
Return Value
Through the response callback, the caller will receive a
DBSHARINGSharedLinkMetadataobject on success or aDBSHARINGSharedLinkErrorobject on failure. 
View on GitHub
        DBSHARINGAppAuthRoutes Class Reference