0
我正在嘗試在iPhone中集成google latitute,
1.我創建了一個使用google緯度服務的投影並創建了一個客戶端密鑰。
2.我使用oAuthConsumer獲得訪問鍵如下如何註冊Google APis項目?
OAConsumer *consumer = [[OAConsumer alloc] initWithKey:@"App key goes here" secret:@"client secret goes here"]; OAMutableURLRequest *request = [[[OAMutableURLRequest alloc] initWithURL:url consumer: consumer token:token realm:nil signatureProvider: nil] autorelease]; if (!request) return; [request setOAuthParameterName:@"scope" withValue:@"https://www.googleapis.com/auth/latitude"]; [request setOAuthParameterName:@"oauth_callback" withValue:@"http://someURL"]; [request setHTTPMethod: @"POST"]; OADataFetcher *fetcher = [[[OADataFetcher alloc] init] autorelease]; [fetcher fetchDataWithRequest: request delegate: self didFinishSelector: success didFailSelector: fail];
的問題是事業成功的代表,而不是OAuth令牌,我發現了respose作爲
Consumer is not registered: App-key
那麼,有沒有錯誤的上述要求, 如果不是如何註冊谷歌的API應用程序提前
感謝