GoogleService module
- Source:
Members
(inner, constant) firebaseFunctions
- Source:
(inner, constant) nodemailer
- Source:
(inner, constant) OAuth2
- Source:
Methods
(inner) get_html_message(mailContent) → {*}
function called which returns the content of the message in html format.
Parameters:
Name | Type | Description |
---|---|---|
mailContent |
string | mailContent is the content of the mail sent. |
- Source:
Returns:
return string message in html format.
- Type
- *
(inner) RegistedRequiredGoogle(uid, res)
Saves the data from google service to the user in the database.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | user id |
res |
Object | Express response object |
- Source:
(inner) send_mail(subject, mailContent, uid)
UNUSED PARAMETER: subject
Sends an email using Gmail with Nodemailer. It first reads in the Firebase database. Then it uses
an OAuth2 library to get an access token from Google. It configures the content of the email and uses the
Nodemailer library to send the email.
Parameters:
Name | Type | Description |
---|---|---|
subject |
* | Unnecessary but mandatory for areaLoop. |
mailContent |
* | Content of the mail |
uid |
* | The user's uid |
- Source: