8. Download Contents
// Sample Code. Download Contents by Requesting Singed URL
ARGSession *argSession = [[ARGSession alloc] initWithARGConfig:argConfig error:&error];
ARGAuthCallback callback;
callback.Success = ^(NSString *url) {
// Download Contents from Signed URL
};
callback.Error = ^(ARGStatusCode code) {
};
[[argSession auth] requestSignedUrlWithUrl:fileUrl itemTitle:title itemType:type completion:callback];// Sample Code. Download Contents by Requesting Singed URL
let callback: ARGAuthCallback = ARGAuthCallback(Success: { (url: String?) in
// Download Contents from Signed URL
}) { (code: ARGStatusCode) in
// error with status code
}
if let session = argSession, let auth = session.auth {
auth.requestSignedUrl(withUrl: zipFileUrl, itemTitle: title, itemType: type, completion: callback)
}Last updated
Was this helpful?