get-status.py 490 B

1234567891011121314
  1. import requests
  2. import json
  3. headers = {
  4. "Authorization": "84e1df1b61114e75b134b5ec496b8922",
  5. "X-User-ID": "HEQLQR1WgpYtN0SEyKoWBsLiZXX2"
  6. }
  7. #r = requests.post('https://play.ht/api/v1/./convert', headers=headers,data=json.dumps(postdata))
  8. #r = requests.post('https://play.ht/api/v1/./convert', headers=headers,json=postdata)
  9. r = requests.get('https://play.ht/api/v1/articleStatus?transcriptionId=-N1Dq9wXwL-38PjCioL2', headers=headers)
  10. print(r.status_code)
  11. print(r.json())