乐心运动接口实现PHP版

乐心运动接口实现PHP版

最新乐心运动接口php版

主要分三步完成,第一步是登录,然后是提交修改步数,最后是绑定设备。乐心接口升级,只有绑定了设备才能同步到第三方等

#乐心

#小程序 森林能量宝

function http_post_json()

{

$jsonStr = array('loginName'=>$_POST['tel'], 'password'=>md5($_POST['psw']),//

'clientId'=>'8e844e28db7245eb81823132464835eb', 'roleType'=> 0, 'appType'=> 6);

$url = 'https://sports.lifesense.com/sessions_service/login?version=4.5&systemType=2';

$cookie_file='';

$ch = curl_init();

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($jsonStr));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

//curl_setopt($ch, CURLOPT_HEADER, 1);

curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);

curl_setopt($ch, CURLOPT_HTTPHEADER, array(

'Content-Type: application/json; charset=utf-8',

"User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; SM-G9500 Build/PPR1.180610.011)"

)

);

$res

相关资讯

姬松茸干的要泡多久(姬松茸泡了24小时还能吃吗)
365bet娱乐场网站

姬松茸干的要泡多久(姬松茸泡了24小时还能吃吗)

⌚ 08-20 👁️ 785
一进寺庙就害怕是什么原因
365防伪查询系统

一进寺庙就害怕是什么原因

⌚ 08-12 👁️ 5486
[世界杯]米克尔:我们付出了一切 结果不尽如人意
365防伪查询系统

[世界杯]米克尔:我们付出了一切 结果不尽如人意

⌚ 07-16 👁️ 417