blog.notifo.com

Notifo.com main web site »

 
« Back to blog

Now you can use your User account to send yourself notifications through the Notifo API. This means that you no longer have to register a separate Service account if you want to send yourself notifications.

You will need your API Username (same as your Notifo username) and your API Secret. You can find your API Secret on the Settings page. Your API Secret is not the same as your Notifo password

Let's pretend that you live a futuristic house where everything is connected to the internet (or at least your home network). Doors, appliances, thermostats, everything... you get the idea. Let's say that you wanted to know about certain events that happen in your house. For example, you want to know when the doorbell rings because you might be in your awesome home theater and may not hear it. No problem, Notifo to the rescue!


Since you are sending yourself a notification, you get to decide what the "Application Label" of the notification is. In this case, it is House, and it is set with a special new API parameter called label which is only used when sending a notification from a User account. The title parameter is set to Doorbell since that is the event that is actually triggering the notification.

Likewise, your refrigerator is cool enough to know that the weight of the milk carton inside is too low, so it fires of a notification to let you know. This time the title parameter is set to Refrigerator.


Got another application you want to send notifications? No problem. Just change the label parameter to reflect the application. Let's say you also have an IRC bot running to let you know when people are talking to you if you are away.

Simple! You can now create all the custom notifications you want to send to yourself.

If you have access to a command line, try this out with your username and API Secret:

 

curl -k -u username:apisecret \
-d"label=Testing&title=Foo&msg=Bar&uri=http://www.google.com/" \
https://api.notifo.com/v1/send_notification

 

 

For full details, please read the Notifo API Documentation.

 

Posted by Chad Etzel 

Comments (1)

Apr 23, 2010
drewcrawford said...
I've written a command-line tool consuming Notifo's API that pings you when the compile is done. http://github.com/drewcrawford/Phone-Pipe

Leave a comment...