Member.php 583 B

12345678910111213141516171819202122
  1. <?php
  2. class Services_Twilio_Rest_Member
  3. extends Services_Twilio_InstanceResource
  4. {
  5. /**
  6. * Dequeue this member
  7. *
  8. * @param string $url The Twiml URL to play for this member, after
  9. * dequeueing them
  10. * @param string $method The HTTP method to use when fetching the Twiml
  11. * URL. Defaults to POST.
  12. * @return Services_Twilio_Rest_Member The dequeued member
  13. */
  14. public function dequeue($url, $method = 'POST') {
  15. return self::update(array(
  16. 'Url' => $url,
  17. 'Method' => $method,
  18. ));
  19. }
  20. }