Skip to content

Instantly share code, notes, and snippets.

@phstc
Created October 5, 2014 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phstc/3f65e1bb71a36ee2b97d to your computer and use it in GitHub Desktop.
Save phstc/3f65e1bb71a36ee2b97d to your computer and use it in GitHub Desktop.
response.status = 200;
var payload = JSON.parse(request.body);
response.headers['Content-Type'] = 'application/json';
response.body = { "request_id": payload.request_id, "summary": "Hello " + payload['order']['id'] };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment