Idea Melt

Focus Mode


Notifications: Send


Sends a notification to a specific user.

endpoint /notifications/send
method POST
authentication required
to_user_url the URL of the user who will get the notification.
from_user_url the URL of the user this notification is from.
content the content of the notification.
    message_list: [ ], 
    success: true, // always use this boolean to check if the request succeeded
Example Request
// make sure you've initialized the library
// before you make requests using it!
// if you haven't, type in the following
IdeaMelt.init({api_key: IDEAMELT_KEY})

// now you're ready for awesomeness!
var data =  {
    from_user_url: "",
    to_user_url: "",
    content: "What a <a href=''>wonderful day</a> it is today!"
var success = function(r) {
    // everything went perfectly, do something awesome now!
    // remember, this will fire asynchronously
var fail = function(r) {
    // yikes! something didn't go right
    // console.log(r.message_list) to see messages from the server
    // ps. this will also fire asynchronously

// success and fail are optional parameters
IdeaMelt.send('NotifSend', data, success, fail);