Skip to content

Instantly share code, notes, and snippets.

@charlesj
Last active September 21, 2016 03:42
Show Gist options
  • Save charlesj/1c18286e1a3ad45be4d370b150762ee5 to your computer and use it in GitHub Desktop.
Save charlesj/1c18286e1a3ad45be4d370b150762ee5 to your computer and use it in GitHub Desktop.
<?php
$url = file_get_contents("http://inspirobot.me/api?generate=true");
header('Content-Type: application/json');
echo "{'text':'$url','response_type':'in_channel'}";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment