摩拜微信小程序API分析

mobike


获取附近车辆

https://mwx.mobike.com/mobike-api/rent/nearbyBikesInfo.do?longitude={longitude}&latitude={latitude}


解锁车辆

https://mwx.mobike.com/mobike-api/rentmgr/wxunlockBike.do

Method: POST
Data:

paramsTypeDescription
bikecodeStringhttp://www.mobike.com/download/app.html?b={BikeID}_1
useridintMobike User ID
timestampintnew Date()
epdataStringmd5(`${userid}#${timestamp}`).substring(2, 10)
wxcodeStringWeChat SSO code wx.login()

添加新评论