Great, it always good to be reminded that you don't always need an heavyweight library for simple HTTP requests. But note that you probably want to use an HTTPS endpoint with proper security (see http://www.docnet.nu/tech-portal/2014/06/26/ssl-and-php-streams-part-1-you-are-doing-it-wrongtm/C0 for details) when sending an OAuth authorization token. Even if it just an example, security should not be left out.