Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. $ch=curl_init();
  2. $url='https://auth.flurry.com/auth/v1/session';
  3. curl_setopt($ch, CURLOPT_URL, $url);
  4. $headers=array('Content-Type:application/vnd.api+json');
  5. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  6. curl_setopt($ch, CURLOPT_POST, true);
  7. $post='{"data":{"type":"session","id":"bc150468-5bd8-4914-b00a-0ee496a2aa98","attributes":{"scopes":"","email":"email","password":"password","remember":"false"}}}';
  8. curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  10. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  11. $data = curl_exec($ch) or exit(curl_error($ch));
  12. print_r($data);
  13.  
  14. curl_setopt($ch, CURLOPT_URL, 'https://dev.flurry.com/entitiesSummaryJson.do?appSpotOrAppCircleData=0&intervalCut=customInterval2016_07_16-2016_07_16&entityType=adSpace&zoom=d&json=true&metrics=impressions,clicks,ctr,applicationAdConversions,videoCompletions,erpm,revenue,requests,fillrate,ds_fillrate');
  15. $response=curl_exec($ch) or exit(curl_error($ch));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement