shareCard_dev.py 453 B

1234567891011121314151617181920212223242526
  1. """
  2. @author: luojunhui
  3. """
  4. import json
  5. import time
  6. import requests
  7. """
  8. cate: video_return, video_view, video_rov
  9. """
  10. url = "http://localhost:8888/getShareCard"
  11. body = {
  12. "videoId": 21059419,
  13. "ghId": "testId"
  14. }
  15. a = time.time()
  16. header = {
  17. "Content-Type": "application/json",
  18. }
  19. response = requests.post(url, json=body, headers=header, timeout=600)
  20. b = time.time()
  21. print(b - a)
  22. print(json.dumps(response.json(), ensure_ascii=False, indent=4))