CPANã«ã¢ã¸ã¥ã¼ã«ãä¸ãã¦ã¿ã
WebService::Slack::WebApiã¨ããã¢ã¸ã¥ã¼ã«ãCPANã«å ¬éãã¦ãã¤ãã«CPAN Authorã«ãªã£ãã
ã¢ã¸ã¥ã¼ã«ã«ã¤ãã¦
ã¢ã¬ãªçç±ã«ããhubotã®integrationã使ãããï¼incomming webhooksããããã©ï¼ãã£ããã ããçã®APIã®æ¹ãå¼ããã¨ã«ã å®æ ã¨ãã¦ã¯ãAPIã®å¼ã³åºããã©ããã³ã°ãã¦ããã ããªãããªãé©å½ãªã©ã¤ãã©ãªã«ãªã£ãã
æåã¯åAPIã1è¡ç®ã®æãã§å¼ã³åºããããã«ãããã¨æã£ã¦ãããã©ãããªãã¨ãªããåå空éçãªæãã§åãããã£ããã2è¡ç®ã®æãã«ããã
my $result = $slack->chat_post_message('hoge'); my $result = $slack->chat->post_message('hoge');
æçµçã«ãvalidationã«ã¼ã«ãè¨è¿°ããã ãã®ã¢ã¸ã¥ã¼ã«ã大éçºçãã¦ãã¾ããåé·ããªãã¨æãã¤ã¤ããã®ã¾ã¾ã«ããã
ã¢ã¸ã¥ã¼ã«ãä½ã段éã§å¦ãã ç¹
ãã¨ã§å¥ã®è¨äºã¨ãã¦æ¸ãäºå®ã
- Minillaã使ã£ãã¢ã¸ã¥ã¼ã«ã¹ã±ã«ãã³ã®ä½æã»ãªãªã¼ã¹
- Travis CI, CoverallsãPerlã§å©ç¨ããæ¹æ³
å é±ã®åæ¥ã«å®è£ ããã¤ã³ãã«ã«ããã£ã¦ããããã¥ã¡ã³ãã¨ã»ã¼å®æ ã®ãªããã¹ããæ´åããã TravisãCoverallsãå©ç¨ããã®ããããç°¡åãªããã«ããªãã¨ãè¨ããªã楽ãããä¸ãã¦ããããã¨ã«æ°ã¥ããã
ããã¥ã¡ã³ãã«æ¸ããã®ã¯ã¯ã½ã¿ãããªæãè±èªã ãã©ãè¯ãæ©ä¼ã«ãªã£ãã ãã¯ãæ¸ãç·´ç¿ãããªãã¨ãã¤ã¾ã§ãã£ã¦ããã¡ã ãªãã¨æã£ãï¼ç²ã¿ããï¼ã
ä»å¾
ãã®2ã¤ãããã¯ããã
- access tokenãåå¾ããå¦çã欲ãã
- post_messageã®attachmentsãè¯ãæãã«ããã
ãã®å¾ã¯ãReal Time Messaging APIãæ±ã奴ãæ¸ãäºå®ã Pythonã§æ¸ãç´ãã¦Pythonãªãããªããããâ¦