I am pretty n00b to curl. I managed to install it and get it running.
Now my question is how can I pass the results I see in Command Prompt when I execute this curl command:
Valid JSON result:
I code in VB.net (beginner), I can parse JSON data from the web and put the results into HS3 devices, but curl is new to me, just need some guidance.
Examples would be greatly appreciated.
Thank you in advance.
Now my question is how can I pass the results I see in Command Prompt when I execute this curl command:
Code:
curl -H "Referer: https://www.pollen.com/api/forecast/current/pollen/10001" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" https://www.pollen.com/api/forecast/current/pollen/10001
Code:
{"Type":"pollen","ForecastDate":"2019-04-02T00:00:00-04:00","Location":{"ZIP":"10001","City":"NEW YORK","State":"NY","periods":[{"Triggers":[{"LGID":4,"Name":"Maple","Genus":"Acer","PlantType":"Tree"},{"LGID":272,"Name":"Juniper","Genus":"Juniperus","PlantType":"Tree"}],"Period":"0001-01-01T00:00:00","Type":"Yesterday","Index":11.8},{"Triggers":[{"LGID":4,"Name":"Maple","Genus":"Acer","PlantType":"Tree"},{"LGID":272,"Name":"Juniper","Genus":"Juniperus","PlantType":"Tree"}],"Period":"0001-01-01T00:00:00","Type":"Today","Index":10.2},{"Triggers":[{"LGID":4,"Name":"Maple","Genus":"Acer","PlantType":"Tree"},{"LGID":272,"Name":"Juniper","Genus":"Juniperus","PlantType":"Tree"}],"Period":"0001-01-01T00:00:00","Type":"Tomorrow","Index":9.9}],"DisplayLocation":"New York, NY"}}
Examples would be greatly appreciated.
Thank you in advance.
Comment