Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data = array(
- "hidden" => "0",
- "sortDir" => "desc"
- );
- $curl = curl_init( "http://pw-phoenix.com/forum/api/index.php?/forums/topics/". $IntID . "&" . http_build_query($data) );
- curl_setopt_array( $curl, array(
- CURLOPT_RETURNTRANSFER => TRUE,
- CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
- CURLOPT_USERPWD => "---API KEY---",
- ) );
- $LstResponse = json_decode( curl_exec( $curl ) );
- return $LstResponse->results[0]->date;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement