I'm working with the python Vizio API from github: https://github.com/exiva/Vizio_SmartCast_API
I am trying to pair my TV, but I'm receiving an error with the requests module. Error: https://pastebin.com/ddDtwPDX
Here is my code:
import requests
pairing_body = {
"DEVICE_NAME": "Living Room",
"DEVICE_ID": "236D4"
}
pairing_header = {
"Content-Type": "application/json",
}
pair = requests.put(
"https://192.168.0.219:7345/pairing/start",
json=pairing_body,
headers=pairing_header
)
print(pair.content)
print(pair.status_code)
I can't figure out what I'm doing wrong, I'm not sure if the error is in my request itself or if I am misinterpreting the API documentation. Thanks in advance for any help!