Пытались преобразовать в запросы, но не смогли преобразовать параметр --request POST
Код: Выделить всё
token_validate_cmd = ('curl --noproxy {1} \
-H "Authorization: Basic {0}" \
-H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" \
--request POST https://{1}/auth/v1/check \
-d "grant_type=password&scope={2}&token={3}"'.format(some_key, some_url, scope, token))
Подробнее здесь: https://stackoverflow.com/questions/792 ... -to-be-don