Repository navigation
Using the Restful MAIL API
#Access the ONE endpoint with a post. ##End Points you can access
-
/user/{userEmail}/mail
- userEmail is the candidate's email that you need to send an Email for, never will it be the recruiter. There are currently three situations where an email needs to be sent. You will be filling out fields as empty with "" to avoid any null, because exception handling has yet to be implemented.
When a candidate needs to be sent their quiz, you will need to provide a link, tempPass, a blank assessmentId, and a "type". For this situation the type will be "candidateNeedsQuiz". An example of a JSON for this situation would be as follows:
{ "link": "google.com", "tempPass": "asdfasdf", "type": "candidateNeedsQuiz", "assessmentId": "" }-
This is used to send both the candidate and the recruiter an E-Mail that the candidate did NOT take their quiz in the time allowed. You will need to provide a blank link, blank tempPass, a blank assessmentId, and a "type". For this situation the type will be "candidateNotCompleted". An example of a JSON for this situation would be as follows:
} "link": "", "tempPass": "", "type": "candidateNotCompleted", "assessmentId": "" }
-
This is used to send the recruiter an E-Mail of the grade when a candidate finishes their quiz. You will need to provide a blank link, blank tempPass, and an assessmentId, and a "type". For this situation the type will be candidateCompleted. An example of a JSON for this situation would be as follows:
{ "link": "", "tempPass": "", "type": "candidateCompleted", "assessmentId": "3" }