我想通过iOS应用向Tumblr发帖子 写下面的代码得到错误。
NSDictionary *parameters = [[NSDictionary alloc] initWithObjectsAndKeys:
@"Titulo",@"title",
@"Este es el body",@"body",nil];
[[TMAPIClient sharedInstance] post:@"blogName" type:@"text" parameters:parameters callback:^(id var, NSError *error){
NSLog(@"Error %@",error);
}];
获得以下错误
错误域=请求失败代码= 401“无法完成操作。(请求失败错误401。)”
答案 0 :(得分:0)
这是因为Tubmlr未对您进行身份验证。
你可以在这里参考。 Unable to post a photo using the Tumblr SDK example