[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 class Stripe_List extends Stripe_Object 4 { 5 public function all($params=null) 6 { 7 $requestor = new Stripe_ApiRequestor($this->_apiKey); 8 list($response, $apiKey) = $requestor->request( 9 'get', 10 $this['url'], 11 $params 12 ); 13 return Stripe_Util::convertToStripeObject($response, $apiKey); 14 } 15 16 public function create($params=null) 17 { 18 $requestor = new Stripe_ApiRequestor($this->_apiKey); 19 list($response, $apiKey) = $requestor->request( 20 'post', $this['url'], $params 21 ); 22 return Stripe_Util::convertToStripeObject($response, $apiKey); 23 } 24 25 public function retrieve($id, $params=null) 26 { 27 $requestor = new Stripe_ApiRequestor($this->_apiKey); 28 $base = $this['url']; 29 $id = Stripe_ApiRequestor::utf8($id); 30 $extn = urlencode($id); 31 list($response, $apiKey) = $requestor->request( 32 'get', "$base/$extn", $params 33 ); 34 return Stripe_Util::convertToStripeObject($response, $apiKey); 35 } 36 37 }
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 |