Displaying premium content

Avatar image for fascismo
Fascismo

136

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#1  Edited By Fascismo

I'm working on an app right now that's built heavily around GB video content. I know that my API key has access to premium content, but I'm wondering how this should be handled when other people use my app. I'd like to do some kind of authentication to prevent people without premium accounts from accessing premium videos, but I didn't find anything in the API doc about accessing GB user information.

Without that, the best solution I can come up with is to have users sign up for a separate account to use my app and require them to tie that account to their own GB API keys. That way, the app could request video with that user's API key instead of my own, but that would be forcing people to open up the GB API page in a new tab, copying it, and then returning to my app to paste it in.

What I really want is to have the user enter their GB login and password directly into my app, have the app send their credentials to the GB servers, and have GB return their premium status. Is that possible and it's just undocumented? If not, is there a better way of handling this than what I described above?

Avatar image for estel
Estel

20

Forum Posts

4

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By Estel

@fascismo said:

I'm working on an app right now that's built heavily around GB video content. I know that my API key has access to premium content, but I'm wondering how this should be handled when other people use my app. I'd like to do some kind of authentication to prevent people without premium accounts from accessing premium videos, but I didn't find anything in the API doc about accessing GB user information.

I've been looking at doing this recently too. I've not gotten around to implementing this yet, but this post basically explains the process. This is what's being used by the existing Video Buddy apps that are out there.

The URL that you're looking to query is https://www.giantbomb.com/api/validate?link_code=[code], not /validate.

Avatar image for travisrex
TravisRex

819

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#3  Edited By TravisRex

There's an app called bomb buddy I think that does basically what you're talking about. Maybe get in contact with that developer and ask him how he does it.

Avatar image for fascismo
Fascismo

136

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#4  Edited By Fascismo

@estel said:

I've been looking at doing this recently too. I've not gotten around to implementing this yet, but this post basically explains the process. This is what's being used by the existing Video Buddy apps that are out there.

The URL that you're looking to query is https://www.giantbomb.com/api/validate?link_code=[code], not /validate.

Interesting, thanks for the reply. I was hoping for something that didn't require the user to navigate to a separate page, but at least this spits out a friendlier looking code.

Avatar image for rick
rick

507

Forum Posts

33

Wiki Points

0

Followers

Reviews: 1

User Lists: 1

@fascismo: Are you still working on this project? Is so please take a look at this and if you are please contact me so I can get you switched over to the embed player. With the embed player you won't have to worry about authenticating your users.

Thanks for taking care to protect our premium content!