Created
May 16, 2020 07:13
-
-
Save melehin/61699aafeab6381201b87c3ee0f4fa0c to your computer and use it in GitHub Desktop.
Получение query параметра запроса для Yandex Cloud Functions по имени. Возвращает None если параметр не найден
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_query_from_event(name, event): | |
if 'queryStringParameters' in event and name in event['queryStringParameters']: | |
return event['queryStringParameters'][name] | |
return None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment