Automatic emails with account balance

You can easily using the NodeHost API get a daily email on your account credit amount if you wanted. Just create a new worker, insert this script and enter in your API key. As long as your have the email alert type turned on you will get an update when ever the worker runs. You can then set when it will run by clicking the button directly under the workers image on the menu to set how often it will get triggered.

v.apikey="PUTYOURKEYHERE"
v.credit="0"

v.getuserinfo=s.http_request_get("https://api.nodehost.cloud/get_account_info?api_key=v.apikey")
v.data=s.json_decode(v.getuserinfo)
if set v.data[data][credit]
    v.credit=v.data[data][credit]
    v.credit/100
end

v.title=s.string_url_encode("Your balance status for your account")
v.message=s.base64_encode("Hey! Just letting you know about your current ballance on your account, you currently have $v.credit on your account.")

v.sendemail=s.http_request_get("https://api.nodehost.cloud/post_account_email_create?api_key=v.apikey&subject=v.title&message=v.message&type=alert&encoded=true")
v.response=s.json_decode(v.sendemail)
if notset v.response[data][error]
	s.echo("EMAIL SENT")
else
	s.echo("EMAIL DID NOT SEND")
end