Skip to content

Instantly share code, notes, and snippets.

@pateketrueke
Created August 9, 2012 23:13
Show Gist options
  • Save pateketrueke/3308927 to your computer and use it in GitHub Desktop.
Save pateketrueke/3308927 to your computer and use it in GitHub Desktop.
Take screenshot using WP Remote API (fake)
<?php
$url = urlencode('http://wordpress.org');
$width = 200;
$request = "http://s.wordpress.com/mshots/v1/$url?w=$width";
echo "Link: $request";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment