Last active
May 19, 2020 16:23
-
-
Save nfarah86/3a0ef9b1524532247e3ea7c504489d23 to your computer and use it in GitHub Desktop.
HTTP request to execute an API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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