ãã®è¨äºã¯ãSendGrid Advent Calendar 2016ãã®21æ¥ç®ã®è¨äºã§ãã
ããã«ã¡ã¯ãCS課ã®é¦¬å ´ã§ãã
ååãã¡ã¼ã«é
ä¿¡ã·ã¹ãã ãSendGridã«ç§»è¡ãã¦ã¿ããã¨ããè¨äºãå
¬éãã¾ããã
ååã¯ãã¼ã±ãã£ã³ã°ã¡ã¼ã«æ©è½ãå©ç¨ãã¦ããã©ã¦ã¶ä¸ããã¡ã¼ã«ãéä¿¡ãã¦ã¿ãã®ã§ãä»åã¯Web APIãå©ç¨ãã¦ã¡ã¼ã«éä¿¡ã試ãã¦ã¿ããã¨æãã¾ãã
Web APIãå©ç¨ããå ´åããå種APIãæã£ã¦ããã®ã§ã¡ã¼ã«éä¿¡ã¯ãã¡ãããã¡ã¼ã«ã®ç®¡çããããªãäºãã§ãã¾ãã
ã¢ããªã±ã¼ã·ã§ã³ã®ä¸é¨ã¨ãã¦ã®å©ç¨ãç°¡åã«ã§ããã¨ããäºãªã®ã§ããµã¼ãã¼ã¯ã¼ã¯ã¹ã§å©ç¨ãã¦ããQuestetraã¨é£æºãã¦ã¿ããã¨æãã¾ãã
Questetraã®å©ç¨ã«ã¤ãã¦
ãµã¼ãã¼ã¯ã¼ã¯ã¹ã§ã¯æ¥åããã¼ã®è¦ããåãç®çã«ãã¯ã©ã¦ãåã¯ã¼ã¯ããã¼ãµã¼ãã¹ã® Questetra BPM Suite ãå°å
¥ãã¦ãã¾ãã
Questetraãå©ç¨ãã¦ã©ããªæ¥åããã¼ãå®ç¾ãã¦ããã®ããã¯éå»ã®è¨äºãã覧ãã ããã
Web APIã§ç¹ããã·ãªã¼ãº
ãWeb APIã§ç¹ãã Questetra / Trello / Slack é£æº
ãWeb APIã§ç¹ãã Questetra / Backlog é£æº
ãWeb APIã§ç¹ãã Questetra / Box é£æº
ãWeb APIã§ç¹ãã Questetra / Questetra é£æº
ã¡ã¼ã«é ä¿¡ããã¼ä½æ
ä»åã¯ãQuestetraã§ã¡ã¼ã«ã®è¨å®ããããªãããã®ã¾ã¾SendGridã§éä¿¡ããã¯ã¼ã¯ããã¼ãä½æãã¾ããã
QuestetraããSendGridã¸ã¯HTTPãªã¯ã¨ã¹ããéããã¡ã¼ã«ãéä¿¡ãã¾ãã
Questetra ã®ããã»ã¹ãã¼ã¿ã®é
ç®ã¯ä»¥ä¸ã®ã¨ããè¨å®ãã¦ãã¾ãã
é ç® | å |
---|---|
件å | æåï¼åä¸è¡ |
ã¡ã¼ã«ä»¶å | æåï¼åä¸è¡ |
ã¡ã¼ã«æ¬æ | æåï¼è¤æ°è¡ |
å®å | æåï¼åä¸è¡ |
error â»ã¨ã©ã¼è¡¨ç¤ºç¨ | æåï¼è¤æ°è¡ |
result â»çµæè¡¨ç¤ºç¨ | æåï¼è¤æ°è¡ |
SendGridã¨ã®é£æº
ã¡ãã»ã¼ã¸éä¿¡ä¸éã¤ãã³ãï¼HTTPï¼ã®è¨å®
éä¿¡è¨å®
é ç® | è¨å® |
---|---|
ã¢ã¯ã»ã¹URL | https://api.sendgrid.com/api/mail.send.json |
HTTP Method | POST(multipart/form-data) |
ã¨ã©ã¼çºçæã«ã¨ã©ã¼å 容ãæ ¼ç´ããæååãã¼ã¿é | error |
éä¿¡ãã©ã¡ã¼ã¿
ãã©ã¡ã¼ã¿å | å¤ |
---|---|
api_user | SendGrid ã¦ã¼ã¶ã¼å |
api_key | SendGrid ãã¹ã¯ã¼ã |
subject | ã¡ã¼ã«ä»¶å |
text | ã¡ã¼ã«æ¬æ |
to | å®å |
from | éä¿¡å |
ã¬ã¹ãã³ã¹
é ç® | è¨å® |
---|---|
ã¬ã¹ãã³ã¹ãããã»ã¹ãã¼ã¿ã«ä¿åãã | æå¹ |
ä¿åå ã®ããã»ã¹ãã¼ã¿é ç® | result |
ããã¼ãå®è¡
以ä¸ã®ãããªã¬ã¹ãã³ã¹ãããã°éä¿¡æåã§ãã
ã¨ã©ã¼ã®å ´åã¯å¤§ä½ã©ã®å¤ãééã£ã¦ããã®ããããå
容ã«ãªã£ã¦ããã®ã§ãç°¡åãªãããã°ã¯ãã®ã¬ã¹ãã³ã¹ã®å¤ã§ãããªãã¾ãã
ã¾ãQuestetraããéä¿¡ããã¡ã¼ã«ãSendGridã®ããã·ã¥ãã¼ã ï¼ Activity Feed ããé
ä¿¡çµæã確èªããäºãã§ãã¾ãã
以ä¸ã§Questetraã¨SendGridã®é£æºãã§ãã¾ããã
ã¾ã¨ã
ä»åã¯Web APIãå©ç¨ãã¦ãQuestetraããSendGridã§ã¡ã¼ã«éä¿¡ãã¦ã¿ã¾ããã
ã¢ããªã±ã¼ã·ã§ã³ããã¡ã¼ã«ãéä¿¡ããå ´åããSendGridã®æ©è½ãå©ç¨ãã¦ãã¡ã¼ã«ã®ç®¡çãã§ãã¾ãã
ãªã¹ãã®ç®¡çãå種è¨å®ãçµ±è¨ãã¨ã£ãããã§ããã®ã§è²ã
æ´»ç¨ã§ãããã§ããã