Easify Forums

Forums -> ECommerce & Developers Discussion (Archived)

ARCHIVED  These forums are archived and read-only. For support, email support@easify.co.uk or use the Contact us page.

 [SOLVED] Easify V4 API - Get responses as JSON

Page 1 of 1 1
Posted by Richard

[SOLVED] Easify V4 API - Get responses as JSON

If you want to receive responses to Easify V4 API calls as JSON instead of XML, simply add an accept header to your HTTP request as follows:

accept: application/json

or if coding in c#.Net:

using (var client = new HttpClient())

{

client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

}


Regards - Richard (Easify Developer)

Page 1 of 1 1