I am trying the Google API Objective C Client and running the storage example.
I notice that the API requires both a client ID and client secrete to sign in and this is the GTMOAuth2Authentication
function that is being called.
+ (id)authenticationWithServiceProvider:(NSString *)serviceProvider
tokenURL:(NSURL *)tokenURL
redirectURI:(NSString *)redirectURI
clientID:(NSString *)clientID
clientSecret:(NSString *)clientSecret
I read about this question:
How to get client secret from Google Developers Console in iOS?
I tried it and can get a client secret with Web Application. Obviously that doesn't work. I got an error message as the following:
The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob can only be used by a Client ID for native application. It is not allowed for the 'WEB' client type. You can create a Client ID for native application in the Credentials section of the Google Developers Console.
But I don't understand how to get one client secret for iOS application. Anybody know how? Or is there a work around with this API?