Install Python SDK for Google AppEngine
make
# your debug server is now running at localhost:8080
Run tests:
make test
API.js is a tiny JavaScript interface for making API calls convenient.
Simply include it in your webapp and you will be able to make API calls to this service:
<script src="http://localhost:8080/api.js"></script>
To make an API call in your JavaScript:
API('POST', '/example/', { value: 'data' },
function (response, status) {
// "response" is JSON output from the service
// "status" is the HTTP status code returned by the API call
}
);
To make an authenticated API call:
API.auth('POST', '/example/', { value: 'data' },
function (response, status) {
// same as above
}
);