我已经通过使用GitHub API3将github成功集成到了我的ios App中。
但我的问题是我无法删除/撤消访问令牌。
我尝试了以下代码
NSString * querystr= @"https://api.github.com/authorizations"; // i tried this url url also https://api.github.com/authorizations?client_id=1234yyrhrh NSMutableURLRequest *request2 = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:querystr]]; [NSURLConnection sendAsynchronousRequest:request2 queue:theQ completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) { NSArray * array = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; NSLog(@"%@",array); }];
我没有收到任何错误,但是数组正在打印以下消息
"documentation_url" = "http://developer.github.com/v3"; message = "Not Found";
提前致谢