Pony.fm/app/library/Poniverse/httpful/examples/github.php

9 lines
307 B
PHP
Raw Normal View History

2013-09-01 04:59:12 +02:00
<?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";