Looking to extract data from the e-goi API, I found a .jar file in their documentation. Unfortunately, there are no examples provided for the REST API, leaving me unsure of how to access it directly. As I'm still new to programs like this, I could really use some guidance on accessing the data using Google Script and the REST API.
I attempted the following code:
function myFunction() {
var url = 'http://api.e-goi.com/v2/rest.php?apikey=04cc5ea9d2d266a376c07ff4f12e077be40bbf51&method=getUserData';
var response = UrlFetchApp.fetch(url, {'muteHttpExceptions': true});
//var data = JSON.parse(response);
Logger.log(responAccording to the se);
}
However, the response I received was:
<?xml version="1.0" encoding="UTF-8"?>
<Egoi_Api generator="zend" version="1.0"><getUserData><response>NO_USERNAME_AND_PASSWORD_AND_APIKEY</response><status>success</status></getUserData></Egoi_Api>
As per the E-goi API specifications, the getUserData method should not require a username or password, just the apikey included in the command.
What am I missing here?