Google_ScrapsServiceResource
The "scraps" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_OrkutService.php
- class Google_ScrapsServiceResource extends Google_ServiceResource {
- /**
- * Creates a new scrap. (scraps.insert)
- *
- * @param Google_Activity $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Activity
- */
- public function insert(Google_Activity $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Activity($data);
- } else {
- return $data;
- }
- }
- }