Google_Service_Blogger_Pages_Resource

The "pages" collection of methods.

Defined (1)

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

/lib/Google/Service/Blogger.php  
  1. class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Delete a page by id. (pages.delete) 
  5. * @param string $blogId 
  6. * The Id of the Blog. 
  7. * @param string $pageId 
  8. * The ID of the Page. 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function delete($blogId, $pageId, $optParams = array()) 
  12. $params = array('blogId' => $blogId, 'pageId' => $pageId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('delete', array($params)); 
  15. /** 
  16. * Gets one blog page by id. (pages.get) 
  17. * @param string $blogId 
  18. * ID of the blog containing the page. 
  19. * @param string $pageId 
  20. * The ID of the page to get. 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param string view 
  23. * @return Google_Service_Blogger_Page 
  24. */ 
  25. public function get($blogId, $pageId, $optParams = array()) 
  26. $params = array('blogId' => $blogId, 'pageId' => $pageId); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('get', array($params), "Google_Service_Blogger_Page"); 
  29. /** 
  30. * Add a page. (pages.insert) 
  31. * @param string $blogId 
  32. * ID of the blog to add the page to. 
  33. * @param Google_Page $postBody 
  34. * @param array $optParams Optional parameters. 
  35. * @return Google_Service_Blogger_Page 
  36. */ 
  37. public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) 
  38. $params = array('blogId' => $blogId, 'postBody' => $postBody); 
  39. $params = array_merge($params, $optParams); 
  40. return $this->call('insert', array($params), "Google_Service_Blogger_Page"); 
  41. /** 
  42. * Retrieves the pages for a blog, optionally including non-LIVE statuses. 
  43. * (pages.listPages) 
  44. * @param string $blogId 
  45. * ID of the blog to fetch pages from. 
  46. * @param array $optParams Optional parameters. 
  47. * @opt_param string status 
  48. * @opt_param bool fetchBodies 
  49. * Whether to retrieve the Page bodies. 
  50. * @opt_param string view 
  51. * Access level with which to view the returned result. Note that some fields require elevated 
  52. * access. 
  53. * @return Google_Service_Blogger_PageList 
  54. */ 
  55. public function listPages($blogId, $optParams = array()) 
  56. $params = array('blogId' => $blogId); 
  57. $params = array_merge($params, $optParams); 
  58. return $this->call('list', array($params), "Google_Service_Blogger_PageList"); 
  59. /** 
  60. * Update a page. This method supports patch semantics. (pages.patch) 
  61. * @param string $blogId 
  62. * The ID of the Blog. 
  63. * @param string $pageId 
  64. * The ID of the Page. 
  65. * @param Google_Page $postBody 
  66. * @param array $optParams Optional parameters. 
  67. * @return Google_Service_Blogger_Page 
  68. */ 
  69. public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) 
  70. $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); 
  71. $params = array_merge($params, $optParams); 
  72. return $this->call('patch', array($params), "Google_Service_Blogger_Page"); 
  73. /** 
  74. * Update a page. (pages.update) 
  75. * @param string $blogId 
  76. * The ID of the Blog. 
  77. * @param string $pageId 
  78. * The ID of the Page. 
  79. * @param Google_Page $postBody 
  80. * @param array $optParams Optional parameters. 
  81. * @return Google_Service_Blogger_Page 
  82. */ 
  83. public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) 
  84. $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); 
  85. $params = array_merge($params, $optParams); 
  86. return $this->call('update', array($params), "Google_Service_Blogger_Page");