Tumblr User

Use it by geting user data or perform user actions

Figure 1a. Instantiate Users
$user = eden('tumblr')->user('[TUMBLR_KEY]', '[TUMBLR_SECRET]', $_SESSION['access_token'], $_SESSION['access_secret']);
Figure 1b. Usage: Retrieve a User's Dashboard
$user
	->setLimit('[INTEGER]')				//optional
	->setOffset('[INTEGER]')			//optional
	->setType('[STRING]')				//optional
	->setSinceId('[INTEGER]')			//optional
    ->setReblogInfo('[BOOLEAN]')		//optional
	->getDashboard();
Figure 1c. Usage: Follow a blog
$user->follow('http://openovate.tumblr.com/');
Figure 1d. Usage: Retrieve blogs that user has follow
$user->getFollowing();
Figure 1e. Users Methods
Method Arguments Returns Description
$user->getInfo(); none array Retrieve the user's account information that matches the OAuth credentials submitted with the request.
$user->getDashboard(); none array Retrieve the dashboard that matches the OAuth credentials submitted with the request.
$user->getLikes(); none array Retrieve the liked posts that match the OAuth credentials submitted with the request.
$user->getFollowing(); none array Retrieve the blogs followed by the user whose OAuth credentials are submitted with the request.
$user->follow($url);
  1. string
array Follow a blog
$user->unfollow($url);
  1. string
array Unfollow a blog
$user->like($postId, $reblogKey);
  1. integer
  2. - The ID of the post to like
  3. string
  4. - The reblog key for the post id
array Like a post
$user->unlike($postId, $reblogKey);
  1. integer
  2. string
array Unlike a post
$user->setLimit($limit);
  1. integer
Eden_Tumblr_User The number of results to return: 120, inclusive
$user->setNotesInfo($note);
  1. boolean
Eden_Tumblr_User Indicates whether to return notes information (specify true or false). Returns note count and note metadata.
$user->setOffset($offset);
  1. integer
Eden_Tumblr_User Post number to start at
$user->setReblogInfo($reblog);
  1. boolean
Eden_Tumblr_User Indicates whether to return reblog information (specify true or false). Returns the various reblogged_ fields.
$user->setSinceId($since);
  1. integer
Eden_Tumblr_User Return posts that have appeared after this ID Use this parameter to page through the results: first get a set of posts, and then get posts since the last ID of the previous set.
$user->setType($type);
  1. string
Eden_Tumblr_User The type of post to return. Specify one of the following: text, photo, quote, link, chat, audio, video, answer

© 2012 Openovate Labs. All rights reserved.