GithubHelp home page GithubHelp logo

riotnet's People

Contributors

aj-r avatar dependabot[bot] avatar galoompa avatar hemmoleg avatar jethrob avatar joopip avatar red3141 avatar yannick183 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

riotnet's Issues

403 Forbidden on simple test case

Trying on this client, ran the simple example code:

            var client = new RiotClient(new RiotClientSettings
            {
                ApiKey = "RGAPI-<my api key>" // Replace this with your API key, of course.
            });
            var summoner = await client.GetSummonerBySummonerNameAsync("KirkBerkley", RiotNet.Models.PlatformId.NA1).ConfigureAwait(false);

Consistently getting 403s, even after a key regen. I also notice that the unit tests don't provide a platform id, but I can't seem to run without one.

All the masteries are Ferocity

when i access the masteries from the "GetStaticMasteries()", every mastery i get is ferocity, even doe it should be cunning or resolve.

Add constants for locales

Languages are the same for every platform. Having constants would make it easier to use static data API methods that accept a language parameter.

is it possible to not call the riot api directly?

is it possible to edit the wrapper so it doesnt call the riot api directly? so you can have a server in the middle with your api key on it, because right now the api key is hardcoded into the app and that way its not possible to release the app.

Better error reporting for errors from the server

If the server returns an error object in a 400/500 response, the client still tries to deserialize it as the type it was originally expecting. This results in either a JsonSerializationException or a RestException with no useful message. As such, the user cannot see the error that came from the server, making it difficult to determine the cause of the error.

To fix this, we should throw a RestException containing the error message from the server.

Any support for champion data?

Hey,

I know I am a bit late on this, but with the removal of that static data API did you remove support for that kind of data enterily?

RiotNet.Test / RiotClientTests.cs / GetServerName_ShouldBeDefinedForAllRegions() is wrong

RiotNet.Test / RiotClientTests.cs / GetServerName_ShouldBeDefinedForAllRegions() tests for platformId. It should test for serverName.
example correct implementation (too lazy for pull request XD, and idk if u even care about this anymore):

[Test]
public void GetServerName_ShouldBeDefinedForAllRegions()
{
    foreach (string server in from Region region in Enum.GetValues(typeof(Region)) select RiotClient.GetServerName(region))
    {
        Assert.That(server, Is.Not.Null.And.Not.Empty);
    }
}

VB.Net (No idea what I'm doing)

Dim client As New RiotClient
client.Settings.ApiKey = apikeyref
Dim r As Models.Summoner = Await client.GetSummonerBySummonerNameAsync("jaowsh")

How is this not working? (The apikey is a dim at top.) I'm getting error with "await" and "client"

Static data fields should be nullable if they're not always returned by the API

The static data API doesn't return all properties of an object unless you tell it to. For the properties that aren't returned, it would be nice to set them to null so it is clear that they aren't set. (For example, it might look like a mastery is in the ferocity tree when it really isn't.)

However I'm not totally sure that we want to do this, since it will be an interface breaking change. As a potential alternative, we could add a new enum value of None = -1 for the affected enums (or just set the property value to -1 even though it's not part of the enum).

Move database-ready models into a separate package

The DatabaseId property could be confusing for a lot of people since it isn't returned by Riot's API at all. See if we can create a separate NuGet package containing database-ready models that extend the normal models.

Missing values in MatchParticipantStats

Hi,
the following properties are not included inside MatchParticipantStats:

perkPrimaryStyle
perkSubStyle

Other missing values are playerScore0 - playerScore9, but since they are not used / always 0, those are of no importance I´d guess.

Cheers

404 when retrieving current game information

Hey there,
first of all i want to thank you for your work. I really appreciate it.
The issue i have occurs when I am trying to get the current Game Information. like
"client.GetCurrentGameBySummonerId(_currentSummoner.Id)". I get an error 404. Did Riot change the URLs used for these request and you havent implemented it yet ? Or am I missing something ?
Thanks in advance

RiotClient.GetStaticRealm does not work for some regions

Hi,
I am facing a strange issue. RiotClient.GetStaticRealm is not working for some regions (I tested EUW and TR not working), while it works fine for other regions (I tried NA,BR,LAN). My developer account is on EUW so I think it is not related to the account settings.

RiotClient client = new RiotClient(Region.EUW, riotApiKey);
staticRealm = client.GetStaticRealm(); //NOT OK

RiotClient client2 = new RiotClient(Region.NA, riotApiKey);
staticRealm = client2.GetStaticRealm(); //OK

The message I receive is the following:
A REST request failed. Status code: 403
{"status": {"message": "Forbidden", "status_code": 403}}

Support EF Core

Right now our models don't work out-of-the-box in EF Core because EF Core doesn't support the [ComplexType] attribute. EF Core 2 supports owned types, which are meant as a replacement to complex types, so we'll have to target EF Core 2.

V3 deprecation

Hi there,

My name is David and I use RiotNet for my app. I would like to know if someone is working on the new V4 endpoints since V3 ones will be deprecated on 28th January.

Thank you so much in advance!

Tournament for Global Endpoint only?

Hello everyone!
I observed that only Global Endpoint is used at the Tournament methods, I mean, why not use the Region Endpoint chose on RiotClient constructor?
Can I change this in some configuration?
Thanks.

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.