Backend for ALTR Extension
- 0 = successful
- 1000 = incorrect UID (ie UID does not own email specified)
- 2000 = non-existent email
- 4000 = no more emails (domains have ran out)
- 5000 = alias limit reached for user
jQuery.ajax({
url: 'http://URL',
type: 'POST',
data: JSON.stringify({
field1: 'data1',
field2: 'data2',
}),
contentType: 'application/json',
beforeSend: function(x) {
if (x && x.overrideMimeType) {
x.overrideMimeType('application/json;charset=UTF-8')
}
},
success: function(result) {
var FIELD = result.FIELD
},
})
{
"youremail": "example@example.com",
"uid": "AFJNJSA70ASFKSAFD80",
"name": "google"
}
{
"email": "google12348@altr1.cf",
"res": 0
}
{
"youremail": "example@example.com",
"email": "google12348@altr1.cf",
"uid": "AFJNJSA70ASFKSAFD80"
}
{
"res": 0
}
{
"youremail": "example@example.com",
"email": "google12348@altr1.cf",
"uid": "AFJNJSA70ASFKSAFD80"
}
{
"res": 0
}
{
"youremail": "example@example.com",
"email": "google12348@altr1.cf",
"uid": "AFJNJSA70ASFKSAFD80"
}
{
"status": "on",
"res": 0
}
{
"youremail": "example@example.com",
"uid": "AFJNJSA70ASFKSAFD80"
}
{
"emails": {"google12348@altr1.cf":"off", "facebook12431@altr1.cf":"on"},
"res": 0
}
{
"email": "google1234@altr1.cf",
"uid": "AFJNJSA70ASFKSAFD80"
}
{
"res": 0
}