Login
Sign in with your email and receive the access token used by every other endpoint.
POSThttps://www.mushroomproxies.com/api/SysLogin/Login
Auth: None
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| JSON body | string | Yes | Email address of the account.you@example.com | |
| appSecret | JSON body | string | Yes | Application secret that identifies this site. Copy it from the developer API page in the console.YOUR_APP_SECRET |
| loginType | JSON body | enum | Yes | pwd for password login, code for email code login.pwd |
| passWord | JSON body | string | No | Required when loginType is pwd.YOUR_PASSWORD |
| verifyCode | JSON body | string | No | Required when loginType is code.123456 |
Example request
curl -X POST "https://www.mushroomproxies.com/api/SysLogin/Login" \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com","appSecret":"YOUR_APP_SECRET","loginType":"pwd","passWord":"YOUR_PASSWORD"}'const response = await fetch("https://www.mushroomproxies.com/api/SysLogin/Login", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"email": "you@example.com",
"appSecret": "YOUR_APP_SECRET",
"loginType": "pwd",
"passWord": "YOUR_PASSWORD"
}),
});
console.log(await response.json());import requests
response = requests.post(
"https://www.mushroomproxies.com/api/SysLogin/Login",
headers={
"Content-Type": "application/json"
},
json={
"email": "you@example.com",
"appSecret": "YOUR_APP_SECRET",
"loginType": "pwd",
"passWord": "YOUR_PASSWORD"
},
)
print(response.json())Example response
{
"code": 200,
"message": "Success",
"body": {
"id": 1024,
"name": "developer",
"token": "YOUR_TOKEN"
}
}Shortened. A real response can carry more fields.