To Test the API in .Net 6 and Rest Sharp, please use the below-provided Sample Code:
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using RestSharp;
using Newtonsoft.Json;
public class Program
{
public static void Main()
{
var url = "https://rest.rchilli.com/RChilliParser/Rchilli/parseResumeBinary";
var client = new RestClient();
var request = new RestRequest(url, Method.Post);
request.AddHeader("Content-Type", "application/json");
var body = new {
filedata = "filebase64data",
filename = "filename with extension.ext",
userkey = "userkey",
version = "8.0.0",
subuserid = "sub userid"
};
var bodyy = JsonConvert.SerializeObject(body);
request.AddBody(bodyy, "application/json");
Console.WriteLine(client.ExecuteAsync(request).Result.Content);
}
}
Also please refer to the below attached images for more details:
If you have any questions, you can always contact RChilli support at support@rchilli.com.
Comments
0 comments
Please sign in to leave a comment.