Skip to content

Instantly share code, notes, and snippets.

@nfarah86
Last active May 19, 2020 16:23
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 nfarah86/3a0ef9b1524532247e3ea7c504489d23 to your computer and use it in GitHub Desktop.
Save nfarah86/3a0ef9b1524532247e3ea7c504489d23 to your computer and use it in GitHub Desktop.
HTTP request to execute an API
def get_current_weather_results():
r = requests.post('https://api.rs2.usw2.rockset.com/v1/orgs/self/ws/commons/lambdas/yourLambda/versions/1',
headers={'Authorization': 'ApiKey '+ ROCKSET_API_KEY})
return r.json()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment