You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Thanks for your wrapper implementation)
I'm trying to use example code from README.md, but can't get response with GetSingleCategoryRecords()
What am I doing wrong?
Visual Studio 2022
.Net Framework 4.8 Console App + SpeedrunDotComAPI from NuGet
usingSystem;usingSystem.Linq;usingSystem.Threading.Tasks;usingSpeedrunDotComAPI;usingSpeedrunDotComAPI.Categories;usingSpeedrunDotComAPI.Leaderboards;usingSpeedrunDotComAPI.Runs;namespaceAsyncConsole{internalclassProgram{staticvoidMain(string[]args){Tasktask=Task.Run(async()=>awaitPrintAsync());Console.ReadKey();}staticasyncTaskPrintAsync(){SRCApiClientsrc=newSRCApiClient();// Success request:CategoryModel[]sm64Categories=awaitsrc.Games.GetSingleGameCategories("sm64");CategoryModelseventyStar=sm64Categories.First(c =>c.Name=="70 Star");Console.WriteLine(seventyStar.Rules.ToString());// No response:LeaderboardModel[]leaderboards=awaitsrc.Categories.GetSingleCategoryRecords(seventyStar.Id);RunPlaceModelworldRecord=leaderboards[0].Runs.First(r =>r.Place==1);Console.WriteLine(worldRecord.ToString());}}}
The text was updated successfully, but these errors were encountered:
Hello! Thanks for your wrapper implementation)
I'm trying to use example code from
README.md
, but can't get response with GetSingleCategoryRecords()What am I doing wrong?
Visual Studio 2022
.Net Framework 4.8 Console App + SpeedrunDotComAPI from NuGet
The text was updated successfully, but these errors were encountered: