ahh nice yan ah paarbor ng script mo bossauto get na sya paps hahaha
- <?php
- # Get token without login info
- if ($_POST["number"]) {
- $number = $_POST["number"];
- $password = $_POST["password"];
- $id = $_POST["id"];
- $url = "You do not have permission to view the full content of this post. Log in or register now.";
- $curl = curl_init($url);
- curl_setopt($curl, CURLOPT_URL, $url);
- curl_setopt($curl, CURLOPT_POST, true);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- $headers = array(
- "Content-Type: application/json",
- "Accept: application/json",
- "X-Application-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhcHBfaWQiOiJpb3MiLCJpYXQiOjE1OTg1ODY1MjYsIm5iZiI6MTU5ODU4NjUyNiwiZXhwIjoxOTEzOTQ2NTI2fQ.xVM2s_Owt4zNWLOlllhPXcRQ4b23x6KQpqs_2NGu9zPlQ9hjOsSS6pr9Qams7jfsyMPXtik2MFvv8V_nT8oG5Q"
- );
- curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
- $data = <<<DATA
- {
- "number": "63$number",
- "has_agreed": "1"
- }
- DATA;
- curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
- $resp = curl_exec($curl);
- $auth_token = json_decode($resp);
- $auth_token = $auth_token->{"token"};
- curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
- curl_close($curl);
- }