ConstructServices 1.0.6
dotnet add package ConstructServices --version 1.0.6
NuGet\Install-Package ConstructServices -Version 1.0.6
<PackageReference Include="ConstructServices" Version="1.0.6" />
<PackageVersion Include="ConstructServices" Version="1.0.6" />
<PackageReference Include="ConstructServices" />
paket add ConstructServices --version 1.0.6
#r "nuget: ConstructServices, 1.0.6"
#addin nuget:?package=ConstructServices&version=1.0.6
#tool nuget:?package=ConstructServices&version=1.0.6
Construct-Services-DotNet-Class-Library
The official Construct Services .NET library, supporting .NET Framework 4.8.1+.
Installation
Using the .NET Core command-line interface (CLI) tools:
dotnet add package ConstructServices
Using the NuGet Command Line Interface (CLI):
nuget install ConstructServices
Using the Package Manager Console:
Install-Package ConstructServices
From within Visual Studio:
- Open the Solution Explorer.
- Right-click on a project within your solution.
- Click on Manage NuGet Packages...
- Click on the Browse tab and search for "Stripe.net".
- Click on the Stripe.net package, select the appropriate version in the right-tab and click Install.
Documentation
For a comprehensive list of examples, check out the API documentation.
Usage
Leaderboard Requests
Create a leaderboard service object, and pass in the leaderboard ID you're making requests against.
var service = new LeaderboardService("a1cd2297-a9d7-407f-b33a-881580df8228");
The leaderboard service object also has constructors for passing in an API key and a culture code for rendering various responses to a certain culture.
The leaderboard service object is a cheap object and can be created once and reused, or on demand.
Querying a Leaderboard
Once you have a leaderboard service object, all methods available in the leaderboard API will be exposed. Most requests only have one or two parameters such as BanIPAddress():
var result = service.BanIPAddress("1.2.3.4");
However other requests such as GetScores() may have more parameters:
var result = service.GetScores(
new PaginationOptions(page),
"US",
ScoreRange.All,
0,
7,
new RequestPerspective(Code.Helpers.Common.Functions.GetUserIPAddress())
);
Queries always return Success
indicating if the response was succesfull. If not successful, ErrorMessage
and ShouldRetry
properties are returned. If ShouldRetry
is true, likely the request is rate limited and you can retry the request in a few seconds.
Support
For any requests, bug or comments, please open an issue or submit a pull request.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net481 is compatible. |
-
.NETFramework 4.8.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial beta release.