Code Monkey home page Code Monkey logo

riot-games-api-csharp's Introduction

Riot Games API C#

Incomplete C# 4.0 .NET Framework 4.0 Plarform Windows

Simple C# Library with a GUI console to access Riot Games API.

screenshot screenshot2

๐Ÿš€ Development

The source is written in C# 4.0 with .NET Framework 4.0 and WinForms using Visual Studio 2010.

๐ŸŽจ Structure :

  • ๐Ÿ“‚ RiotGamesAPI:
    • ๐Ÿ“„ ApiConnection: Setups a connection to the API.
    • ๐Ÿ“„ ApiMethod: Abstract class for using an API method.
    • ๐Ÿ“„ Utilities: Usefull methodes for dealing with some types of data used.
    • ๐Ÿ“ API: Classes for using all api available API methods.
    • ๐Ÿ“ DTO: Classes for holding all kinds of JSON data objects returned by the API methods.

๐Ÿ“ How to use ?

Learn by a simpe example: Getting a summoner informations.
To get summoner data, we use the SummonerV3 API.

  1. Setup a connection to the API using your API Key and choosing a region :
string apiKey = "RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
ApiConnection apiConnection = new apiConnection(apiKey, ApiConnection.RegionCode.euw1);
  1. Setup an instance of SummonerV3 using the created connection :
SummonerV3 summonerApi = new SummonerV3(apiConnection);
  1. Use the SummonerV3 API method GetSummonerBySummonerName to get a SummonerDTO object containing the retrieved data :
SummonerDTO summonerData = summonerApi.GetSummonerBySummonerName(summonerName);
  1. The retrieved summoner data can now be used through the SummonerDTO object :
string message = "The level of this summoner is " + summonerData.SummonerLevel;
  1. GG IZI ๐Ÿ˜„

๐Ÿ“„ License

This project is licensed under the Apache License 2.0.

This project uses:

Disclaimer: This project is not endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends ยฉ Riot Games, Inc.

riot-games-api-csharp's People

Watchers

 avatar

Forkers

riftnemesis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.