Find Jobs
Hire Freelancers

CloudFlare API interface to C#

€25-50 EUR

Selesai
Dibuat lebih dari 10 tahun yang lalu

€25-50 EUR

Dibayar ketika dikirim
We need a small piece of C# .NET code, integrated in an object, that can interface with CloudFlare's API ([login to view URL]) and gets DNS records of a particular domain (rec_load_all). Smallest and best self-documented code wins!
ID Proyek: 5361465

Tentang proyek

5 proposal
Proyek remot
Aktif 10 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
It is simple/Self-explanatory code. There is not much to comment. Any other requirements? You can pay if you like. class CFDNSRecord { public string tkn { get; set; } public string email { get; set; } public string requestURI { get; set; } public string act { get; set; } //Object will be created with default values of requestURI and act variables public CFDNSRecord(string tkn, string email) { [login to view URL] = tkn; [login to view URL] = email; [login to view URL] = "[login to view URL]"; [login to view URL] = "rec_load_all"; } public async Task<string> getDNSRecord(string website) { var client = new HttpClient(); string JSONresult = ""; // Create the parameter string to be posted. var requestContent = new FormUrlEncodedContent(new[] { new KeyValuePair<string, string>("email", email), new KeyValuePair<string, string>("tkn", tkn), new KeyValuePair<string, string>("a", act), new KeyValuePair<string, string>("z", website), }); // Get the response. HttpResponseMessage response = await [login to view URL](requestURI, requestContent); // Get the content of the response HttpContent responseContent = [login to view URL]; // Read the content using ([login to view URL] reader = new [login to view URL](await [login to view URL]())) { // Retrive the output. JSONresult = await [login to view URL](); } return JSONresult; } }
€25 EUR dalam 0 hari
0,0 (0 ulasan)
0,0
0,0
5 freelancer menawar dengan rata-rata €57 EUR untuk pekerjaan ini
Avatar Pengguna
Hello, We have experience with the CloudFlare API. We can use the defined API calls to get the DNS records. Please contact us for more information. Regards, SI Team
€84 EUR dalam 3 hari
5,0 (16 ulasan)
6,2
6,2
Avatar Pengguna
A proposal has not yet been provided
€104 EUR dalam 5 hari
5,0 (7 ulasan)
5,2
5,2
Avatar Pengguna
Hi there. I have the working solution. Direct code and perfectly documented for each line of code with a WinForm C# sample to test out the class. Currently it's using general parameter which can be used to call all cloudFlare API method. You can modify and add other specific method as well since the difference only in parameters. It should return the JSON string when called. Since you asked for clarity then no additional error checking added, however you can add them easily using try catch by distinguishing the err returned from the webRequest call. It's has automatic certificate accept handler and will be sure working as long as your current connection to the cloudFlare does not get blackListed for abusing their service. They had limit on the request call so please be aware. As for the JSON return string you can use many already existing solution to de-serialize them into C# object or use serializer to read the entries. I have some good recommendation too if u need it.
€55 EUR dalam 1 hari
5,0 (3 ulasan)
2,9
2,9
Avatar Pengguna
Hello Sir, We have gone through the details you have provided, we can deliver as u have mentioned and would be pleased to work on this with you to deliver the results that you have expected and can deliver as u have mentioned We are sure you will not be disappointed if you give us this opportunity.I have an impeccable record and all our clients enjoy working with us, we are sure that you will too,
€55 EUR dalam 4 hari
5,0 (3 ulasan)
2,4
2,4
Avatar Pengguna
Please have a look at my profile(portfolio items). If interested, lets discuss. I have sample code and I need keys. Do you have Teamviewer or Skype? I can get this done over Skype in 10 mins.
€25 EUR dalam 1 hari
5,0 (2 ulasan)
1,3
1,3

Tentang klien

Bendera GREECE
Tripolis, Greece
4,9
16
Memverifikasi Metode pembayaran
Anggota sejak Jan 9, 2014

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.