Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92452425
List.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 20, 10:34
Size
976 B
Mime Type
text/x-php
Expires
Fri, Nov 22, 10:34 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22441382
Attached To
rPH Phabricator
List.php
View Options
<?php
class
Stripe_List
extends
Stripe_Object
{
public
function
all
(
$params
=
null
)
{
$requestor
=
new
Stripe_ApiRequestor
(
$this
->
_apiKey
);
list
(
$response
,
$apiKey
)
=
$requestor
->
request
(
'get'
,
$this
[
'url'
],
$params
);
return
Stripe_Util
::
convertToStripeObject
(
$response
,
$apiKey
);
}
public
function
create
(
$params
=
null
)
{
$requestor
=
new
Stripe_ApiRequestor
(
$this
->
_apiKey
);
list
(
$response
,
$apiKey
)
=
$requestor
->
request
(
'post'
,
$this
[
'url'
],
$params
);
return
Stripe_Util
::
convertToStripeObject
(
$response
,
$apiKey
);
}
public
function
retrieve
(
$id
,
$params
=
null
)
{
$requestor
=
new
Stripe_ApiRequestor
(
$this
->
_apiKey
);
$base
=
$this
[
'url'
];
$id
=
Stripe_ApiRequestor
::
utf8
(
$id
);
$extn
=
urlencode
(
$id
);
list
(
$response
,
$apiKey
)
=
$requestor
->
request
(
'get'
,
"$base/$extn"
,
$params
);
return
Stripe_Util
::
convertToStripeObject
(
$response
,
$apiKey
);
}
}
Event Timeline
Log In to Comment