Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101026090
github.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
Tue, Feb 4, 22:48
Size
307 B
Mime Type
text/x-php
Expires
Thu, Feb 6, 22:48 (2 d)
Engine
blob
Format
Raw Data
Handle
24078922
Attached To
rPH Phabricator
github.php
View Options
<?php
// XML Example from GitHub
require
(
__DIR__
.
'/../bootstrap.php'
);
use
\Httpful\Request
;
$uri
=
'https://github.com/api/v2/xml/user/show/nategood'
;
$request
=
Request
::
get
(
$uri
)->
send
();
echo
"{$request->body->name} joined GitHub on "
.
date
(
'M jS'
,
strtotime
(
$request
->
body
->{
'created-at'
}))
.
"
\n
"
;
Event Timeline
Log In to Comment