Find Jobs
Hire Freelancers

CloudFlare API interface to C#

€25-50 EUR

Completed
Posted over 10 years ago

€25-50 EUR

Paid on delivery
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!
Project ID: 5361465

About the project

5 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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 in 0 day
0.0 (0 reviews)
0.0
0.0
5 freelancers are bidding on average €57 EUR for this job
User Avatar
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 in 3 days
5.0 (16 reviews)
6.2
6.2
User Avatar
A proposal has not yet been provided
€104 EUR in 5 days
5.0 (7 reviews)
5.2
5.2
User Avatar
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 in 1 day
5.0 (3 reviews)
2.9
2.9
User Avatar
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 in 4 days
5.0 (3 reviews)
2.4
2.4
User Avatar
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 in 1 day
5.0 (2 reviews)
1.3
1.3

About the client

Flag of GREECE
Tripolis, Greece
4.9
16
Payment method verified
Member since Jan 9, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.