API Testing

Was able to call getAllPurchases with

function fetchData() {
//'use strict';
var test = "_spydakat";
var x = gapi.client.rpurchaseendpoint.getAllPurchases({"namespace":
test});
x.execute(function(resp) { console.log(resp); });
}