Skip to content

Latest commit

 

History

History
63 lines (50 loc) · 3.17 KB

File metadata and controls

63 lines (50 loc) · 3.17 KB

登录

登录编程猫社区
/tiger/v3/web/accounts/login POST

POST 请求参数

key value type
pid 平台 ID(查看详情 string 必须
identity 手机号/用户名/邮箱 string 必须
password 密码 string 必须

pid

可在编程猫官网 JS 中获得,以下值中任意一个都是合法的:

platform value
Kitten, Kitten4 OqMVXvXp
Kitten·N YaxgtUTQ
turtle 23AVXalo
wood n6kwoCSe
通天塔 cdRPMRe4
源码精灵 zxKuFvkJ
社区 65edCTyg
BOX3 ANNRvHZT
BOX2 EpyqlRET
CoCo 7KeVbBdw
MakerIDE iZvfI6oa
ScratchScience q2UHWZx5

可能是被编程猫官方用于记录登录时所在的平台,所以我们建议使用社区对应的 pid

返回内容

key value type
user_info 用户信息(查看详情 JSON
auth 认证(查看详情 JSON

user_info

key value type
id ID int
nickname 昵称 string
avatar_url 头像链接 string
fullname 真实姓名 string
sex 性别(0 为女,1 为男) int
birthday 生日时间戳 int
qq QQ 号码 string
description 自我描述 string

auth

key value type
token token string
email 邮箱地址 string
phone_number 手机号(格式:123****4567) string
has_password 是否设置密码 bool
is_weak_password 是否为弱密码 int