Skip to content

Instantly share code, notes, and snippets.

@ifitzpat
Created September 24, 2015 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifitzpat/4866dc6c3ad410248ac2 to your computer and use it in GitHub Desktop.
Save ifitzpat/4866dc6c3ad410248ac2 to your computer and use it in GitHub Desktop.
notify Boxcar from matlab
function response = notifyBoxcar(token,mytitle,message)
url = 'https://new.boxcar.io/api/notifications';
body = {'user_credentials', token, ...
'notification[title]', mytitle, ...
'notification[long_message]', message, ...
'notification[source_name]', 'Matlab script', ...
'notification[icon_url]' , 'http://www.mathworks.com/cmsimages/64848_wl_cc_logo_membrane_2002_wl.gif', ...
'notification[sound]' , 'clanging'
};
response = urlread(url,'post',body);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment