Skip to content

获取用户信息API 🧑‍💻

简介

本API允许用户通过token获取用户信息。📜

接口信息

  • URL/GetUserInfo
  • 方法POST
  • 认证token 🔑

请求参数

参数名说明必填数据类型范围/示例
token在登录的时候返回的Token。string-

请求示例

python
import requests

def NetWorkLink(link, data):
    headers = {"Content-Type": "application/json"}
    try:
        response = requests.post(f"https://api.stellarfrp.top/{link}", json=data, headers=headers)
        return response
    except Exception as e:
        print(e)
        return e

token = "示例token"
data = {"token": token}
response = NetWorkLink("GetUserInfo", data)
print(response.json())

皖ICP备2024033748号-6