Idea Melt

Focus Mode

Endpoints

User - Create

Description

Creates a user with the specified paramaters.

endpoint /user/create
method POST
authentication required
Parameters
user_url
required
URL of the user you wish to create.
NOTE: IdeaMelt uses the user_url as the permanent reference point for each user for all requests so make sure this never changes
NOTE: If the user_url specified in this request already exists, the api will overwrite the existing title and avatar values with the values you send in this request
title
required
Name or title of the user
avatar
required
URL of the image avatar for this user
Response
{
    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 =  {
    user_url: "http://www.en.wikipedia.org/henry_ford",
    title: "Henry Ford", 
    avatar: "http://www.en.wikipedia.org/henry_ford_avatar.png", 
}
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('UserCreate', data, success, fail);