Ios 框:上传新文件后立即获取sharedlink参数
在BoxFile块中的box上上载新文件后,是否有任何方法可以立即获取sharedLink参数 我尝试了以下代码,但它将sharedlink参数返回为nilIos 框:上传新文件后立即获取sharedlink参数,ios,box-api,boxapiv2,Ios,Box Api,Boxapiv2,在BoxFile块中的box上上载新文件后,是否有任何方法可以立即获取sharedLink参数 我尝试了以下代码,但它将sharedlink参数返回为nil BoxFilesRequestBuilder *builder = [[BoxFilesRequestBuilder alloc] init]; builder.name = imageName; builder.parentID = folderID; //--- shar
BoxFilesRequestBuilder *builder = [[BoxFilesRequestBuilder alloc] init];
builder.name = imageName;
builder.parentID = folderID;
//--- shared link object ---//
BoxSharedObjectBuilder *sharedBuilder = [[BoxSharedObjectBuilder alloc] init];
sharedBuilder.access = BoxAPISharedObjectAccessOpen;
builder.sharedLink = sharedBuilder;
NSInputStream *inputStream = [NSInputStream inputStreamWithFileAtPath:imagePath];
NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:imagePath error:nil];
long long contentLength = [[fileAttributes objectForKey:NSFileSize] longLongValue];
[[BoxSDK sharedSDK].filesManager uploadFileWithInputStream:inputStream contentLength:contentLength MIMEType:nil requestBuilder:builder success:fileBlock failure:failureBlock progress:nil];
文件上传后,您必须再打一次电话