Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Plaid API .NET library

License

NotificationsYou must be signed in to change notification settings

viceroypenguin/Going.Plaid

Repository files navigation

Build statusNuGet

What is Going.Plaid?

Going.Plaid is a library for interacting withPlaid's banking APIs. See their documentationhere.It is supported for .net standard 2.0, .net core 3.1, and .net 5.0+.

Where can I get it?

Going.Plaid is available atnuget.org.

Package ManagerPM > Install-Package Going.Plaid

How it works?

You can make all calls to Plaid's API via theGoing.Plaid.PlaidClient class.

varclient=newPlaidClient(Environment.Sandbox);// Retrieving a user's recent transactions.varresult=awaitclient.TransactionsGetAsync(new(){Secret="<secret>",ClientId="<client_id>",AccessToken="<access_token>",});

Usage

You may providesecret andclientId to the constructor as follows:

varclient=newPlaidClient(Environment.Sandbox,secret:"<secret>",clientId:"<client_id>");// Retrieving a user's recent transactions.varresult=awaitclient.TransactionsGetAsync(new(){AccessToken="<access_token>",});

This will allow you to save a singlePlaidClient in the DI system without trackingsecret andclientId separately.PlaidClient is comfortable being used as a single-instance class in this manner.

Example

Please visitthis repo and download to review a working example ofhow to use this library and the Plaid API.

.NET Core Configuration Options

Easy to use:

Callservices.AddPlaid(IConfigurationRoot) orservices.AddPlaid(IConfiguration). This will automatically bind optionsfrom the provided configuration section or thePlaid section of the root; configure a namedHttpClient for Going.Plaid;and configurePlaidClient as a singleton.

IHttpClientFactory

Going.Plaid supports theIHttpClientFactory for correct usage ofHttpClient, as describedhere.If you choose not to call.AddPlaid(), because you need to customize your DI structure, it is recommended that you callservices.AddPlaidClient() to properly configure theIHttpClientFactory for Going.Plaid usage.

IOptions Support

Going.Plaid supports configuration from any configuration source via theIOptions pattern.You can provide any configuration section to.AddPlaid() and the options will be automatically bound.Alternatively, you may callservices.Configure<PlaidOptions>(); to configure thePlaidOption manually.Once done, you can then addPlaidClient as a singleton by callingservices.AddSingleton<PlaidClient>().

Converters Support

There are several converters that Going.Plaid uses to serialize and deserialize data to the Plaid service.These converters are automatically used internally for all api calls to Plaid. However, if you need to doany serialization or deserialization of your own (for example, if you wish to passGoing.Plaid.Link.OnSuccessMetadatadirectly from the browser to the web server), then you may need to add these converters to the ASP.NETJSON serializer. The easiest way to do this is as follows:

services.Configure<JsonOptions>(o=>{o.SerializerOptions.AddPlaidConverters();});

This will automatically add the converters to the default options for ASP.NET JSON serializer. Otherwise,you can manually add the types found underGoing.Plaid.Converters to theJsonSerializationOptions.Converterslist of converters.

API Version

Going.Plaid currently targets Plaid API version2020-09-14 only.

About

Plaid API .NET library

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors14

Languages


[8]ページ先頭

©2009-2025 Movatter.jp