bfosberry / GameSocial

Socialize your gaming experience
GNU General Public License v2.0
11 stars 0 forks source link

API grab from LoL Stats and Profile service #33

Open IRTermite opened 11 years ago

IRTermite commented 11 years ago

http://www.elophant.com/ Maybe we can use this for League of Legends stats.

mattmartinez commented 11 years ago

found out elophant rarely gives out API keys, so I found an alternative that's pretty decent:

https://www.mashape.com/meepo/league-of-legends#!documentation

basically it's free with the following criteria:

API calls 500 / day $0.0001 per extra

I'm already signed up and have been testing it, and 5,000 API calls = 50cents, so i'm not worried about getting a big bill right now lol.

IRTermite commented 11 years ago

That's cool. This thing will start out small anyway, and is intended for local or small LAN installs anyway. Doubt it will exceed >500 requests to start.

IRTermite commented 11 years ago

PS: Totally didn't realize that was the crucif0rm I was talking to yesterday. My bad.

bfosberry commented 11 years ago

Awesome, btw thanks for the PR @crucif0rm, we overlooked a lot of stuff yesterday for the sake of time.

Good find on the API

mattmartinez commented 11 years ago

@IRTermite no worries haha.

@bfosberry made a new pull request with some actual game data in it, my next plan is to do the following:

  1. Place the auth token in the "Summoners" DB table
  2. Make "Add Summoner" have one option, just the name, when they enter the name, it does the following:
    • db entry Summoner -> :name 'string'
    • API call to grab summoner ID, place in DB: Summoner -> :summonerid 'int'
  3. Once we have those two items in the database, we can fill the view up with whatever data we want