Skip to content

Instantly share code, notes, and snippets.

@viniciusss
Created April 9, 2017 21:40
Show Gist options
  • Save viniciusss/576e4bd8021f6c8d4cfbdef1ebbb5e32 to your computer and use it in GitHub Desktop.
Save viniciusss/576e4bd8021f6c8d4cfbdef1ebbb5e32 to your computer and use it in GitHub Desktop.
<?php
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => 'https://api.github.com/repos/moveissimonetti/webpdv/issues?milestone=47',
CURLOPT_PROXY => 'http://192.168.111.70:3128',
CURLOPT_USERNAME => 'viniciusss',
CURLOPT_USERPWD => '',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERAGENT => 'Viniciusss asdoiajodai'
));
$issues = json_decode(curl_exec($ch), true);
var_dump(json_last_error_msg());
foreach($issues as $issue) {
printf('- #%d - %s - feito por @%s %s', $issue['number'], $issue['title'], $issue['assignee']['login'], PHP_EOL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment