我想获取用户的信息。在 OAuth 之后我发送这个请求:
NSURL *url = [NSURL URLWithString:@"https://api.twitter.com/1/account/verify_credentials.json"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
NSLog(@"Public Timeline: %@", JSON);
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON) {
NSLog(@"error = %@", error);
NSLog(@"json = %@", JSON);}];
[operation start];
但是出现错误:{"error":"Could not authenticate you.","request":"\/1\/account\/verify_credentials.json"}
为什么我登录后也无法访问信息?