Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F979504
accountlist.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
513 B
Referenced Files
None
Subscribers
None
accountlist.php
View Options
<?php
require
'./_shared.php'
;
?>
<h1>WePay Demo App: Account List</h1>
<a href="index.php">Back</a>
<br />
<?php
try
{
$wepay
=
new
WePay
(
$_SESSION
[
'wepay_access_token'
]);
$accounts
=
$wepay
->
request
(
'account/find'
);
foreach
(
$accounts
as
$account
)
{
echo
"<a href=
\"
$account->account_uri
\"
>$account->name</a>: $account->description <br />"
;
}
}
catch
(
WePayException
$e
)
{
// Something went wrong - normally you would log
// this and give your user a more informative message
echo
$e
->
getMessage
();
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 12:06 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
236363
Default Alt Text
accountlist.php (513 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment