This object is in archive! 

Use https API Call in Rule

Steve Mutch shared this idea 8 years ago
Under Consideration

Hi,


I'm looking for a way to get a timestamp from the zipabox log as below and use that as a JSON payload inside an HTTP request to send a webhook.


I can get the info I need from this call:


https://my.zipato.com:443/zipato-web/v2/attributes/72b672c8-5182-4b42-ae32-582053443808/valueWhich then returns:{

"value": "true",

"timestamp": "2016-02-26T11:46:46Z"

}

Question is how do I get this JSON output into the body of an HTTP request in a rule. As an example I can get the VALUE from ${attributes.get("624a6ac2-0cc2-4ce4-881f-b147a14eeafe", "com.zipato.cluster.OnOff", "state")}but need the timestamp..

Thanks for your help anyone. Steve

Leave a Comment
 
Attach a file