Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.93 KB | None | 0 0
  1. curl --location --request POST 'http://sso-dev01.alt.altarix.ru/push/template' \
  2. --header 'Content-Type: application/json' \
  3. --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzeXN0ZW1Vc2VySWQiOiJlODU0YjczMS04MTFlLTQzZWQtYjE3Ni0zNTY3OGI5OGJhMWQiLCJjdXN0b21lclN5c3RlbUlkIjoiZjE0ZjViODQtMTM5ZS00MzFjLTg0MzktMjdiODE1ZjU5ZmQ0IiwiaWF0IjoxNTgxNjcyNDIyLCJleHAiOjE2MzM1MTI0MjJ9.KBVm3yVrXPffijo-ziwILk9wCLK8MoWffIeh4pOtE4g' \
  4. --data-raw '{
  5. "messageType": 2,
  6. "templateEngine": 0,
  7. "title": "Портал \"Наш город: Челябинск\". Сообщение № <%=application.applicationNumber %>(T)",
  8. "code": "email_test",
  9. "body": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<html>\n<head>\n <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title></title>\n <link href=\"https://fonts.googleapis.com/css?family=Roboto&display=swap\" rel=\"stylesheet\" type=\"text/css\">\n</head>\n<body style=\"margin: 0; padding: 0; font-family: '\''Roboto'\'', Arial, Helvetica, sans-serif; background: #fff;\">\n <div style=\"width: 600px; max-width: 600px; margin: 0 auto; background: #fff;\">\n <!-- HEADER -->\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"margin:0; padding:0; background-color: #fff;\">\n <tr>\n <td width=\"600\" height=\"280\" style=\"width: 600px; height: 280px;\">\n <img src=\"http://ourcity.altarix.ru/email/image/9a4e31abaf9c7f9d9d0dcbd4eb39c7f7.png\" alt=\"Наш Город\" />\n </td>\n </tr>\n </table>\n <!-- CONTENT -->\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"margin:0; padding:0; background-color: #fff;\">\n <tr>\n <td height=\"48\" style=\"height: 48px;\"></td>\n </tr>\n <tr>\n <td width=\"16\" style=\"width: 16px;\"></td>\n <td style=\"font-size: 20px; line-height: 23px; font-weight: bold; color: #4B525E\">\n Уведомление об изменении Сообщения № <%=application.applicationNumber %>\n </td>\n <td width=\"16\" style=\"width: 16px;\"></td>\n </tr>\n <tr>\n <td height=\"24\" style=\"height: 24px;\"></td>\n </tr>\n <tr>\n <td width=\"16\" style=\"width: 16px;\"></td>\n <td style=\"font-size: 16px; line-height: 19px; color: #4B525E\">\n Здравствуйте, уважаемый(ая) <%=userInfo.firstName %> <%=userInfo.lastName %>.\n </td>\n <td width=\"16\" style=\"width: 16px;\"></td>\n </tr>\n <tr>\n <td height=\"24\" style=\"height: 24px;\"></td>\n </tr>\n <tr>\n <td width=\"16\" style=\"width: 16px;\"></td>\n <td style=\"font-size: 16px; line-height: 19px; color: #4B525E\">\n Сообщение № <%=application.applicationNumber %> передано на рассмотрение модератору Портала.\n </td>\n <td width=\"16\" style=\"width: 16px;\"></td>\n </tr>\n <tr>\n <td height=\"24\" style=\"height: 24px;\"></td>\n </tr>\n <tr>\n <td width=\"16\" style=\"width: 16px;\"></td>\n <td style=\"font-size: 16px; line-height: 19px; color: #4B525E\">\n С правилами модерации можно ознакомиться на <a href=\"http://ourcity.altarix.ru/information/moderation-rules\" style=\"color: #4B525E\">Портале «Наш город: Челябинск»</a>.\n </td>\n <td width=\"16\" style=\"width: 16px;\"></td>\n </tr>\n <tr>\n <td height=\"48\" style=\"height: 48px;\"></td>\n </tr>\n </table>\n <!-- FOOTER -->\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"margin:0; padding:0; background-color: #fff; border-top: 1px solid rgba(0, 0, 0, 0.12);\">\n <tr>\n <td height=\"25\" style=\"height: 25px;\"></td>\n </tr>\n <tr>\n <td width=\"16\" style=\"width: 16px;\"></td>\n <td>\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"margin:0; padding:0;\">\n <tr>\n <td style=\"font-size: 11px; line-height: 13px; color: #4B525E\">Не хотите получать подобные сообщения? <a href=\"#\" style=\"color: #4B525E\">Отпишитесь</a></td>\n </tr>\n <tr>\n <td style=\"font-size: 11px; line-height: 13px; color: #4B525E\">Наш Город Челябинск</td>\n </tr>\n </table>\n </td>\n <td width=\"109\" style=\"width: 109px;\">\n <a href=\"#\">\n <img src=\"http://ourcity.altarix.ru/email/image/44148320c86812bc74074cd7f4da6612.png\" alt=\"App Store\" />\n </a>\n </td>\n <td width=\"8\" style=\"width: 8px;\"></td>\n <td width=\"108\" style=\"width: 108px;\">\n <a href=\"#\">\n <img src=\"http://ourcity.altarix.ru/email/image/103538412eef1f42050d15af7d193826e.png\" alt=\"Google Play\" />\n </a>\n </td>\n <td width=\"16\" style=\"width: 16px;\"></td>\n </tr>\n <tr>\n <td height=\"25\" style=\"height: 25px;\"></td>\n </tr>\n <tr>\n <td colspan=\"6\" align=\"center\" style=\"font-size: 11px; line-height: 13px; color: #4B525E; text-align: center;\">Это сообщение отправлено автоматически. </td>\n </tr>\n <tr>\n <td height=\"25\" style=\"height: 25px;\"></td>\n </tr>\n </table>\n </div>\n</body>\n</html>",
  10. "validationSchema": {
  11. "type": "object",
  12. "required": [],
  13. "properties": {
  14. "application": {
  15. "type": "object"
  16. },
  17. "userInfo": {
  18. "type": "object"
  19. }
  20. }
  21. }
  22. }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement