I'm trying to implement server-side API access for my iOS app. The Google docs (here) mention APP_CLIENT_ID
and SERVER_CLIENT_ID
in their code sample in step 2.
Here's their code:
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[GIDSignIn sharedInstance].clientID = @"APP_CLIENT_ID";
[GIDSignIn sharedInstance].serverClientID = @"SERVER_CLIENT_ID";
// Additional scopes, if any
// [GIDSignIn sharedInstance].scopes = @[ @"other_scope" ];
return YES;
}
What are APP_CLIENT_ID
and SERVER_CLIENT_ID
and where do I find them? Are they both in the Google Developers Console?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…