/home/desid573/public_html/drivers/twilio-php-master/Twilio/Rest/Api/V2010/Account
Edit: /home/desid573/public_html/drivers/twilio-php-master/Twilio/Rest/Api/V2010/Account/KeyContext.php (2589B)
solution = array('accountSid' => $accountSid, 'sid' => $sid, );
$this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Keys/' . rawurlencode($sid) . '.json';
}
/**
* Fetch a KeyInstance
*
* @return KeyInstance Fetched KeyInstance
*/
public function fetch() {
$params = Values::of(array());
$payload = $this->version->fetch(
'GET',
$this->uri,
$params
);
return new KeyInstance(
$this->version,
$payload,
$this->solution['accountSid'],
$this->solution['sid']
);
}
/**
* Update the KeyInstance
*
* @param array|Options $options Optional Arguments
* @return KeyInstance Updated KeyInstance
*/
public function update($options = array()) {
$options = new Values($options);
$data = Values::of(array('FriendlyName' => $options['friendlyName'], ));
$payload = $this->version->update(
'POST',
$this->uri,
array(),
$data
);
return new KeyInstance(
$this->version,
$payload,
$this->solution['accountSid'],
$this->solution['sid']
);
}
/**
* Deletes the KeyInstance
*
* @return boolean True if delete succeeds, false otherwise
*/
public function delete() {
return $this->version->delete('delete', $this->uri);
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString() {
$context = array();
foreach ($this->solution as $key => $value) {
$context[] = "$key=$value";
}
return '[Twilio.Api.V2010.KeyContext ' . implode(' ', $context) . ']';
}
}