FeedbackSummary.php 901 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. class Services_Twilio_Rest_FeedbackSummary extends Services_Twilio_InstanceResource {
  3. public function __construct($client, $uri, $params = array()) {
  4. $this->instance_name = "Services_Twilio_Rest_FeedbackSummary";
  5. return parent::__construct($client, $uri, $params);
  6. }
  7. /**
  8. * Create feedback summary for calls
  9. */
  10. public function create(array $params = array()) {
  11. $params = $this->client->createData($this->uri, $params);
  12. return new $this->instance_name($this->client, $this->uri, $params);
  13. }
  14. /**
  15. * Delete a feedback summary
  16. */
  17. public function delete($sid) {
  18. $this->client->deleteData($this->uri . '/' . $sid);
  19. }
  20. /**
  21. * Get a feedback summary
  22. */
  23. public function get($sid) {
  24. return new $this->instance_name(
  25. $this->client, $this->uri . '/' . $sid
  26. );
  27. }
  28. }