Proggmatic.VkIDApiClient
9.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Proggmatic.VkIDApiClient --version 9.0.0
NuGet\Install-Package Proggmatic.VkIDApiClient -Version 9.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Proggmatic.VkIDApiClient" Version="9.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Proggmatic.VkIDApiClient --version 9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Proggmatic.VkIDApiClient, 9.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Proggmatic.VkIDApiClient as a Cake Addin #addin nuget:?package=Proggmatic.VkIDApiClient&version=9.0.0 // Install Proggmatic.VkIDApiClient as a Cake Tool #tool nuget:?package=Proggmatic.VkIDApiClient&version=9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VK ID api client
Provides API client for VK ID in .NET.
Only .NET 8.0 and higher will be supported.
Usage
.NET application or ASP.NET application
Install the Proggmatic.VkIDApiClient
NuGet package on the
.NET Core project, then modify the Program.cs
file similar to the following.
using Proggmatic.VkIDApiClient; //-- new addition --//
// For .NET app
var builder = Host.CreateApplicationBuilder(args);
// Or for ASP.NET app
var builder = WebApplication.CreateBuilder(args);
// ... other .NET configuration skipped
//-- Configure instantly --//
builder.Services.AddVkIDApiClient(new VkIDApiClientConfig { ApplicationId = 123456, RedirectUrl = "https://your-valid-redirect-url" });
//-- OR configure from config file --//
builder.Configuration
// other addings of config files
.AddJsonFile("config/vkApi.json", optional: true, reloadOnChange: true);
builder.Services.Configure<VkIDApiClientConfig>(builder.Configuration.GetSection("vkApi"));
builder.Services.AddVkIDApiClient(builder.Configuration);
Config file vkApi.json
example. You can change values while application is running, changes will be applied immediately.
{
"vkApi": {
/* ID of VK application. Set from here https://id.vk.com/about/business/go/accounts/{my user id}/apps */
"applicationId": 12345678,
/* Valid redirect URL. You can set it up on https://id.vk.com/about/business/go/accounts/{your user ID}/apps/{your app ID}/edit */
"redirectUrl": "https://your-valid-redirect-url"
}
}
Then you can use VkIDApiClient
as service from dependency injection.
public async Task SomeMethodOfController(VkExchangeCodeRequest request, [FromServices] VkIDApiClient vkIdApiClient)
{
...
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
-
net9.0
- Microsoft.Extensions.Http (>= 9.0.0)
- Microsoft.Extensions.Http.Polly (>= 9.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Updated to .NET 9.0.0