Cloudflare.Net.Thoo
1.0.3
dotnet add package Cloudflare.Net.Thoo --version 1.0.3
NuGet\Install-Package Cloudflare.Net.Thoo -Version 1.0.3
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="Cloudflare.Net.Thoo" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cloudflare.Net.Thoo --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cloudflare.Net.Thoo, 1.0.3"
#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 Cloudflare.Net.Thoo as a Cake Addin
#addin nuget:?package=Cloudflare.Net.Thoo&version=1.0.3
// Install Cloudflare.Net.Thoo as a Cake Tool
#tool nuget:?package=Cloudflare.Net.Thoo&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
How to start
// You can create the api client in 2 ways.
// With this way you need to login manually.
CloudflareApiClient client = new CloudflareApiClientBuilder()
.WithApiKey("your-api-key")
.WithEmail("your-email")
.Create();
await client.LoginAsync();
// And with this way you can create the api client and login automatically.
CloudflareApiClient client = await new CloudflareApiClientBuilder()
.WithApiKey("your-api-key")
.WithEmail("your-email")
.CreateAndLoginAsync();
// If you would like to modify the rest client that is used, that is possible using the ModifyRestClient method in the CloduflareApiClientBuilder!
new CloudflareApiClientBuilder()
.ModifyRestClient(restClient =>
{
// Do whatever you would like to do.
})
// It's pretty self explanatory but here are a few methods.
CloudflareResponse<List<Zone>> zones = await client.Zone.GetZonesAsync();
Zone firstZone = zones.FirstOrDefault();
CloudflareResponse<List<DnsRecord>> dnsRecords = await client.Dns.GetDnsRecordsAsync(firstZone);
await client.Dns.CreateDnsRecordAsync(firstZone, "test", "8.8.8.8", DnsRecordType.A);
NuGet
Install-Package Cloudflare.Net.Thoo
To do
- Adding more endpoints
- gRPC
Packages
- [RestSharp] (https://github.com/restsharp/RestSharp)
- [Newtonsoft.Json] (https://github.com/JamesNK/Newtonsoft.Json)
- [XUnit] (https://github.com/xunit/xunit)
Contribution
Any type of contribution is appreciated!
License
Cloudflare.Net (Apache-2.0) License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.1)
- RestSharp (>= 106.11.7)
-
.NETStandard 2.1
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.1)
- RestSharp (>= 106.11.7)
-
net5.0
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.1)
- RestSharp (>= 106.11.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.