12345678910111213141516171819202122 |
- <?php
- class sapi
- {
- private $url = 'https://sapi.ads.oppomobile.com/v1/clue/sendData';
- private $ownerId = '1000178033';
- private $API_ID = 'cbbf0a225cd44cba81b9b6e093ded0a2';
- private $APIKEY = '0d10124566ff41c393c0c418a3ae147a';
- private function create_token()
- {
- $time = time();
- $sign = sha1($this->API_ID .$this->APIKEY . $time);
- return base64_encode($this->ownerId. '.'. $this->API_ID. ',' .$time. ',' . $sign);
- }
- public function send($body)
- {
- $params['pageId'] = $body['channel_code'];
- $params['ip'] = $_SERVER['REMOTE_ADDR'];
- }
- }
|