Created
February 16, 2015 18:58
-
-
Save anthonyadamski/c6f82e607c30744b2106 to your computer and use it in GitHub Desktop.
This file contains 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
foreach($arr['accounts'] as $val) | |
{ | |
$account_id = $val['account_id']; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_URL, 'https://api.appannie.com/v1.2/accounts/'.$account_id.'/sales?break_down=product&start_date=2015-01-01&end_date=2015-01-31'); | |
curl_setopt($ch, | |
CURLOPT_HTTPHEADER, | |
array('Content-Type: application/json', | |
'Authorization: Bearer 8a2d2958e05107d04ac4bb25687dfb2b56366de7')); | |
$run=curl_exec($ch); | |
curl_close($ch); | |
print_r (['product']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment