mirror of
https://github.com/curlconverter/curlconverter.git
synced 2022-05-22 02:35:29 +03:00
8 lines
152 B
Python
8 lines
152 B
Python
import requests
|
|
|
|
data = [
|
|
('grant_type', 'client_credentials'),
|
|
]
|
|
|
|
requests.post('http://localhost/api/oauth/token/', data=data, auth=('foo', 'bar'))
|