ユーザー情報を取得したい。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"}
ログインしても情報にアクセスできないのはなぜですか?