Files
curlconverter/fixtures/python_output/post_basic_auth_url_encoded_data.py
2017-03-03 16:30:43 +02:00

8 lines
152 B
Python

import requests
data = [
('grant_type', 'client_credentials'),
]
requests.post('http://localhost/api/oauth/token/', data=data, auth=('foo', 'bar'))