Global
API
GET /getuserdomain.aspx
Description
Get a user's primary domain.
Parameters
Name | Description | Required |
---|---|---|
useremail | The e-mail address of the user | yes |
Example:
- request
GET https://global.rushfiles.com/getuserdomain.aspx?useremail=info@ruhshfiles.com
- response text/HTML
info@rushfiles.com,rushfiles.com
GET /login2.aspx
Description
Used in /api/clientgateway#login2.aspx
Parameters
Name | Description | Required |
---|---|---|
devicename | The name of the device to be created, when deviceid is not provided. | yes (if deviceid not specified) |
deviceid | The id of the device where the user is logging in. | yes (if devicename not specified) |
useremail | User's e-mail address. | yes |
password2 | User's password in Base64 encoding with UTF-8. | yes |
password | User password. | no |
Ad | Active Directory token. | no |
resellerid | no | |
deviceip | The ip of the device where the user is logging in. | no |
devicetype | "Pc", "AndroidPhone", "AndroidTable", "Ipad", "IpadMine", "Iphone", "WindowsPhone", "WindowsTablet", "Mac", "Unknown" | no |
devicegeo | JSON with metadata about location, e.g.: https://ipstack.com/ | no |
devicelat | no | |
devicelon | no | |
domain | The DomainId from the Domain.Config file. | no |
Example
- response JSON
{
"PrimaryUserDomain": {
"Domain": {
"DomainId": "8eee1e4d-acb5-4a82-ae0b-14d62d797563",
"Url": "rushfiles.com",
"DomainName": "rushfiles",
"ResellerId": "8D8D0114-00F3-4820-AE2F-9F2AB73C3C2B",
"DataSetup": 0
},
"UserDomainToken": "..."
},
"Wipe": false,
"ErrorCode": "U100",
"Validated": 4,
"User": {...},
"Reseller": {...},
"UserDomains": [...],
"DeviceId": "cdd9902b6c5245599bf89b1fd320532d",
"ConfirmKey": null,
"UserNotification": {
"NotificationType": 0,
"Url": ""
}
}
Error codes
- ErrorCode U103 when user doesn't have a primary domain.
- ErrorCode U105 when the user's primary domain id doesn't match the domain from the request
- ErrorCode U107 when the device is not validated