Skip to content

Commit

Permalink
version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alnazer committed Nov 19, 2021
1 parent 3c13942 commit 2562e2a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,36 @@ public function response($error_code = null, $encrp = null)
$this->error = $response->get_error_message();
}
return json_decode($response_body);

/*
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $this->result_url,
CURLOPT_ENCODING => "",
CURLOPT_FOLLOWLOCATION => 1,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_HTTPHEADER => array(
'Authorization: Basic ' .base64_encode($this->client_id. ":" . $this->client_secret),
"Content-Type: application/json",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$this->error = curl_error($curl);
curl_close($curl);
if ($response) {
if($response){
$result = json_decode($response);
}
}
return $result;*/
}

/**
Expand Down

0 comments on commit 2562e2a

Please sign in to comment.