--
You received this message because you are subscribed to the Google Groups "8tracks public API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 8tracks-public-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey! Yeah, I remember doing this, though it was over a year ago now.. I’ll try and go through it step by step, the way I think I did it, using my old code as a reference where possible…
I went to http://console.developers.google.com/project and created a project for my app. This is what users will see when they let you have permission to use their account. Under “APIs & auth”->”APIs” for the project I have “Google+ API” enabled, I can’t remember if this is enabled by default.
Then under “APIs & auth”->”Consent screen” I filled out some details like the app name, image etc. That’s what your users will really see when granting permission (in fact I think you get a preview of it to the right).
Then I added my (Android) App under “APIs & auth”->”Credentials” by following the guide. Not sure what type of app you’re adding but I’m sure you can manage that bit.
Then, in my Android app I followed the normal Google+ guidelines (https://developers.google.com/+/mobile/android/sign-in) to get myself a Google+ token from the user. Basically, this token was the golden key to unlocking 8tracks. You get it by asking the user to grant permission to your “Google app” that you just configured. When they agree and accept your permissions the Google lib returns the token.
The next bit took a bit of debugging of the way 8tracks does its auth on the website but basically there’s an api endpoint that accepts an auth_token and returns an 8tracks user_token. The magic url is:
GETing this with the query parameter “access_token” filled with that Google+ token should return you a user_token.. IIRC
anyways, good luck… It should be something like that
To unsubscribe from this group and stop receiving emails from it, send an email to 8tracks-public-api+unsub...@googlegroups.com.