Created
April 9, 2017 21:40
-
-
Save viniciusss/576e4bd8021f6c8d4cfbdef1ebbb5e32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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