Skip to content

Me Section

kgangadhar edited this page May 25, 2019 · 1 revision

Me Section

/me are users equivalent methods that takes an access_token instead. These methods are provided for developer convenience, with the exception of plain /me, which is actually necessary for discovering which user authenticated to an application.

 
//  me object
const stack_me = stackexchange.me;
 

me

Get the users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using users endpoint 
stack_me.me( users_options, (response) => {
   console.log(response);
});
 

me_answers

Get the answers posted by the users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_answers endpoint 
stack_me.me_answers( users_options, (response) => {
   console.log(response);
});

me_badges

Get the badges earned by the users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_badges endpoint 
stack_me.me_badges( users_options, (response) => {
   console.log(response);
});

me_comments

Get the comments posted by the users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_comments endpoint 
stack_me.me_comments( users_options, (response) => {
   console.log(response);
});
 

me_comments_to

Get the comments posted by a set of users in reply to another user.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
//another user_id
let toid = 1427878;
 
 
// using me_comments_to endpoint 
stack_me.me_comments_to(toid, users_options, (response) => {
   console.log(response);
});
 

me_favorites

Get the questions favorited by users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_favorites endpoint 
stack_me.me_favorites(users_options, (response) => {
   console.log(response);
});
 

me_mentioned

Get the comments that mention one of the users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_mentioned endpoint 
stack_me.me_mentioned(users_options, (response) => {
   console.log(response);
});
 
 

me_network_activity

Gets a user's activity across the Stack Exchange network.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_network_activity endpoint 
stack_me.me_network_activity(users_options, (response) => {
   console.log(response);
});
 

me_notifications

Get a user's notifications.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_notifications endpoint 
stack_me.me_notifications(users_options, (response) => {
   console.log(response);
});    
 

me_unread_notifications

Get a user's unread notifications.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_unread_notifications endpoint 
stack_me.me_unread_notifications(users_options, (response) => {
   console.log(response);
});    
 

me_posts

Get all posts (questions and answers) owned by a set of users.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_posts endpoint 
stack_me.me_posts(users_options, (response) => {
   console.log(response);
});
  
 

me_privileges

Get the privileges the given user has on the site.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_privileges endpoint 
stack_me.me_privileges(users_options, (response) => {
   console.log(response);
});
  

me_questions

Get the questions asked by the users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_questions endpoint 
stack_me.me_questions(users_options, (response) => {
   console.log(response);
});
  

me_featured_questions

Get the questions on which a set of users, have active bounties.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_featured_questions endpoint 
stack_me.me_featured_questions(users_options, (response) => {
   console.log(response);
});
  

me_no_answer_questions

Get the questions asked by a set of users, which have no answers.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_no_answer_questions endpoint 
stack_me.me_no_answer_questions(users_options, (response) => {
   console.log(response);
});
 
  

me_unaccepted_questions

Get the questions asked by a set of users, which have at least one answer but no accepted answer.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_unaccepted_questions endpoint 
stack_me.me_unaccepted_questions(users_options, (response) => {
   console.log(response);
});
  

me_unanswered_questions

Get the questions asked by a set of users, which are not considered to be adequately answered.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_unanswered_questions endpoint 
stack_me.me_unanswered_questions(users_options, (response) => {
   console.log(response);
});
  

me_reputation

Get a subset of the reputation changes experienced by the users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_reputation endpoint 
stack_me.me_reputation(users_options, (response) => {
   console.log(response);
});
  

me_reputation_history

Get a history of a user's reputation, excluding private events.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_reputation_history endpoint 
stack_me.me_reputation_history(users_options, (response) => {
   console.log(response);
});
  

me_full_reputation_history

Get a full history of a user's reputation. auth required

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_full_reputation_history endpoint 
stack_me.me_full_reputation_history(users_options, (response) => {
   console.log(response);
});
  

me_suggested_edits

Get the suggested edits provided by users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_suggested_edits endpoint 
stack_me.me_suggested_edits(users_options, (response) => {
   console.log(response);
});
  

me_tags

Get the tags that the users (identified by a set of ids) have been active in.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_tags endpoint 
stack_me.me_tags(users_options, (response) => {
   console.log(response);
});   

me_tags_top_questions

Get the top questions a user has posted with a set of tags.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
//user tags
let tags = "nodejs";
 
// using me_tags_top_questions endpoint 
stack_me.me_tags_top_questions(tags, users_options, (response) => {
   console.log(response);
}); 

me_tags_top_answers

Get the top answers a user has posted on questions with a set of tags.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
//user tags
let tags = "nodejs";
 
// using me_tags_top_answers endpoint 
stack_me.me_tags_top_answers(tags, users_options, (response) => {
   console.log(response);
});  

me_top_answer_tags

Get the top tags (by score) a single user has posted answers in.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_top_answer_tags endpoint 
stack_me.me_top_answer_tags( users_options, (response) => {
   console.log(response);
});

me_top_question_tags

Get the top tags (by score) a single user has asked questions in.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_top_question_tags endpoint 
stack_me.me_top_question_tags( users_options, (response) => {
   console.log(response);
});
 

me_timeline

Get a subset of the actions of that have been taken by the users identified by a set of ids.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_timeline endpoint 
stack_me.me_timeline(users_options, (response) => {
   console.log(response);
});

me_top_tags

Get the top tags (by score) a single user has posted in.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_top_tags endpoint 
stack_me.me_top_tags( users_options, (response) => {
   console.log(response);
});

me_inbox

Get a user's inbox. auth required

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_inbox endpoint 
stack_me.me_inbox( users_options, (response) => {
   console.log(response);
});

me_unread_inbox

Get the unread items in a user's inbox. auth required

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_unread_inbox endpoint 
stack_me.me_unread_inbox( users_options, (response) => {
   console.log(response);
});
 

me_associated_users

Get a user's associated accounts.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_associated_users endpoint 
stack_me.me_associated_users(users_options, (response) => {
   console.log(response);
});
 

me_merge_history

Get the merges a user's accounts has undergone.

//options for users
let users_options = {
   "key": "your_key",
   "access_token": "your_token"
}
 
// using me_merge_history endpoint 
stack_me.me_merge_history(inbox_options, (response) => {
   console.log(response);
});