Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function koneksiaccurate()
- {
- $dataMeta = $this->db->get_where('app_meta', array('meta_id' => 1))->row();
- $accessToken = $this->gettoken();
- $IDAccurate = $dataMeta->meta_id_accurate;
- $header = array(
- "Authorization: Basic " . $accessToken,
- );
- $url = "https://account.accurate.id/api/open-db.do?id=" . $IDAccurate;
- $opts = array("http" => array(
- "method" => "GET",
- "header" => $header,
- "ignore_errors" => true,
- ),
- );
- $context = stream_context_create($opts);
- $response = file_get_contents($url, false, $context);
- print_r($response);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement