Skip to content

Instantly share code, notes, and snippets.

@youngsoul
Created May 17, 2020 17:56
Show Gist options
  • Select an option

  • Save youngsoul/bdae96d4c350eec69de802ae0b671a70 to your computer and use it in GitHub Desktop.

Select an option

Save youngsoul/bdae96d4c350eec69de802ae0b671a70 to your computer and use it in GitHub Desktop.
Payload to use to test requestUnicorn.js
{
"path": "/ride",
"httpMethod": "POST",
"headers": {
"Accept": "*/*",
"Authorization": "eyJraWQiOiJLTzRVMWZs",
"content-type": "application/json; charset=UTF-8"
},
"queryStringParameters": null,
"pathParameters": null,
"requestContext": {
"authorizer": {
"claims": {
"cognito:username": "the_username"
}
}
},
"body": "{\"PickupLocation\":{\"Latitude\":47.6174755835663,\"Longitude\":-122.28837066650185}}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment