Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104452649
user.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
Sun, Mar 9, 14:08
Size
475 B
Mime Type
text/x-php
Expires
Tue, Mar 11, 14:08 (2 d)
Engine
blob
Format
Raw Data
Handle
24789341
Attached To
rPH Phabricator
user.php
View Options
<?php
require
'./_shared.php'
;
?>
<h1>WePay Demo App: User Info</h1>
<a href="index.php">Back</a>
<br />
<?php
try
{
$wepay
=
new
WePay
(
$_SESSION
[
'wepay_access_token'
]);
$user
=
$wepay
->
request
(
'user'
);
echo
'<dl>'
;
foreach
(
$user
as
$key
=>
$value
)
{
echo
"<dt>$key</dt><dd>$value</dd>"
;
}
echo
'</dl>'
;
}
catch
(
WePayException
$e
)
{
// Something went wrong - normally you would log
// this and give your user a more informative message
echo
$e
->
getMessage
();
}
Event Timeline
Log In to Comment