Skip to content

Instantly share code, notes, and snippets.

@pelicanben
Created September 6, 2013 18:17
Show Gist options
  • Select an option

  • Save pelicanben/6467761 to your computer and use it in GitHub Desktop.

Select an option

Save pelicanben/6467761 to your computer and use it in GitHub Desktop.
[php]
$key = "319eaa43f768d57d";
$options = "output-format=crossway-xml-1.0&include-xml-declaration=true";
$url = "http://www.esvapi.org/v2/rest/readingPlanInfo?key=$key&reading-plan=bcp&output-format=crossway-xml-1.0";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
var response = $response;
[/php]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment