Pony.fm/app/library/Poniverse/httpful/examples/github.php
2013-08-31 21:59:12 -05:00

9 lines
No EOL
307 B
PHP

<?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";