from common.send_request import SendRequests # 用户登出 t = SendRequests(method="post", uri="/pv1/user/logout", token="Zn1eXITnmwJ11iRSTMOE0iC_qTaTGRUu", is_sign=True) t.send_request()
from common.send_request import SendRequests params = { "language": "zh", } # 发送用户激活邮件 t = SendRequests(method="post", uri="/v1/user/send-act-user-email", param=params, token="peDBy1fmkSGG-94UrSpCxirSlEJ-8iLD", is_sign=True) t.send_request()
from common.send_request import SendRequests from common import md5_encryption params = { "language": "sds", # "token": "t7dsNJG22DpQ_RJhwPvpyGugJFJMRBIx" } # 用户注销发送邮件 ps:邮箱是不区分大小写的 t = SendRequests(method="post", uri="/v1/user/logoff-email", param=params, token="t7dsNJG22DpQ_RJhwPvpyGugJFJMRBIx", is_sign=True) t.send_request()
from common.send_request import SendRequests params = { "uid": "163946", "pageSize": 10, "pageIndex": 1, } # 获取体能训练数据详情 t = SendRequests(method="post", uri="/v1/healthy/train-record-list", param=params, token="cHg3J16GhZNLGwVa2f8J80Jrmf4qd3hO", is_sign=True) t.send_request()
from common.send_request import SendRequests params = { "fwId": "437", "deviceName": "IW1", "deviceType": "IW1", "fwVer": 198, # 要升级版本 "fwMode": "2", "mac": "C7:48:16:BC:20:09", "status": "4", # 1 升级成功,2下载失败,3校验失败,4升级失败 5其他失败情况,6下载成功 "remark": "测试", "errorCode": "150", "phoneSys": "13.5", "phoneMode": "SM-M3070", "preVer": 110, # 当前版本 "failSche": "50", } # OTA升级结果上报 t = SendRequests(method="post", uri="/v1/ota/update-status", param=params, token="", is_sign=True) t.send_request()
from common.send_request import SendRequests from common import md5_encryption params = { "oldPassword": md5_encryption("a123456789"), "newPassword": md5_encryption("a123456789") } # 用户修改密码 t = SendRequests(method="post", uri="/pv1/user/change-password", param=params, token="gYLIN0bRz4VodNzpVjgUCXMmXo7K4wHA", is_sign=True) t.send_request()
from common.send_request import SendRequests # 用户登出 t = SendRequests(method="post", uri="/v1/user/logout", token="yjT-koCW3moRSCy0wEMocSgGsVLMCynV", is_sign=True) t.send_request()
from common.send_request import SendRequests # params = {"age": 1, "appVersionCode": 165, "deviceName": "ID205L", "deviceType": "ID205L", "firmwareId": 314, # "fwMode": "1", "gender": 1, "mac": "D0:78:F3:71:D4:D4", "mobileBrand": "Android", "os": 1, # "phoneModel": "Android", "version": "16"} params = { "fwId": 53, "deviceName": "IW2", "deviceType": "IW2", "fwVer": 123, "fwMode": 2, "mac": "58:4A:83:80:DC:93", "appLan": "fr", } # OTA升级检查 t = SendRequests(method="post", uri="/v1/ota/ota-version", param=params, token="", is_sign=True) t.send_request()
from faker import Faker from common.send_request import SendRequests from common import md5_encryption, create_uuid faker = Faker("zh_CN") params = { "email": "*****@*****.**".lower(), "language": "it", } # 忘记密码发送邮件 t = SendRequests(method="post", uri="/v1/user/password-reset-email", param=params, token="", is_sign=True) t.send_request()
from common.send_request import SendRequests params = { "uid": 163946, "start": "20100101", "end": "20201111", } # 获取活动数据列表 t = SendRequests(method="post", uri="/v1/healthy/activity-list", param=params, token="usLYmfk0dwWzI_VOvqptusfrCgSfdZXy", is_sign=True) t.send_request()
from common.send_request import SendRequests from common import md5_encryption, create_uuid, create_mac params = { "deviceType": "ID205S", "deviceInfo": " ", "uid": 164845, "mac": create_mac(), } # 用户绑定设备 t = SendRequests(method="post", uri="/v1/user/up-device", param=params, token="dQBXU4jP89VkTqpEEu1ilBHVryx4k4io", is_sign=True) t.send_request()
from faker import Faker from common.send_request import SendRequests faker = Faker("zh_CN") params = { "name": faker.name(), # 非必填 "birthday": "2000-10-18", # 必填 限制不得小于13岁 "gender": 0, # 非必填 ps:0:保密 1:男 2:女 "height": 50.1, # 必填 "weight": 50.1, # 必填 } # 修改用户信息 t = SendRequests(method="post", uri="/v1/user/userinfo", param=params, token="qpigPZa6EJMPoXrJHQ_EEGT_nCXCkSOh", is_sign=True) t.send_request()
from common.send_request import SendRequests # 获取activename字段不为空的接口 t = SendRequests(method="post", uri="/pv1/user/user-act", token="", is_sign=True) t.send_request()
from faker import Faker from common.send_request import SendRequests faker = Faker("zh_CN") params = { "id": 165153, "name": faker.name(), # 非必填 "birthday": "2000-10-18", # 必填 限制不得小于13岁 "gender": 0, # 非必填 ps:0:保密 1:男 2:女 "height": 50.1, # 必填 "weight": 50.1, # 必填 } # 修改用户信息 t = SendRequests(method="post", uri="/pv1/user/userinfo", param=params, token="-yGYazHpT4UvUJ0eLV6GSIHQ7YYdD1CZ", is_sign=True) t.send_request()
from faker import Faker from common.send_request import SendRequests from common import md5_encryption, create_uuid faker = Faker("zh_CN") params = {"uid": 164845} # 取消用户注销 t = SendRequests(method="post", uri="/v1/user/logoff-cancel", param=params, token="", is_sign=True) t.send_request()
from common.send_request import SendRequests params = { "name": "", "email": "*****@*****.**", "isactive": "", # 状态。1为激活,0为未激活 "state": "", # 状态:1正常,2:注销 0是默认正常 "created": "", "area": "", "source": "", "subscribe": "", "activename": "", "perPage": "", "page": "", } # 获取用户列表 t = SendRequests(method="post", uri="/pv1/user/user-list", param=params, token="", is_sign=True) t.send_request()
from faker import Faker from common.send_request import SendRequests faker = Faker("zh_CN") params = { "email": "*****@*****.**", # faker.pystr() + faker.email(), } # 判断邮箱是否注册 t = SendRequests(method="post", uri="/v1/user/is-registered", param=params, token="", is_sign=True) t.send_request()
from common.send_request import SendRequests # 获取用户信息 t = SendRequests(method="post", uri="/v1/user/get-user-info", token="gG_s2YrEFjQsN2SQzF2UxIRGKrMRPIwY", is_sign=True) t.send_request()
from common.send_request import SendRequests params = { "uid": 165424, "data": [ { "date": "20200909", "data": "eJxNj71uwzAMhN+FswfZiVqZW1B58Ng0u0FYqiPElg39BAmCvHtpd0i2w33k8fiAnJ0BhG+Tm+zaCxSQbEytZo91T+McnI2A5UcBE926c+iuNGYLWNcFDEtsfbKBLUDB87P/dcPpvjAvCzCdp4kltLoS8mcN35AUDM+WQjpSsuYVIXmHHd4oZb2vlFT7nRAC1qiJevZ1hYcGlcKDwuYLtd7Yf+zrTEx22QrRdXirrBQPu5jI93bDJgdKbvbrg+rz+QfpHlFy" } ], } # 上传活动数据 ps:用户必须是激活状态 t = SendRequests(method="post", uri="/v1/healthy/activity-add", param=params, token="NvND-I_G2ykujqYmGW4zZwLSKp9icAo7", is_sign=True) t.send_request()
from common.send_request import SendRequests from common import md5_encryption params = { "password": md5_encryption("a123456789"), } # 校验密码是否pctoken对应的用户 t = SendRequests(method="post", uri="/pv1/user/password-verify", param=params, token="Zn1eXITnmwJ11iRSTMOE0iC_qTaTGRUu", is_sign=True) t.send_request()
"date": "20200902", "data": "eJxNj71uwzAMhN+FswfZiVqZW1B58Ng0u0FYqiPElg39BAmCvHtpd0i2w33k8fiAnJ0BhG+Tm+zaCxSQbEytZo91T+McnI2A5UcBE926c+iuNGYLWNcFDEtsfbKBLUDB87P/dcPpvjAvCzCdp4kltLoS8mcN35AUDM+WQjpSsuYVIXmHHd4oZb2vlFT7nRAC1qiJevZ1hYcGlcKDwuYLtd7Yf+zrTEx22QrRdXirrBQPu5jI93bDJgdKbvbrg+rz+QfpHlFy", "tid": "tid002", "detail": "eJyVkkFrhDAQhf9LznOIWZNNcluqB6GX0mNZJKgsodUVjYVF/O+diFvElK0LQ8i8JMP3no7k0vaZq2qixwlIZ1y1dL/7nuiPIwURgcKioJhfpfItrjIGGc3rEaSci4Hk87XDLHIv4t4XigKUmgvvxNiegZR5Y+qKaJIljPJ34hV3azdKbQoUEqZPqZZSn6ROX3SS4JmzJZ68lUM62OyToBHXGdvY5uINvNreoYfxmRFACvN17W5EcyCmcPa7yp31jILu5MX4sI+4ipnkMj5QSlHuXdXmxXVoEMlPQjbTFHiTTjAGpw+AVy//AgqZ1zyCsoUn8B06uScxE94bsXWoxP6JAVzgO8x3VxKecBPME5/8X4rHoXJFlwhW/87W/HSefgD4qfgE" }, { "date": "20200903", "data": "eJxNj71uwzAMhN+FswfZiVqZW1B58Ng0u0FYqiPElg39BAmCvHtpd0i2w33k8fiAnJ0BhG+Tm+zaCxSQbEytZo91T+McnI2A5UcBE926c+iuNGYLWNcFDEtsfbKBLUDB87P/dcPpvjAvCzCdp4kltLoS8mcN35AUDM+WQjpSsuYVIXmHHd4oZb2vlFT7nRAC1qiJevZ1hYcGlcKDwuYLtd7Yf+zrTEx22QrRdXirrBQPu5jI93bDJgdKbvbrg+rz+QfpHlFy", "tid": "tid003", "detail": "eJyVkkFrhDAQhf9LznOIWZNNcluqB6GX0mNZJKgsodUVjYVF/O+diFvElK0LQ8i8JMP3no7k0vaZq2qixwlIZ1y1dL/7nuiPIwURgcKioJhfpfItrjIGGc3rEaSci4Hk87XDLHIv4t4XigKUmgvvxNiegZR5Y+qKaJIljPJ34hV3azdKbQoUEqZPqZZSn6ROX3SS4JmzJZ68lUM62OyToBHXGdvY5uINvNreoYfxmRFACvN17W5EcyCmcPa7yp31jILu5MX4sI+4ipnkMj5QSlHuXdXmxXVoEMlPQjbTFHiTTjAGpw+AVy//AgqZ1zyCsoUn8B06uScxE94bsXWoxP6JAVzgO8x3VxKecBPME5/8X4rHoXJFlwhW/87W/HSefgD4qfgE" }, ], } # 体能训练数据上传 t = SendRequests(method="post", uri="/v1/healthy/train-record-add", param=params, token="OZFEfyhRXeCwaieMaXEbAi_ttLDHwB8Y", is_sign=True) t.send_request()