test.py 345 B

1234567891011121314151617
  1. """
  2. Test application for api request. Change authorization if necessary
  3. """
  4. import requests
  5. URL = 'http://localhost:5000/api/request/listed/country'
  6. HEADERS = {
  7. 'Authorization': 'ZDoJMSKBKz0TNhfOcCRiraCxb0UHqnbVPIQkP6yJkTdSkvysxnyQgu0U5oQ0NBa9'
  8. }
  9. DATA = {
  10. 'test': 'true',
  11. }
  12. print(requests.get(URL, headers=HEADERS, data=DATA).text)