Certified Log Send Email

Certified Log Send Email is used to send the Driver’s Certified Log(s) to a specific email address. The API accepts a plain HTTP request with parameters specifying which PDF(s) to be retrieved from the server, or a multipart request with parameters and the PDF(s) to be sent to the email address specified. All parameters are required in order to construct the email subject and body.

Send by HTTP request

API PATH: /api/v2/certifiedLogSendEmail
METHOD: POST
PARAMETERS: user-id – Retrieves the Certified Log of the user specified
log-date
 Retrieves the Certified Log from the server based on the date specified, which is also used on the email subject. Supports comma-separated values in order to include more than one Certified Log
email-address  Specifies the email address to which the certified log PDF(s) will be sent to
app-name  Specifies the name of the app sending the PDF(s) which will be used on the email subject
QUERY STRING EXAMPLES: Retrieves the specified user’s Certified Log for the January 8, 2018 and sends it to adminuser@mail.com: api/v2/certifiedLogSendEmail?user-id=1322500&email-address=adminuser@mail.com&log-date=2018-01-08&app-name=AppName
RESPONSE:
Certified log was emailed successfully

Send by multipart HTTP request

API PATH: /api/v2/certifiedLogSendEmail
METHOD: POST
PARAMETERS user-id – Retrieves the Certified Log of the user specified
log-date 
 Used on the email subject. Supports comma-separated values in order to include more than one Certified Log
email-address  Specifies the email address to which the Certified Log PDF(s) will be sent
app-name  Specifies the name of the app sending the PDF(s) which will be used on the email subject
QUERY STRING EXAMPLES: Reads from the multipart request and sends the PDF file(s) to the specified email address: certifiedLogSendEmail?user-id=1322500&email-address=adminuser@mail.com&log-date=2018-01-08&app-name=AppName
EXAMPLE REQUEST:

To send a Certified Log through a multipart request, it must have a PDF file(s).  Multiple PDF files are supported as long as they have different values for the “name” field.

Header

Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468
User-Agent: Fiddler
Authorization: Basic [base64_Credentials]
Host: eld.azuga.com

Body

---------------------------acebdf13572468
 Content-Disposition: form-data; name="file"; filename="CertifiedLog.pdf"
 Content-Type: application/pdf

 <@INCLUDE *C:\Users\User\Desktop\CertifiedLog.pdf*@>
 ---------------------------acebdf13572468--
 RESPONSE:
Certified log was emailed successfully