Created
December 15, 2014 10:15
-
-
Save taycaldwell/d5ea6a74a6493829b5a2 to your computer and use it in GitHub Desktop.
Using riot-api-java within Android app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Application; | |
import main.java.riotapi.RiotApi; | |
public class GlobalClass extends Application { | |
private RiotApi api; | |
public GlobalClass() { | |
this.api = new RiotApi("API-KEY"); | |
} | |
public RiotApi getApi() { | |
return api; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"Note that embedding a key in a distributed client application, like a desktop or mobile application, means that your key can be compromised. Even secure storage or encrypted keys on a client can be breached. The only way to ensure your API key remains safe is to have the client application access your own server, which then makes the appropriate request to the API using HTTPS." For more information go here: https://developer.riotgames.com/discussion/riot-games-api/show/oomYkEK4