我使用以下代码找到了Dropbox获取共享链接。 我使用此代码在ios 9中使用最新的api获取dropbox获取共享链接 但我的问题是那个
DBUserClient *client = [DBClientsManager authorizedClient];
// "Full Dropbox" or "/Apps/<APP_NAME>/" if app has permission "App Folder").
[[client.sharingRoutes getSharedLinkMetadata:path]setResponseBlock:^(DBSHARINGSharedLinkMetadata * _Nullable result, DBSHARINGSharedLinkError * _Nullable routeError, DBRequestError * _Nullable networkError) {
if (result) {
[self sendEmail:result.url];
}
else
{
NSString *title = @"";
NSString *message = @"";
if (routeError) {
// Route-specific request error
title = @"Route-specific error";
if (routeError ) {
message = [NSString stringWithFormat:@"Invalid path: %@", routeError];
}
}
else
{
// Generic request error
title = @"Generic request error";
if ([networkError isInternalServerError]) {
DBRequestInternalServerError *internalServerError = [networkError asInternalServerError];
message = [NSString stringWithFormat:@"%@", internalServerError];
}
else if ([networkError isBadInputError])
{
DBRequestBadInputError *badInputError = [networkError asBadInputError];
message = [NSString stringWithFormat:@"%@", badInputError];
}
else if ([networkError isAuthError])
{
DBRequestAuthError *authError = [networkError asAuthError];
message = [NSString stringWithFormat:@"%@", authError];
}
else if ([networkError isRateLimitError])
{
DBRequestRateLimitError *rateLimitError = [networkError asRateLimitError];
message = [NSString stringWithFormat:@"%@", rateLimitError];
}
else if ([networkError isHttpError])
{
DBRequestHttpError *genericHttpError = [networkError asHttpError];
message = [NSString stringWithFormat:@"%@", genericHttpError];
} else if ([networkError isClientError])
{
DBRequestClientError *genericLocalError = [networkError asClientError];
message = [NSString stringWithFormat:@"%@", genericLocalError];
}
}
UIAlertController *alertController =
[UIAlertController alertControllerWithTitle:title
message:message preferredStyle:(UIAlertControllerStyle)UIAlertControllerStyleAlert];
[alertController addAction:[UIAlertAction actionWithTitle:@"OK"
style:(UIAlertActionStyle)UIAlertActionStyleCancel
handler:nil]];
[self presentViewController:alertController animated:YES completion:nil];
//[self setFinished];
}
}];
结果是 results image
但是我第一次创建链接然后得到它的make错误plz帮助我如何获得链接.... 请详细定义我.. 感谢