The existing API to generate aiesec.net email fails sometimes due to timeout, duplicate username, etc.,
so, to tackle this issue, we have added a new API to check if the username given by the user is available on google. Based on this result the email generation can be carried by the
generateEmail API.
API to check the username exists:
Argument: username
Structure:
validateAiesecEmailUsername(username: "aisecemail"){
aiesec_email,
is_valid
}
Response:
"validateAiesecEmailUsername": {
"aiesec_email": "aisecemail@aiesec.net",
"is_valid": true
}
API to generate aiesec.net email:
Argument: username
Structure:
generateEmail(username: "aisecemail")
Response:
{
"data": {
"generateEmail": "Request has been queued and will be sent to the email address"
}
}