Google_ScrapsServiceResource

The "scraps" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_OrkutService.php  
  1. class Google_ScrapsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Creates a new scrap. (scraps.insert) 
  6. * @param Google_Activity $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Activity 
  9. */ 
  10. public function insert(Google_Activity $postBody, $optParams = array()) { 
  11. $params = array('postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('insert', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_Activity($data); 
  16. } else { 
  17. return $data;