Idea Melt

Focus Mode

Endpoints

User - Is Following User

Description

Checks to see if the user_url is following the following_user_url.

endpoint /user/is_following_user
method GET
authentication required
Parameters
user_url
required
URL of the user who should be the one following.
following_user_url
required
URL of the user who should be the one being followed.
Response
{
    message_list: [ ], 
    success: true, // always use this boolean to check if the request succeeded
    is_following: true
}
is_following
boolean
result of the check.
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",
    following_user_url: "http://www.en.wikipedia.org/steve_jobs"
}
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('IsFollowingUser', data, success, fail);