Idea Melt

Focus Mode

Endpoints

User - Exists

Description

Checks if the user specified exists in your namespace.

endpoint /user/exists
method GET
authentication required
Parameters
user_url
required
URL of the user you wish to check.
Response
{
    message_list: [ ], 
    success: true, // always use this boolean to check if the request succeeded
    user_exists: true,
    user: {
        title: "Henry Ford", 
        url: "http://www.en.wikipedia.org/henry_ford", 
        avatar: "http://www.en.wikipedia.org/henry_ford_avatar.png", 
        following_count: 5
    }, 
}
user_exists
boolean
result of the exists request
user
object
if the user exists, the api will return the user objcet as well
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",
}
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('UserExists', data, success, fail);