Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting rank from user #676

Open
krisBroekstra1 opened this issue Nov 11, 2020 · 8 comments
Open

getting rank from user #676

krisBroekstra1 opened this issue Nov 11, 2020 · 8 comments

Comments

@krisBroekstra1
Copy link

I am using this wrapper and tried to get the users Rank, I saw the issue from #388. but it seems not to work. can someone tell me if this is changed?

this is the code i have now:
var player = api.Summoner.GetSummonerByNameAsync(Region.Euw, username).Result;

and tried to do:
var elo = player.GetLeagues();

@AoshiW
Copy link
Contributor

AoshiW commented Nov 11, 2020

documentation is very outdated (last update Nov 2016)

var summoner = riotSharp.Summoner.GetSummonerByNameAsync(RiotSharp.Misc.Region.Eune, "Summoner name").Result;
List<LeagueEntry> rank = riotSharp.League.GetLeagueEntriesBySummonerAsync(summoner.Region, summoner.Id).Result;

@krisBroekstra1
Copy link
Author

krisBroekstra1 commented Nov 11, 2020

documentation is very outdated (last update Nov 2016)

var summoner = riotSharp.Summoner.GetSummonerByNameAsync(RiotSharp.Misc.Region.Eune, "Summoner name").Result;
List<LeagueEntry> rank = riotSharp.League.GetLeagueEntriesBySummonerAsync(summoner.Region, summoner.Id).Result;

this is not working for me, there is no method getleagueentriesBySummonerAsync @AoshiW

@AoshiW
Copy link
Contributor

AoshiW commented Nov 11, 2020

do you use a library from NuGet?

@krisBroekstra1
Copy link
Author

krisBroekstra1 commented Nov 11, 2020

Yes, version 4.0.0

@AoshiW
Copy link
Contributor

AoshiW commented Nov 11, 2020

The NuGet is also outdated, you must build your own lib from GitHub code

@krisBroekstra1
Copy link
Author

Can you explain how to build the project?

@AoshiW
Copy link
Contributor

AoshiW commented Nov 11, 2020

Part 1 - Build lib
0 - Download code + unzip
1 - Open RiotSharp and build lib
built
Part 2 -how use lib
2 - Open YOUR project, add NuGet - Newtonsoft.Json
newtonjson

  • add reference to RiotSharp
    addref1
    image
    image

@BenFradet
Copy link
Owner

it might be worth it to add this guide to the readme 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants