Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Google API response to json

I am using Google Contact API which sends contact details in XML format, Is there any way to get the same response in JSON format.

My request URL :

https://www.google.com/m8/feeds/contacts/default/full?format=json

This is how I am trying now but its not working even after adding format=json I am getting XML rewsponse.

like image 226
DCoder Avatar asked Dec 04 '25 05:12

DCoder


1 Answers

to get json response we have to use alt instead of format

https://www.google.com/m8/feeds/contacts/default/full?alt=json

like image 112
DCoder Avatar answered Dec 05 '25 19:12

DCoder