curl --request POST \
--url https://llm.ai-nebula.com/v3/auth/getToken \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"password": "<string>"
}
'{
"code": 200,
"msg": "操作成功",
"data": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
curl --request POST \
--url https://llm.ai-nebula.com/v3/auth/getToken \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"password": "<string>"
}
'{
"code": 200,
"msg": "操作成功",
"data": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
curl -X POST "https://llm.ai-nebula.com/v3/auth/getToken" \
-H "Content-Type: application/json" \
-d '{
"username": "your_username",
"password": "your_password"
}'
import requests
import json
url = "https://llm.ai-nebula.com/v3/auth/getToken"
headers = {
"Content-Type": "application/json"
}
data = {
"username": "your_username",
"password": "your_password"
}
response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.json())
{
"code": 200,
"msg": "操作成功",
"data": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}