Blynk REST Api using Python
I’m trying to use a MENU Widget via the REST API. I am sending values for the drop down menu lines. For example, Test1 and Test2 below. They both show up on one line in the Menu widget on an iPhone. How do I send a set of individual menu items so they show up on separate lines for selection?
get_body="?labels=\"Test1\",\"Test2\"" myRequest= config.BLYNK_URL+config.BLYNK_AUTH+'/update/V45'+get_body print("myRequest=", myRequest) r = requests.get(myRequest)
Here is the complete request sent to Blynk (with the authorization code removed). It returns a 200, but all of the line arguments (Test1, Test2) are on one line, rather than on multiple menu lines as it should be.
updateStaticBlynk:V45 Labels:r.status_code: 200