Google_Service_Blogger_Blogs_Resource

The "blogs" collection of methods.

Defined (1)

The class is defined in the following location(s).

/lib/Google/Service/Blogger.php  
  1. class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets one blog by id. (blogs.get) 
  5. * @param string $blogId 
  6. * The ID of the blog to get. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string maxPosts 
  9. * Maximum number of posts to pull back with the blog. 
  10. * @opt_param string view 
  11. * Access level with which to view the blogs. Note that some fields require elevated access. 
  12. * @return Google_Service_Blogger_Blog 
  13. */ 
  14. public function get($blogId, $optParams = array()) 
  15. $params = array('blogId' => $blogId); 
  16. $params = array_merge($params, $optParams); 
  17. return $this->call('get', array($params), "Google_Service_Blogger_Blog"); 
  18. /** 
  19. * Retrieve a Blog by URL. (blogs.getByUrl) 
  20. * @param string $url 
  21. * The URL of the blog to retrieve. 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param string view 
  24. * Access level with which to view the blogs. Note that some fields require elevated access. 
  25. * @return Google_Service_Blogger_Blog 
  26. */ 
  27. public function getByUrl($url, $optParams = array()) 
  28. $params = array('url' => $url); 
  29. $params = array_merge($params, $optParams); 
  30. return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); 
  31. /** 
  32. * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) 
  33. * @param string $userId 
  34. * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the 
  35. * user's profile identifier. 
  36. * @param array $optParams Optional parameters. 
  37. * @opt_param bool fetchUserInfo 
  38. * Whether the response is a list of blogs with per-user information instead of just blogs. 
  39. * @opt_param string role 
  40. * User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the 
  41. * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles. 
  42. * @opt_param string view 
  43. * Access level with which to view the blogs. Note that some fields require elevated access. 
  44. * @return Google_Service_Blogger_BlogList 
  45. */ 
  46. public function listByUser($userId, $optParams = array()) 
  47. $params = array('userId' => $userId); 
  48. $params = array_merge($params, $optParams); 
  49. return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList");