$token="WkltdFJKU1FHNTk1WFVQTlZtQlBmZGlmdUprdXkyVjFrMEZUREthQU1JVi9IdTRTZU04ek1TWmRXTS9HRkpyZWVZSHBDKzJQdWVHcklpU2hUK2Q2S3JnRWhHV1ZCRm8zcVlCdDYrMytzNDhBUE50R3RzVC9ZYWRYUnN5aWZpL01UeHhzVVVlVDh3dk1FRTU4TWRpdVZYVHd2NUVYMHdaMUM4SDZGL0xqWVl4aGRtL2hRWTJBdkxJVXFkZkhRMzFj"; $header= array("Authorization: Bearer ".$token ); $query=http_build_query( array("page"=>'1') ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://bukaolshop.net/api/v1/transaksi/list?".$query); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $hasil = curl_exec($ch); curl_close ($ch); echo $hasil;