|
- import requests
- raw_token = input('token password: ')
- url = input('update server: ')+'/release'
- version = input('version: ')
- platform = input('platform: ')
- download_url = input('download link: ')
- release_resp = requests.post(url, json={'token':raw_token, 'version':version, 'platform':platform, 'url':download_url})
- print(release_resp.status_code)
- print(release_resp.json())
|