Easify Forums

Forums -> ECommerce & Developers Discussion

 [SOLVED] Easify V4 API - Get responses as JSON

Post Reply
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)

Post Reply
Page 1 of 1 1

Easify Website V 5.0    © 2024 Easify Ltd ® All rights reserved.     Privacy Policy