test.py 495 B

12345678910111213141516171819202122
  1. import requests
  2. # server_host = "https://www.zositech.xyz"
  3. #
  4. #
  5. # res = requests.get(server_host + '/oa2/discoverydevice?area=useast&region=en&access_token=Qd0HMlbALEDhZ1mg5Mw4MeGiYT4gi4FX')
  6. # print(res.json())
  7. #
  8. # import requests
  9. #
  10. server_host = "https://www.zositech.xyz"
  11. #
  12. post_data = {
  13. 'area': 'useast',
  14. 'region': 'en',
  15. 'access_token': 'Qd0HMlbALEDhZ1mg5Mw4MeGiYT4gi4FX'
  16. }
  17. res = requests.post(
  18. url=server_host + '/oa2/discoverydevice',
  19. data=post_data
  20. )
  21. print(res.json())