[php] create id
Viewer
- <?php
- $requestbody = '{"agentid":"API68-02","account":"","password":"Aaaa1111"}';
- $signaturekey= 'b6041a16-2ab2-4e26-bf66-c63d387e0ff3';
- $hashdata = hash_hmac("sha256", $requestbody, $signaturekey, true);
- $hash = base64_encode($hashdata);
- $headerstring = 'hashkey: ' . $hash;
- $headers = [
- $headerstring
- ];
- $url = 'http://xespublicapi.eznet88.com/player/create/';
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $requestbody);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $response = curl_exec($ch);
- curl_close($ch);
- ?>
Editor
You can edit this paste and save as new:
File Description
- create id
- Paste Code
- 22 Oct-2020
- 605 Bytes
You can Share it: