Fixerr 1.1.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 Fixerr --version 1.1.0
NuGet\Install-Package Fixerr -Version 1.1.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="Fixerr" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fixerr --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fixerr, 1.1.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 Fixerr as a Cake Addin #addin nuget:?package=Fixerr&version=1.1.0 // Install Fixerr as a Cake Tool #tool nuget:?package=Fixerr&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Fixerr - An easy, minimal c# client for Fixer.io
Give it a star if you like the project. 👏 🌠 🌟
Fixer is a popular freemium currency conversion site. Fixerr can help you to transform your currency more faster 😋
Usage:
Required Properties:
ApiKey
IsPaidSubscription
(If you bought the non free key and want to use https, you may want to set it to true)
With out any dependency injection
var apiKey = "";
IFixerClient fixer = FixerFactory.CreateFixerClient(new HttpClient(), apiKey);
var latest = await fixer.GetFluctuationAsync("2012-05-01", "2012-05-25");
Console.WriteLine(latest?.Rates);
With Microsoft DI
var apiKey = "";
builder.Services.AddFixer(apiKey);
If you chose to go with DI approach then after service registration, you will get a IFixerClient
that you can access all your requested method.
private readonly IFixerClient _fixerClient;
public YourFunction(IFixerClient fixerClient) => _fixerClient = fixerClient;
public void CallMethod() {
var latest = await _fixerClient.GetFluctuationAsync("2012-05-01", "2012-05-25");
// now do whatever 😋
}
F.A.Q:
- There is also a optional apiKey parameter is added to every method if you need to access different method with different api key. 🎉
- If anything happens make sure to report using the github issues. Thanks!
Api Cover
- Latest Endpoint
- Symbol Endpoint
- Historic Endpoint
- Convert Endpoint
- TimeSeries Endpoint
- Fluctuation Endpoint
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- System.Text.Json (>= 6.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.