/**
  * {@inheritdoc}
  */
 public function changeFrequency($savedSearchId, $frequency)
 {
     $result = $this->oauth_client->authenticatedPostAsXml('savedSearch/' . $savedSearchId . '/frequency', array('frequency' => $frequency));
     $xml_element = $this->getXmlElementFromXmlString($result);
     $search_element = $xml_element->xpath('/response/savedSearch');
     if (empty($search_element)) {
         $this->throwXmlElementException($xml_element, $result);
     }
     return $this->parseSavedSearch($search_element[0]);
 }
 public function deleteMembership($uid, $assocationId, $consumer_key_counter = NULL)
 {
     $data = array('uid' => $uid, 'associationId' => $assocationId);
     if ($consumer_key_counter) {
         $data['balieConsumerKey'] = $consumer_key_counter;
     }
     $result = $this->oauth_client->authenticatedPostAsXml('uitpas/passholder/membership/delete', $data);
     try {
         $xml = new CultureFeed_SimpleXMLElement($result);
     } catch (Exception $e) {
         throw new CultureFeed_ParseException($result);
     }
     $response = CultureFeed_Uitpas_Response::createFromXML($xml->xpath('/response', false));
     return $response;
 }
 /**
  * Command to update a node so the user unfollows  it.
  *
  * @param String $contentType
  *   The content type of the target node.
  * @param Integer $nodeId
  *   The nodeId to target the node (can be url).
  * @param Integer $userId
  *   The userId of the user who follows the node.
  */
 public function unFollowNode($contentType, $nodeId, $userId)
 {
     $data = array('nodeId' => $nodeId, 'userId' => $userId, 'contentType' => $contentType);
     $result = $this->oauth_client->authenticatedPostAsXml('node/unfollow', $data);
     try {
         $xml = new CultureFeed_SimpleXMLElement($result);
     } catch (Exception $e) {
         throw new CultureFeed_ParseException($result);
     }
     $code = $xml->xpath_str('/response/code');
     if ($code == "SUCCESS") {
         return $xml->xpath_str('/response/nodeId');
     }
     throw new CultureFeed_ParseException($result);
 }
 /**
  * @see CultureFeed_Messages::deleteMessage()
  */
 public function deleteMessage($id)
 {
     $result = $this->oauth_client->authenticatedPostAsXml('message/' . $id . '/delete');
     $xmlElement = $this->validateResult($result, CultureFeed_Messages_Default::CODE_SUCCESS);
 }
 /**
  * @see CultureFeed_Pages::removeValidatedAdmin()
  */
 public function removeValidatedAdmin($id)
 {
     $result = $this->oauth_client->authenticatedPostAsXml('page/' . $id . '/validatedadmin/remove');
     $this->validateResult($result, CultureFeed_Pages_Default::CODE_ACTION_SUCCEEDED);
 }