[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 class Services_Twilio_Rest_UsageTriggers extends Services_Twilio_ListResource { 4 5 public function __construct($client, $uri) { 6 $uri = preg_replace("#UsageTriggers#", "Usage/Triggers", $uri); 7 parent::__construct($client, $uri); 8 } 9 10 /** 11 * Create a new UsageTrigger 12 * @param string $category The category of usage to fire a trigger for. A full list of categories can be found in the `Usage Categories documentation <http://www.twilio.com/docs/api/rest/usage-records#usage-categories>`_. 13 * @param string $value Fire the trigger when usage crosses this value. 14 * @param string $url The URL to request when the trigger fires. 15 * @param array $params Optional parameters for this trigger. A full list of parameters can be found in the `Usage Trigger documentation <http://www.twilio.com/docs/api/rest/usage-triggers#list-post-optional-parameters>`_. 16 * @return Services_Twilio_Rest_UsageTrigger The created trigger 17 */ 18 function create($category, $value, $url, array $params = array()) { 19 return parent::_create(array( 20 'UsageCategory' => $category, 21 'TriggerValue' => $value, 22 'CallbackUrl' => $url, 23 ) + $params); 24 } 25 26 } 27
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |