Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $data = array(
  2. "hidden" => "0",
  3. "sortDir" => "desc"
  4. );
  5.  
  6. $curl = curl_init( "http://pw-phoenix.com/forum/api/index.php?/forums/topics/". $IntID . "&" . http_build_query($data) );
  7. curl_setopt_array( $curl, array(
  8. CURLOPT_RETURNTRANSFER => TRUE,
  9. CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
  10. CURLOPT_USERPWD => "---API KEY---",
  11.  
  12. ) );
  13.  
  14. $LstResponse = json_decode( curl_exec( $curl ) );
  15. return $LstResponse->results[0]->date;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement