Google scripts .gs-files for parsing information about order owners from the agregatoreat.ru and mailing them your offer.
-
Copy GoogleSheet example to your Google Drive
-
Open scripts. Set parameters in CONFIG.gs:
- authToken - token from your agregatoreat company account
- extSystem - nine digits from your agregatoreat company account
- fromEmailAddress - e-mail from which e-mails with your offer will be sent
- htmlTemplFileName - the name of the html-body file for your emails
- pdfFileName - pdf-attachment file name
NOTE: The last two files must be added to your Google Drive!
- Set triggers on functions renewUnprocessedOrders and renewUnprocessedEmails. You can read about the mechanism of the parser and mailer in the MAIN.gs