public function getPosts($user, $location = false, $limit = 0, $offset = 0, $until = null, $since = null)
	{
		if ($location == true)
		{
			$location = '?with=location';
		}

		// Send the request.
		return $this->getConnection($user, 'posts', $location, $limit, $offset, $until, $since);
	}
public function getPosts($user, $location = false, $limit = 0, $offset = 0, $until = null, $since = null)
	{
		if ($location == true)
		{
			$location = '?with=location';
		}

		// Send the request.
		return $this->getConnection($user, 'posts', $location, $limit, $offset, $until, $since);
	}
public function getPosts ( $ user , $ location = false , $ limit = 0 , $ offset = 0 , $ until = null , $ since = null ) { if ( $ location == true ) { $ location = '?with=location' ; } // Send the request. return $ this -> getConnection ( $ user , 'posts' , $ location , $ limit , $ offset , $ until , $ since ) ; }
Method to get the user's posts. Requires authentication and read_stream permission for non-public posts.

@param   mixed    $user      Either an integer containing the user ID or a string containing the username.
@param   boolean  $location  Retreive only posts with a location attached.
@param   integer  $limit     The number of objects per page.
@param   integer  $offset    The object's number on the page.
@param   string   $until     A unix timestamp or any date accepted by strtotime.
@param   string   $since     A unix timestamp or any date accepted by strtotime.

@return  mixed   The decoded JSON response or false if the client is not authenticated.

@since   1.0
Method to get the user s posts . Requires authentication and read_stream permission for non - public posts .