Skip to content

Check the API, test the packet. #1

Description

@Desgard

login
请求方法
POST | GET http://gxapp.iydsj.com/api/v3/login
参数说明:
参数 类型 说明
Host: 字符串 gxapp.iydsj.com
Accept: 字符串 /
Authorization: 字符串 登录信息 格式为"Basic" +“username:password”的base64加密 +“=”
Proxy-Connection:字符串 keep-alive
osType: int 1为IOS 0为非IOS
appVersion: 字符串 版本信息 IOS为 1.2.0 安卓为1.2.1
Accept-Encoding: 字符串 编码方式 gzip, deflate
Accept-Language: 字符串 zh-Hans-CN;q=1
Content-Type: 字符串 application/x-www-form-urlencoded
DeviceId: 字符串 IOS的某个机器码?
CustomDeviceId: 字符串 同上
Content-Length: int 上传json的长度 login为0
User-Agent: 字符串 和设备信息相关=
Connection: 字符串 keep-alive

返回值:none


setDis
请求方法 POST http://gxapp.iydsj.com/api/v2/campus/XXX/get/1/distance/X XXX是一个三位数int,用途未知 X为设定的距离 IOS1.2.0版本为2-9
参数说明:
其余同login
相比多了一个uid 貌似是服务器上存数据的父亲文件夹名?
多了一个json 为当前的坐标,参考样例
Content-Length 为 上传的坐标json的长度


submit
请求方法:POST http://gxapp.iydsj.com/api/v2/users/XXXXX/running_records/add XXXXX为uid
参数说明:
和setDis一模一样 需要修改Content-Length为上传的json长度

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions