ãã¡ãã§ãKore.aiã®ããŒãã£ã«ã¢ã·ã¹ã¿ã³ããã©ãããã©ãŒã ã§ã®éç¥ã¿ã¹ã¯ã®èšå®æ¹æ³ã«ã€ããŠç¢ºèªããŸããã
ãã®ã»ã¯ã·ã§ã³ã§ã¯ãRSSãµãŒãã¹ã®APIãªã¯ãšã¹ããèšå®ããæ¹æ³ã«ã€ããŠèª¬æããŸãã
ãŠã§ããµãŒãã¹ãšããŠæå®ãããæ¥ç¶ã¿ã€ãããã³RSSã«èšå®ãããæ¥ç¶ã¢ãŒãã«ã¯ã以äžãå®çŸ©ããå¿
èŠããããŸãã
- ã³ã³ãã³ãã¿ã€ãâKore.aiããã³ã䜿çšã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã®éã«äº€æãããããŒã¿ã®ã¿ã€ãã詳现ã¯ä»¥äžãã確èªãã ããã
- èªèšŒâéç¥ã¿ã¹ã¯ãå¿ èŠãªå ŽåãAPIã«ã¢ã¯ã»ã¹ããããã«èªèšŒãå®çŸ©ããå¿ èŠããããŸãïŒäŸïŒåºæ¬èªèšŒãOAuthãAPIããŒãªã©ã䜿çšããïŒã詳ããã¯ãã¡ããåç §ããŠãã ããã
- ãã©ã¡ãŒã¿âAPIãªã¯ãšã¹ãã®åŠçã«äœ¿çšããã1ã€ä»¥äžã®ãã©ã¡ãŒã¿ãå®çŸ©ããŸãïŒäŸïŒãŠãŒã¶ãŒããã³ããããã®å ¥åããšã³ããŠãŒã¶ãŒã«ããéžæè¢ã®ãªã¹ãããã®éžæãURLãªã©ïŒã詳现ã«ã€ããŠã¯ã以äžãã確èªãã ããã
- ã€ãã·ã£ã©ã€ã¶ãŒâWebãµãŒãã¹ãã³ãŒãã®å®è¡ãã»ãã·ã§ã³å€æ°ã®èšå®ãAPIãªã¯ãšã¹ãã®å®è¡åã«ãŠãŒã¶ãŒã³ã³ããã¹ãã®è©³çŽ°ãå€æŽããå¿ èŠãããå Žåãã¿ã¹ã¯ã€ã³ã¹ã¿ã³ã¹ãäœæããåã«å®è¡ãšããã«ã¹ã¿ã JavaScriptãæå®ããŠãã ããã詳现ã¯ä»¥äžãã確èªãã ããã
- ãªã¯ãšã¹ãâWebãµãŒãã¹ããããããã©ãããã©ãŒã ãžã®ããŒã¿ãã€ããŒãã®é ä¿¡ãéå§ããããã«ãURLãšããããžã®ããŒã¹ã䜿çšããŠã¿ã¹ã¯ãéå§ããããã«WebãµãŒãã¹ãžã®APIã³ãŒã«ãè¡ãããã«äœ¿çšãããªã¯ãšã¹ããã§ãŒã³ãå®çŸ©ããŸãããªã¯ãšã¹ããã§ãŒã³ã¯ããªããã»ããµãŒãAPIãªã¯ãšã¹ããããã³ãã¹ãããã»ããµãŒãå«ããŸãã詳现ã¯ä»¥äžãã確èªãã ããã
- å¿ç ãµã³ãã« – ã¿ã¹ã¯ã®ãã€ããŒãã§åãåãããšãæ±ããããããŒ/å€ã®ãã¢ãå®çŸ©ããŸãããæäŸã®ããŒã¯ããšã³ããŠãŒã¶ãŒã«è¡šç€ºããããŒã¿ãåŠçããããã®ããããããŠã³ã®éžæè¢ãšããŠå©çšã§ããŸãã詳现ã«ã€ããŠã¯ã以äžåŸã確èªãã ããã
- æçš¿ã§ãŠã§ããµã€ãã®ãªã³ã¯ã³ã³ãã³ãããã¬ãã¥ãŒâã¿ã¹ã¯æ³šæã¡ãã»ãŒãžã«ãããŠã§ããµã€ãã®ãã¬ãã¥ãŒã³ã³ãã³ãã衚瀺ããŸãã詳现ã¯ä»¥äžãã確èªãã ããã
ä¿åãã¯ãªãã¯ããŠAPIãªã¯ãšã¹ãã®èšå®ãä¿åããŸãã
ã³ã³ãã³ãã¿ã€ãã®å®çŸ©
ã³ã³ãã³ãã¿ã€ãã¯ãKore.aiãšBotã®ãŠã§ããµã€ããã¢ããªã±ãŒã·ã§ã³ãšã®éã§äº€æãããããŒã¿ã®ã¿ã€ããšãã¿ã¹ã¯ã®ãã€ããŒãå¿çã§äºæ³ãããããŒãšå€ã®ãã¢ã«ã€ããŠèª¬æããŸããAPI ãªã¯ãšã¹ã (RSS) ã®ã³ã³ãã³ã ã¿ã€ããå®çŸ©ããã«ã¯ã [ã³ã³ãã³ã ã¿ã€ã] ã¿ããéããŠã次ã®ãªãã·ã§ã³ã®ãã¡ã® 1 ã€ãéžæããŸãã
- JSON – JavaScript Object Notation ã¯ã人éãå€èªã§ããããã¹ãã§ããŒã¿ ãªããžã§ã¯ããå±æ§ãšå€ã®ãã¢ã§éä¿¡ããããªãŒãã³ãªæšæºãã©ãŒãããã§ããJSON ã䜿ã£ãŠãKore.ai ãµãŒããŒãšããã Web ã¢ããªã±ãŒã·ã§ã³ã®éã§ããŒã¿ãäŒéããããšãã§ããŸãã
- RSS – Rich Site SummaryãReally Simple Syndicationã¯ãããã°ã®ãšã³ããªãŒããã¥ãŒã¹ã®èŠåºããé³å£°ãåç»ãªã©ãé »ç¹ã«æŽæ°ãããæ å ±ãå ¬éããããã«äœ¿çšãããæšæºåãã©ãŒãããã®äžçŸ€ã§ãã
- XML – æ¡åŒµå¯èœãªããŒã¯ã¢ããèšèªãšã¯ã人éãèªãã圢åŒãšæ©æ¢°ãèªãã圢åŒã®äž¡æ¹ã§ããã¥ã¡ã³ãããšã³ã³ãŒãããããã®ã«ãŒã«ãå®çŸ©ããããŒã¯ã¢ããèšèªã§ãã
Web ãµãŒãã¹ã XML ããŒã¿ãåŠçããã®ã«ãXML ã¹ããŒãããã䜿çšãããŸãã - URL ãšã³ã³ãŒãããã JSON – äºçŽæåã®ããã« JSON ã®ãšã³ã³ãŒãã䜿ã£ã URL ã§ãã
- CSV – ã«ã³ãåºåãã®å€ã®ãªã¹ãã§ãã
- æåâããã¹ãããŒã¹ã®ããŒå€ãã¢ã
- Twitter ãšã³ã³ãŒãããã JSON – äºçŽæåã®ããã« JSON ã®ãšã³ã³ãŒãã䜿ã£ã Twitter ã® URL ã§ãã
- Multipart/Form-data – ãŠãŒã¶ãŒããã©ãŒã ãããã¡ã€ã«ãã¢ããããŒãã§ããããã«ããå Žåã«ãHTTP POST ãªã¯ãšã¹ã ã¡ãœããã§ãã¡ã€ã«éä¿¡ãå¯èœã«ãããšã³ã³ãŒã ã¿ã€ãã§ãã
- Multipart/Related – åãæ å ±ããä»ã®ãã©ãŒã ã®ä»ã®ãã㣠ããŒãã§è¡šç€ºããå Žåã«äœ¿çšããŸãããã㣠ããŒãã¯è€é床ã®é«ãé ã«äžŠã¹ãããŠããŸãã
- Oracle ADF – Oracle Application Development Framework ã«äœ¿çšããŸãã
ãã©ã¡ãŒã¿ã®å®çŸ©
以äžã®æé ã§ãAPIãªã¯ãšã¹ãïŒRESTïŒã®ãã©ã¡ãŒã¿ãå®çŸ©ããŸãã
- ãã©ã¡ãŒã¿ã®ã»ã¯ã·ã§ã³ãã¯ãªãã¯ããŠã次ã«è¿œå ãã¯ãªãã¯ããŸããã¿ã¹ã¯ãã©ã¡ãŒã¿ã®èšå®ãã€ã¢ãã°ãéããŸãã
- ãéžæã®æ¬¡ç¬¬ãäžèšã®ããŒãã«ã®èª¬æã®éãã«é¢é£ã®ãã£ãŒã«ãå€ãå
¥åããŠãã ããã
ãã£ãŒã«ãå 説æ ãã©ã¡ãŒã¿å ã¿ã¹ã¯ã®ã¿ã€ãã«ã®å ¥åãã£ãŒã«ãã¯ãŠãŒã¶ãŒã«è¡šç€ºããŸããäŸãã°ãã¢ã«ãŠã³ããéžæ ããã³ããã¡ãã»ãŒãž ãã©ã¡ãŒã¿åã®äžã«è¡šç€ºãããã«ã説æã§ããäŸãã°ãã¢ã¯ã»ã¹ãšããã¢ã«ãŠã³ãã¯ã©ã¡ãã§ãã? ãã©ã¡ãŒã¿ã㌠ã¿ã¹ã¯ããŒã¯åéãšãããšã³ããŠãŒã¶ãŒã®å ¥åã®å€ã瀺ããŸããäŸãã°ãã¢ã«ãŠã³ãã¿ã€ãã ãã©ã¡ãŒã¿ã¿ã€ã äžçŽãªãã·ã§ã³ãéžæãããå Žåããšã³ããŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã«è¡šç€ºããããã£ãŒã«ãã®ã¿ã€ããæå®ããŠããªã¯ãšã¹ããªããžã§ã¯ããžã®ãŠãŒã¶ãŒå ¥åã®å²ãåœãŠããŒå€ãšããŠåéããŸããããã©ã«ãèšå®ã¯ããã¹ãããã¯ã¹ã§ããã以äžã®ãã¡ã®äžã€ã«ã«ã¹ã¿ã ããããšã¯å¯èœã§ã : - æ¥ä» – [ãã©ãŒããã] ãã£ãŒã«ãã衚瀺ããŸããããã§ã¯ããšã³ããŠãŒã¶ãŒãèªåã®ã¢ã«ãŠã³ãã«ã¿ã¹ã¯ãèšå®ãããŠããå Žåã«å®çŸ©ããæ¥ä»ãã©ãŒãããã®æ§æãéžæã§ããŸãã[æ¥ä»ãã©ãŒãããéžæ] ã®ããããããŠã³ ãªã¹ãããã次ã®ãã¡ã® 1 ã€ãéžæããŸãã
- dd-MM-YYYY – äŸ:16-05-1999
- MM-dd-YYYY – äŸ:05-16-1999
- dd-MM-YY – äŸ:16-05-99
- YYYY-MM-dd – äŸ:1999-05-16
- URL – æ£ãã URL æ§æã®ããã®ãã£ãŒã«ãæ€èšŒãå«ãããšã³ããŠãŒã¶ãŒã«ãã URL å ¥åçšã®ããã¹ã ããã¯ã¹ã衚瀺ããŸãã[ãã¬ãŒã¹ãã«ããŒ] ãã£ãŒã«ãã«ã¯ãããã¹ãããã¯ã¹ã«è¡šç€ºããããã«ããã³ããå ¥åããŸããããšãã°ãããã¡ãã«ãŠã§ããµã€ãã®URLãå ¥åããŠãã ãããã®ãããªãã®ã§ãã
- ããã¹ãããã¯ã¹âãšã³ããŠãŒã¶ãŒã«ã¿ã¹ã¯ã®å ¥åãã£ãŒã«ããšããŠæåå ¥åã®ããã®ããã¹ãããã¯ã¹ã衚瀺ããŸãïŒéåžžã¯æ°èªçšåºŠïŒã[ãã¬ãŒã¹ãã«ããŒ] ãã£ãŒã«ãã«ã¯ãããã¹ããã£ãŒã«ãã«è¡šç€ºããããã«ããã³ããå ¥åããŸããããšãã°ããè¿œå ããååãå ¥åããŠãã ãããã®ãããªãã®ã§ãã
- éçããããããŠã³ – ãšã³ããŠãŒã¶ãŒã«éžæè¢ã®ããããããŠã³ ãªã¹ãã衚瀺ããŸãããªãã·ã§ã³ã®è¿œå ãã¯ãªãã¯ããŠä»¥äžã®ãã©ã¡ãŒã¿ã§ãšã³ããŠãŒã¶ãŒã«è¡šç€ºããé
ç®ãªã¹ãã®è¿œå ãå§ãŸããŸãïŒ
- ãªãã·ã§ã³å – ãšã³ããŠãŒã¶ãŒã«è¡šç€ºããããªãã·ã§ã³ã®ååã§ãã
- ãªãã·ã§ã³å€âã¢ããªã±ãŒã·ã§ã³ã«è¿ããªãã·ã§ã³åãšããå€ãšç€ºããŸãã
- ããã©ã«ãå€ – 1 ç¹ä»¥äžã®ãªãã·ã§ã³ãå®çŸ©ãããŠããå Žåããªãã·ã§ã³ã®ããã©ã«ãå€ãéžæããŸãã
- æ€çŽ¢å¯èœâéžæãããšãã€ãããã¯æ€çŽ¢ããããŠãã®ãã£ãŒã«ãã«ãšã³ããŠãŒã¶ãŒãå ¥åããæåã®è¡šç€ºãå¯èœã«ããŸããããäžèŽããªãå ŽåãããªãŒãã©ãŒã ã®ãšã³ããªãå¯èœã§ãã
[ä¿å] ãã¯ãªãã¯ããŸããé ç®ãè¿œå ããå Žåããªãã·ã§ã³ãè¿œå ãããäžåºŠã¯ãªãã¯ããŸããåäœã³ã©ã ã®ãªãã·ã§ã³ç·šéãŸãã¯åé€ããŸãã
- ãã€ãããã¯ããããããŠã³âBotã®URLããã®å¿çã«åºã¥ããŠãå®è¡æã«åçã«çæãããããããããŠã³ãªã¹ãã衚瀺ããŸãïŒäŸïŒJIRA ã¿ã¹ã¯éç¥çšã®ãããžã§ã¯ãäžèŠ§ïŒã以äžã®ãã€ãããã¯ã«é
眮ãããããããããŠã³ãžã®ããããã£ãå®çŸ©ããŸãã
- ãšã³ããã€ã³ã URL – Botã®ãšã³ããã€ã³ãã®URLã§ããäŸïŒhttps://app.asana.com/api/1.0/workspaces
- ãšã³ããã€ã³ãã®ã³ã³ãã³ãã¿ã€ãâæå®ããããšã³ããã€ã³ãURLããäºæ³ãããã³ã³ãã³ãã¿ã€ãã以äžã®ãã¡ã®äžã€ïŒJSONãRSSãXMLãURL ãšã³ã³ãŒãããã JSONãCCVãæåãã Twitter ãšã³ã³ãŒãããã JSONã
- ãšã³ããã€ã³ã ã¡ãœãã – 次ã®ãã¡ã® 1 ã€ã«ãªããŸãã
- GET– ã¿ã¹ã¯ãã£ãŒã«ãã®HTTPãªã¯ãšã¹ãã®GETã¡ãœãããæå®ããŸãã
- POST– ã¿ã¹ã¯ ãã£ãŒã«ãã® HTTP ãªã¯ãšã¹ãã® POST ã¡ãœãããæå®ããŸãã
- å¿çããŒã¹âåžæããããããããŠã³ãªã¹ãã®å€ãå«ãå¿çå ã®ãã¹ã§ãïŒäŸïŒããŒã¿ã
- ã©ãã«ã㌠– ããããããŠã³ãªãã·ã§ã³ã®ã©ãã«ã®ããŒã§ãïŒäŸïŒååïŒã
- ãªãã·ã§ã³å€ã㌠– ããããããŠã³ãªãã·ã§ã³ã®å€ã®ããŒã§ãïŒäŸïŒIDïŒã
- idãã€ããŒã ãã£ãŒã«ãã®è¿œå – å è¡å ¥åãã£ãŒã«ãã®ãªãã·ã§ã³ãšããŠã å¿çãã€ããŒããã 1 ã€ä»¥äžã®ãã£ãŒã«ããã¯ãªãã¯ããŠè¿œå ããŸããåãã€ããŒããã£ã«ãã«ã€ããŠããã€ããŒããã£ãŒã«ãã®ããŒãšãã€ããŒããã£ãŒã«ãã®å€ãå ¥åããä¿åãã¯ãªãã¯ããŸããåäœåã§ãã€ããŒããã£ãŒã«ããç·šéãŸãã¯åé€ããŸãã
- æ€çŽ¢å¯èœâéžæãããšãã€ãããã¯æ€çŽ¢ããããŠãã®ãã£ãŒã«ãã«ãšã³ããŠãŒã¶ãŒãå ¥åããæåã®è¡šç€ºãå¯èœã«ããŸããããäžèŽããªãå ŽåãããªãŒãã©ãŒã ã®ãšã³ããªãå¯èœã§ãã
- ããã¹ããšãªã¢âãšã³ããŠãŒã¶ãŒãã¿ã¹ã¯å ¥åãšããŠããã€ã®ããã¹ããå ¥åããããã®ããã¹ããšãªã¢ã衚瀺ããŸãã[ãã¬ãŒã¹ãã«ããŒ] ãã£ãŒã«ãã«ãããã¹ã ããã¯ã¹å ã«ãšã³ããŠãŒã¶ãŒã«å¯ŸããŠè¡šç€ºãããã«ã ãã³ããå ¥åããŸãã
- å
è¡å
¥å – ã¿ã¹ã¯ã«å®çŸ©ãããURLããã®å¿çã«åºã¥ãæ€çŽ¢çµæã«äžèŽããæåããŠãŒã¶ãŒã 3 æå以äžå
¥åãããšãåçã«å
¥åãããããããããŠã³ãªã¹ãã®éžæè¢ãå®è¡æã«ãšã³ããŠãŒã¶ãŒã«è¡šç€ºãããŸããäŸãã°ãJIRAã®ã¿ã¹ã¯éç¥ã¡ãã»ãŒãžã®ãããžã§ã¯ãäžèŠ§ã§ãã以äžã®ãã€ãããã¯ã«é
眮ãããããããããŠã³ãžã®ããããã£ãå®çŸ©ããŸãã
- ãšã³ããã€ã³ã URL – Botã®ãšã³ããã€ã³ãã®URLã§ããäŸïŒhttps://app.asana.com/api/1.0/workspaces
- ãšã³ããã€ã³ãã®ã³ã³ãã³ãã¿ã€ãâæå®ããããšã³ããã€ã³ãURLããäºæ³ãããã³ã³ãã³ãã¿ã€ãã以äžã®ãã¡ã®äžã€ïŒJSONãRSSãXMLãURL ãšã³ã³ãŒãããã JSONãCCVãããã¹ããTwitter ãšã³ã³ãŒãããã JSONãMultipart/Form-data ãŸã㯠Multipart/Relatedã
- ãšã³ããã€ã³ã ã¡ãœãã – 次ã®ãã¡ã® 1 ã€ã«ãªããŸãã
- GET– ã¿ã¹ã¯ãã£ãŒã«ãã®HTTPãªã¯ãšã¹ãã®GETã¡ãœãããæå®ããŸãã
- POST– ã¿ã¹ã¯ ãã£ãŒã«ãã® HTTP ãªã¯ãšã¹ãã® POST ã¡ãœãããæå®ããŸãã
- å¿çããŒã¹âåžæããããããããŠã³ãªã¹ãã®å€ãå«ãå¿çå ã®ãã¹ã§ãïŒäŸïŒããŒã¿ïŒã
- ã©ãã«ã㌠– ããããããŠã³ãªãã·ã§ã³ã®ã©ãã«ã®ããŒã§ãïŒäŸïŒååïŒã
- ãªãã·ã§ã³å€ã㌠– ããããããŠã³ãªãã·ã§ã³ã®å€ã®ããŒã§ãïŒäŸïŒIDïŒã
- ãã€ããŒããã£ãŒã«ãã®è¿œå å è¡å ¥åãã£ãŒã«ãã®ãªãã·ã§ã³ãšããŠã å¿çãã€ããŒããã 1 ã€ä»¥äžã®ãã£ãŒã«ããã¯ãªãã¯ããŠè¿œå ããŸããåå è¡å ¥åã®ãã£ãŒã«ããªãã·ã§ã³ã«ã€ããŠããã€ããŒããã£ãŒã«ãã®ããŒãšãã€ããŒããã£ãŒã«ãã®å€ãå ¥åããä¿åãã¯ãªãã¯ããŸããåäœåã§ãã€ããŒããã£ãŒã«ããç·šéãŸãã¯åé€ããŸãã
- ç·šéå¯èœâå è¡å ¥åã®æ€çŽ¢çµæãäžèŽããªãå Žåã®ãªãã·ã§ã³ãšããŠããšã³ããŠãŒã¶ãŒããã£ãŒã«ãã«èªç±ã«ããã¹ããå ¥åã§ããããã«ããŸãã
- ã¡ãŒã«âãšã³ããŠãŒã¶ãŒã®ã¡ãŒã«ã¢ãã¬ã¹ãå ¥åããããã®ããã¹ãããã¯ã¹ã衚瀺ããŸãããã¬ãŒã¹ãã«ããã£ãŒã«ãã«ã¯ããšã³ããŠãŒã¶ãŒã«è¡šç€ºããã®ã«åœ¹ç«ã€ãã³ããããã¹ãããã¯ã¹å ã«å ¥åããŸãã
- æ¥ä»ãšæéâãšã³ããŠãŒã¶ãŒã®æ¥ä»ãšæéãå ¥åããããã®ããã¹ãããã¯ã¹ã衚瀺ããŸãããã©ãŒããããã£ãŒã«ãã«ããšã³ããŠãŒã¶ãŒã«è¡šç€ºãããæ¥ä»ã®æåæ ã«ãäºæ³ã®æ¥ä»ãæéã®ãã©ãŒããããå ¥åããŠãã ãããæ¥ä»ãã©ãŒãããã®éžæããããããŠã³ãªã¹ãã§ã æéä»ãã®æ¥ä»ã®ãã©ãŒããããéžæããŠãã ããã
- ã¿ã€ã ãŸãŒã³âæäœã·ã¹ãã ã®èšå®ã«åºã¥ãã¿ã€ã ãŸãŒã³ã®ããããããŠã³ãªã¹ãã衚瀺ããŸãã
- äœçœ®âãšã³ããŠãŒã¶ãŒãå°ççäœçœ®ãå ¥åããããã®æåæ ã衚瀺ããŸããäŸãã°ãOrlando, FLãŸãã¯32801ã
- å
¥ãåãã©ãŒã – 芪å
¥åãã£ãŒã«ãã®äžã«ããšã³ããŠãŒã¶ãŒã®å
¥åãã£ãŒã«ããå
¥ãå圢åŒã§è¡šç€ºããŸããå
¥åãã£ãŒã«ãã®ãã¹ãåæžã®ãã©ãŒã ã«ä»¥äžã®ãã£ãŒã«ããæå®ããŠãã ããïŒ
- é åèŠçŽ å – 芪ã®å ¥å圢åŒèŠçŽ ã®ããŒã¿åãéžæããŸãã
- å ¥ãåãã©ãŒã ãã£ãŒã«ãã®è¿œå – 1 ã€ä»¥äžã®å ¥ãåã®ãã©ãŒã ãã£ãŒã«ããã¯ãªãã¯ããŠè¿œå ããŸãã
- ãã¡ã€ã« ã¢ããããŒã – ã¢ããããŒããããã¡ã€ã«ã®æ€çŽ¢ãéžæãã§ãããšã³ããŠãŒã¶ãŒ ã³ã³ãããŒã«ã衚瀺ããŸããã¯ãªãã¯ããŠã[ãã¡ã€ã« ã¢ããããŒã ãã€ããŒã ããŒ] ãå
¥åããŸãããã¡ã€ã«ã¢ããããŒããã€ããŒãããŒãå®çŸ©æžã®å Žåããã¡ã€ã«ã¢ããããŒããã€ããŒããã£ãŒã«ãå€ã®ããããããŠã³ãªã¹ãã§ä»¥äžã®ãã¡ã®äžã€ãéžæããŠãã ããïŒ
- ãã¡ã€ã«å
- ãã¡ã€ã«ãµã€ãº
- ãã¡ã€ã«ã³ã³ãã³ãã¿ã€ã
ããŒã¿ã¿ã€ã ãŠãŒã¶ãŒå ¥åã¿ã€ãã®ãã¡ã® 1 ã€ãéžæããŸãã - æåå – ãŠãŒã¶ãŒã¯ä»»æã®äžé£ã®æ°åãæåãç¹æ®æåãå ¥åããããšãã§ããŸãã
- æ°å – ãŠãŒã¶ãŒã¯æ°åãå ¥åããããšãã§ããŸããç¹æ®æåã¯äœ¿çšã§ããŸããã
- ããŒã«å€ – ãŠãŒã¶ãŒã¯ true ãŸã㯠false ã®ããŒã«å€ãå ¥åã§ããŸãã
- ã¡ãŒã« – ãŠãŒã¶ãŒã¯æå¹ãªã¡ãŒã« ã¢ãã¬ã¹ãå ¥åã§ããŸãã
- ãªããžã§ã¯ã – ããŒã¿ã¯ãJSON ãªããžã§ã¯ããšããŠãããããåä¿¡ã§ããŸãã
 “location” : {
{ “lat” :
17.4374614, “lng” :
78.4482878 }ããã§ã¯ããªã¯ãšã¹ããã§ã€ã³ãã¿ã¹ã¯ãªã¯ãšã¹ãã®ããããã£ãlocation.latãlocation.lngãšããŠåç §ããããšãã§ããŸãã - é
å – ãŠãŒã¶ãŒã¯ãã«ã³ãã§åºåã£ãå€ã®ãªã¹ãããããã«æž¡ãããšãã§ããŸããäŸãã°ãã°ãŒã°ã«ã«ã¬ã³ããŒã§ã¯ãè€æ°ã®åå è
ã®ããŒã¿ã®ãã¹ã¯:
“attendees”: [“user1”, “user2”, “user3”] éžæããå Žåããšã³ããŠãŒã¶ãŒã®å ¥åã®é åã®ã¿ã€ãã以äžã®ããããã«æå®ããŸãã- æåå
- æ°å
- ããŒã«å€
- ã¡ãŒã«
- é å
- æ¥ä»
- æ¥ä»âãŠãŒã¶ãŒã¯å®å šãªæ¥ä»ãå ¥åããããæ¥ä»ã®éžæè¢ããéžæããããšãã§ããŸãã
è€æ°éžæã§ã ãŠãŒã¶ãŒã¯ 1 ã€ä»¥äžã®éžæãå ¥åãå¯èœã§ãããã®ãã£ãŒã«ãã¯éžæããããã£ãŒã«ãã¿ã€ãã«åŸã£ãŠè¡šç€ºãããŸãã - æ¥ä» – [ãã©ãŒããã] ãã£ãŒã«ãã衚瀺ããŸããããã§ã¯ããšã³ããŠãŒã¶ãŒãèªåã®ã¢ã«ãŠã³ãã«ã¿ã¹ã¯ãèšå®ãããŠããå Žåã«å®çŸ©ããæ¥ä»ãã©ãŒãããã®æ§æãéžæã§ããŸãã[æ¥ä»ãã©ãŒãããéžæ] ã®ããããããŠã³ ãªã¹ãããã次ã®ãã¡ã® 1 ã€ãéžæããŸãã
- [詳现èšå®] ã¿ããã¯ãªãã¯ããŠãã¿ã¹ã¯ ãã£ãŒã«ãã®è¿œå ã®ãªãã·ã§ã³èšå®ãå®çŸ©ããŸãã
ãã£ãŒã«ãå 説æ å¯èŠæ§ ã¿ã¹ã¯å ¥åãã£ãŒã«ãããšã³ããŠãŒã¶ãŒããèŠããããã«ãããããã¯é ããã©ãããæå®ããŸãã
å¯èŠæ§ãã£ãŒã«ãã¯ã«ã¹ã¿ã èšå®ããããšãã§ããŸããããã§ã¯ãããŒã¿ã¯ãŠãŒã¶ãŒããååŸãããŸãããã¯ãšãªãã©ã¡ãŒã¿ããã€ããŒããã£ãŒã«ããšããŠã¯äœ¿çšãããŸãããäŸãã°ãJIRA Botã®å Žåã以äžã®ããã«@mentionã¿ã°ã䜿çšããŠãã±ããã«ã³ã¡ã³ããæçš¿ããŸãã
ã@Mikeããã¡ãã®åé¡ã«ã€ããŠèª¿ã¹ãŠãã ããã JIRA APIã§ãã³ã¡ã³ããæçš¿ãããã«ã¯1ã€ã®ã¯ãšãªãã£ãŒã«ãããã³1ã€ã®ãã€ããŒããã£ãŒã«ããå¿ é ã§ã:- IDã®çºè¡
- ã³ã¡ã³ã
å¯èŠæ§ãã£ãŒã«ããã«ã¹ã¿ã ã«èšå®ãããšãJIRA APIã䜿çšããŠãšåŒã°ãããŠãŒã¶ãŒã®ãŠãŒã¶ãŒæ å ±ããã£ããã£ããããŒã¿ãååŸããŠãã£ãŒã«ãã®å€ã«è¿œå ããããšãã§ããŸããããã€ããŒããã£ãŒã«ããã¯ãšãªãã£ãŒã«ããšããŠã¯äœ¿çšã§ããŸãããå¯èŠæ§ãã£ãŒã«ãã®ããã©ã«ãèšå®ã¯è¡šç€ºã§ãã
å¿ é ãšã³ããŠãŒã¶ãŒããã®èšå®ãå®çŸ©ããŠã¿ã¹ã¯ã®èšå®ãä¿åããå¿ èŠããããã©ãããéžæããŸãã ããŒã®çœ®ãæã Kore.ai ã«ããããŒã®è»¢çœ®ãç¡å¹ã«ãããã©ãããéžæããŸããããã©ã«ãã§ã¯ãKore.ai ã¯ããŒãšå€ã®ãã¢ã転眮ããŸããäŸãã°ã”parameter”:”value” 㯠Kore.ai ã«ãã£ãŠ “parameter:{value:”actualValue”} ã«è»¢çœ®ãããŸããéžæãããšãããŒã¯çœ®æãããŸããã ã»ãã·ã§ã³ããååŸ éžæãããšããã®ãã£ãŒã«ãã®ãŠãŒã¶ãŒå ¥åå€ãã»ãã·ã§ã³å€æ°ãšããŠæ ŒçŽããŸããéžæãããšã[ã»ãã·ã§ã³ããã®ãã£ãŒã«ãå€] ã®ãã£ãŒã«ãã衚瀺ããŸããæ¢åã®å€æ°ã [æ°èŠã®ã»ãã·ã§ã³å€æ°ãè¿œå ] ãéžæããŠæ°èŠã®å€æ°ãå®çŸ©ããŸããæ°èŠã®ã»ãã·ã§ã³å€æ°ãäœæããã«ã¯ãå€æ°ã®ã¹ã³ãŒããéžæããå€æ°ãæ ŒçŽããããŒãå®çŸ©ããå¿ èŠããããŸãã[ã¹ã³ãŒã] ãã£ãŒã«ãã§ã¯ã次ã®ãã¡ã® 1 ã€ãéžæããŸãã - EnterpriseContext – äŒæ¥å šäœã®ãŠãŒã¶ãŒã«äœ¿çšã§ããããŒ/å€ãã¢ãå®çŸ©ããŸãã
- BotContext – ãã®ãããã®å šãŠãŒã¶ãŒã«äœ¿çšã§ããããŒ/å€ãã¢ãå®çŸ©ããŸãã
- UserSession – äŒæ¥å ã®ãã¹ãŠã®ãããã«å¯ŸããŠããã®ãŠãŒã¶ãŒã䜿çšã§ããããŒ/å€ã®ãã¢ãå®çŸ©ããŸãã
- BotUserSession – ãŠãŒã¶ãŒã®å ¥åã«åºã¥ããŠããããã䜿çšã§ããããŒ/å€ã®ãã¢ãå®çŸ©ããŸãã
- ã¿ã¹ã¯èŠæ±ã®ãã©ã¡ãŒã¿ãä¿åããŠå¥ã®ãã©ã¡ãŒã¿ãè¿œå ããå Žåã¯ãè¿œå ããŠç¶è¡ããã¿ã¹ã¯èŠæ±ã®ãã©ã¡ãŒã¿ãä¿åããŠãã€ã¢ãã°ãéããå Žåã¯ãè¿œå ããŠçµäºãã¯ãªãã¯ããŸããè€æ°ã®ãã©ã¡ãŒã¿ããããããŠãŒã¶ãŒãå
¥åãæäŸããé çªã§æŽçããå¿
èŠããããŸãããšã¢ã€ã³ã³ã䜿çšããŠãã©ã¡ãŒã¿ã移åããŸãã
åæååã®å®çŸ©
ã¿ã¹ã¯ãå®è¡ããã«ã¯ãã»ãã·ã§ã³ã®å€ãputãgetããŠãããKore.ai ã»ãã·ã§ã³åºæã®å€æ°ã§ã¿ã¹ã¯ãå®è¡ãšããå ŽåããããŸãã詳现ã«ã€ããŠã¯ãã¿ã¹ã¯ã®ã»ãã·ã§ã³å€æ°ãšã³ã³ããã¹ãå€æ°ã䜿çšãåç §ããŠãã ããããããŠã§ããµãŒãã¹ã¯APIãªã¯ãšã¹ãå®è¡ã®åã«ãå®è¡æžã®ã³ãŒããã»ãã·ã§ã³å€æ°ããŸãã¯ãŠãŒã¶ãŒã®ã³ã³ããã¹ã詳现ã®èª¿æŽãå¿ èŠã§ããäŸãã°ããŠã§ããµãŒãã¹ã¯ãæåã®ã¹ããããšããŠãŠãŒã¶ãŒãã°ã€ã³ãè¡ãã次ã«ããŒãããŒèªèšŒãè¡ãã2段éã®ãŠãŒã¶ãŒèªèšŒãå¿ èŠãšããå ŽåããããŸãããããã®äž¡æ¹ã®ã¹ããããæ€èšŒããŠãããã¢ã¯ã»ã¹ããŒã¯ã³ãä»äžããããã®ãŠã§ããµãŒãã¹ãžã®åŸç¶ã®APIã³ãŒã«ã®ããããŒã§äœ¿çšãããŸããã€ãã·ã£ã©ã€ã¶ãŒã䜿çšããã°ãããŒãããŒèªèšŒã®å®æããããŠãŠãŒã¶ãŒã®èªèšŒãžã®å¿çããã®ã¢ã¯ã»ã¹ããŒã¯ã³ã®åãæ»ãããšãã§ããŸããã¢ã¯ã»ã¹ããŒã¯ã³ã¯ã«ã¹ã¿ã ã»ãã·ã§ã³å€æ°ããããŠåŸç¶ã®APIã³ãŒã«ã®ããããŒãšããŠã®è²¯èµãå¯èœã§ãã
ã¿ã¹ã¯åæååãå®çŸ©ãã
ã¿ã¹ã¯ã®åæååãèšå®ããå Žåãåæååã¿ããã¯ãªãã¯ããŠãã ãããå¿
é ã®ã³ãŒããæžã蟌ãããã®JavaScriptç·šéåšãéããŸãã
JavaScriptãšãã£ã¿ãŒã§ã以äžã®ããã«ããŒãšã¹ã³ãŒããå®çŸ©ããŸãã
- EnterpriseContext – äŒæ¥ã®å
šãããããã³å
šãŠãŒã¶ãŒã䜿çšå¯èœãªããŒ/å€ãã¢ã§ããããšãã° GitHub ãããã§ã¯ããŠãŒã¶ãŒãåäžãŸãã¯è€æ°ã®äŒæ¥ã®ãªããžããªã«ã¢ã¯ã»ã¹ããå¿
èŠããããŸããåæååã§ã¯ã以äžã®JavaScriptã³ãŒãã§ãªããžããªããŒã¿ãGitrepositoryïŒãšã³ã¿ãŒãã©ã€ãºã³ã³ããã¹ãïŒãšããŠä¿æããããšãã§ããŸãïŒ
var userRepository = { "title": _labels_[repository], "value": repository }; EnterpriseContext.put('Gitrepository', userRepository, 200000);
- BotContext – åœè©²ãããã®å
šãŠãŒã¶ãŒãååŸå¯èœãªããŒ/å€ã®ãã¢ã§ããäŸãã°ã âãŠãŒã¶ãŒã®å Žæã«åºã¥ããŠãã»ãã·ã§ã³å
ã®éèååŒã®ããã©ã«ãé貚ãèšå®ãããå ŽåããããŸã. åæååã§ã¯ã以äžã®JavaScriptã³ãŒãã§ããã©ã«ãã®ééããŒã¿ãcurrencyïŒBotã³ã³ããã¹ãïŒãšããŠä¿æããããšãã§ããŸãïŒ
var defaultCurrency = { TODO Custom JavaScript for location-based currency } BotContext.put('currency', defaultCurrency, 200000);
- UserContext – äŒæ¥ã®å
šãããããã³å
šãŠãŒã¶ãŒã䜿çšå¯èœãªããŒ/å€ãã¢ã§ãããããã®ããŒã¯èªã¿åãå°çšã§ããŠãŒã¶ãŒ ããŒã¿ãšããŠã·ã¹ãã ãæäŸããŸãã
- _id – Kore.ai ãŠãŒã¶ãŒã® IDã§ãã
- emailId – ãŠãŒã¶ãŒ IDãšé¢é£ããã¡ãŒã« ã¢ãã¬ã¹ã§ãã
- lastName – ãŠãŒã¶ãŒã®å§ã§ãã
- firstName – ãŠãŒã¶ãŒã®åã§ãã
- profImage – ãŠãŒã¶ãŒã®ç»åãã¢ãã¿ãŒ ãã¡ã€ã«åã§ãã
- profColour – ãŠãŒã¶ãŒã¢ã«ãŠã³ãã®è²ã§ãã
- activationStatus – ãŠãŒã¶ãŒã®ã¢ã«ãŠã³ã ã¹ããŒã¿ã¹ã§ãã
- title – ãŠãŒã¶ãŒã®ã¿ã€ãã«ã§ãã(å®çŸ©ãããŠããå Žå)
- orgId – ãŠãŒã¶ãŒ ã¢ã«ãŠã³ãã®çµç¹ ID ã§ãã(å®çŸ©ãããŠããå Žå)
- UserSession – äŒæ¥å
ã®ãã¹ãŠã®ãããã«å¯ŸããŠãç¹å®ãŠãŒã¶ãŒãå©çšã§ããããŒ/å€ã®ãã¢ãå®çŸ©ããŸããããšãã°ããŠãŒã¶ãŒã®æåšå°ãä¿åããŠå
šãããã§å©çšã§ããããã«ããŸãããã®äŸãšããã°ãŠãŒã¶ãŒã®éå€ã移åãããã³å®
é
䟿ã®ãµãŒãã¹ãªã©ã®äœæäœçœ®ã§ããåæååã§ã¯ã以äžã®JavaScriptã³ãŒãã§ããã©ã«ãäœçœ®ããŒã¿ãHomeLocation (UserSession)ãšããŠä¿æããããšãã§ããŸãïŒ
var location = { "title": labels[location], "value": { "latitude": location.latitude, "longitude": request.location.longitude } }; UserSession.put('HomeLocation', location, '20000');
- BotUserSessionâãŠãŒã¶ãŒã®å
¥åã«åºã¥ããŠBotãå©çšã§ããããŒ/å€ã®ãã¢ãå®çŸ©ããŸããäŸãã°ã 1ã€ä»¥äžã®Botã¿ã¹ã¯ã®ãŠãŒã¶ãŒäœçœ®ãä¿æãããå ŽåããããŸããæ
è¡ãããã®å ŽåããŠãŒã¶ãŒã¯ãåãããŒã ãšç®çå°ã®äœæã«åºã¥ããŠèªç©ºäŸ¿ãšããã«ãäºçŽããããšãã§ããŸããåæååã§ã¯ã以äžã®JavaScriptã³ãŒãã§ããã©ã«ãã®ããŒã ããã³è¡å
ããŒã¿ãHomeLocation (BotUserSession)ãDestinationLocation (BotUserSession)ãšããŠä¿æããããšãã§ããŸãïŒ
var homelocation = { "title": labels[request.sourceLocation], "value": { "latitude": request.sourceLocation.latitude, "longitude": request.sourceLocation.longitude } }; BotUserSession.put('HomeLocation', homelocation, '20000'); var destlocation = { "title": labels[request.destLocation], "value": { "latitude": request.destLocation.latitude, "longitude": request.destLocation.longitude } }; BotUserSession.put('DestinationLocation', destlocation, '20000â);
GET ããã³ PUT æ§æ
以äžã®ã³ãŒãã®äŸãšã¯åã³ã³ããã¹ãã¿ã€ãã®ããŒå€ãã¢ããPUTã®ã·ã³ã¿ãã¯ã¹ã衚瀺ããŸãã
"EnterpriseContext" : { "get" : function(key){...},//get the specified key "put" : function(key, value, ttl){...} //put the value at the key for the specified ttl, ttl is in minutes }, "BotContext" : { "get" : function(key){...},//get the specified key "put" : function(key, value, ttl){...} //put the value at the key for the specified ttl, ttl is in minutes }, "UserContext" : { "get" : function(key){...},//get the specified key }, "UserSession" : { "get" : function(key){...},//get the specified key "put" : function(key, value, ttl){...} //put the value at the key for the specified ttl, ttl is in minutes }, "BotUserSession" : { "get" : function(key){...},//get the specified key "put" : function(key, value, ttl){...} //put the value at the key for the specified ttl, ttl is in minutes }
äŸãã°ïŒ
  BotContext.put("topicSessionVariable","music",2000);   UserSession.put("firstName","Mary",20000);   UserContext.get("firstName");
Exception Syntax
ãŸããã¿ã¹ã¯ãèšå®ããåã«ãèªèšŒå€±æãªã©ã®ãšã©ãŒãææããããã®ã«ã¹ã¿ã ãšã©ãŒã¡ãã»ãŒãžãå®çŸ©ããããšãã§ããŸããäŸå€ãææããå Žåãã¿ã¹ã¯ã®èšçœ®ã¯äžæ¢ããŸãã以äžã®ã·ã³ã¿ãã¯ã¹ã䜿çšããŠäŸå€ãå€ããŸã:
{ "exceptions": { "message": " Error Message" } }
äŸãã°ã
var ex ={}; var exceptions={}; exceptions.message ='You can not proceed further with out valid permissions'; ex.exceptions = exceptions; print(JSON.stringify(ex)); //print is mandatory.
åæååã»ã¯ã·ã§ã³ã§ã¯ãã»ãã·ã§ã³ããŒãŸãã¯ãã®ä»ã®ã»ãã·ã§ã³å€æ°ã䜿çšããããšãã§ããŸãããå€ãèšå®ãããã¢ã¯ã»ã¹ãããããããšã¯ã§ããŸãããäŸãã°ã
var name = UserContext.get("firstName")+UserContext.get("lastName"); UserSession.put("fullName") = name;
å è¡ã³ãŒãã®äŸã§ã¯ãã¿ã¹ã¯ã®è©³çŽ°èšå®ã»ã¯ã·ã§ã³ã®ã»ãã·ã§ã³ããååŸãã£ãŒã«ãã§å®çŸ©ãããã¿ã¹ã¯ã®ãã©ã¡ãŒã¿ã䜿çšããŠãå€ãã»ãã·ã§ã³ã«å ¥åããŸããããŒã¯ãã«ã¹ã¿ã å®çŸ©ãããã³ã³ããã¹ãå€æ°ã®ãšããŠå®çŸ©ãããŸãã
ã¿ã¹ã¯åæååã®äŸ
以äžã®ã³ãŒãã¯ãã¿ã¹ã¯ã®åæååã§APIãªã¯ãšã¹ãã«å€æ°ãå è¡çºçãããŠãŒã¶ãŒIDããã³ã¡ãŒã«ã®ããŒã¿ãååŸããäŸã§ãã
var x = UserContext.get("identities"); var isEmailFound = false; for (var i = 0; i < x.length; i++) { if (x[i].type === "mapped") { var identity = x[i].val var arr = identity.split("/"); var pattern = /^cs/i; var result = arr[0].match(pattern); if (result) { isEmailFound = true; UserSession.put("rtmEmail", arr[1], '20000'); } } } if (!isEmailFound) { for (var j = 0; j < x.length; j++) { if (x[j].type === "email") { UserSession.put("rtmEmail", x[j].val, '20000'); } } }
ãªã¯ãšã¹ããã§ãŒã³ã®å®çŸ©
APIãªã¯ãšã¹ãã¿ãã®ãªã¯ãšã¹ãã»ã¯ã·ã§ã³ã§ã¯ãããªããã»ããµãŒãAPIãªã¯ãšã¹ããããã³ãã¹ãããã»ããµãŒãå«ããAPI ãªã¯ãšã¹ããã§ãŒã³ã®å®çŸ©ãã§ããŸããå°ãªããšãäžã€ã®APIãªã¯ãšã¹ããå¿ é ã§ãããããŠããã»ããµãŒã¯ä»»æã§ãã
APIãªã¯ãšã¹ã
ããããã¿ã¹ã¯ã«ããAPIãªã¯ãšã¹ããå®çŸ©ããŠãããŠã§ããµãŒãã¹ãžã®ã³ãŒã«ã§ã¿ã¹ã¯ãèµ·å§ããããšãã§ããŸããå°ãªããšãåã¿ã¹ã¯ã«1ç¹ã®APIãªã¯ãšã¹ããå¿ é ã§ããåAPIãªã¯ãšã¹ãã«ã¯ãå¿ ãåäžãè€æ°ã®ãªã¯ãšã¹ãURLsãšããŒã¹ãã¿ã¹ã¯ã«è¿œå ããŠãããŠã§ããµãŒãã¹ããã®ããŒã¿ãã€ããŒã転éãå§ãŸããŸãã
APIãªã¯ãšã¹ãã®èšå®
- APIãªã¯ãšã¹ãã¿ãã§ããªã¯ãšã¹ãã¿ããå±éããAPIãè¿œå ãã¯ãªãã¯ããŸãã
- 以äžã®åŠçã®èª¬æã®éãã«ãAPIã®è¿œå ãã€ã¢ãã°ã§ãã£ãŒã«ãã®å€ãæå®ããŸãã
- ååãã£ãŒã«ãã«ãèªåã®APIãªã¯ãšã¹ãã®ããã«ãAPIãªã¯ãšã¹ãã®ååãå ¥åããŸãã
- [ã¡ãœãã] ããããããŠã³ ãªã¹ããããã¿ã¹ã¯ã«äœ¿çšãã HTTP ã¡ãœãããéžæããŸãã以äžã®ãã¡ã®äžã€ïŒ
- POSTâ顧客æ å ±ããã¡ã€ã«ã®ã¢ããããŒããHTMLãã©ãŒã ã®äœ¿çšãªã©ããµãŒããŒã«ããŒã¿ãéä¿¡ããããã«äœ¿çšããŸãã
- PUT â察象ãšãªããªãœãŒã¹ã®ã³ã³ãã³ãããéä¿¡ãããã³ã³ãã³ãã«çœ®ãæããŸãã
- PATCHâ察象ãšãªããªãœãŒã¹ã®ã³ã³ãã³ãããéä¿¡ãããã³ã³ãã³ãã«çœ®ãæããŸãã
- DELETEâæ¢åã®ã¿ãŒã²ãããªãœãŒã¹ã®ã³ã³ãã³ããåé€ããŸãã
- GETâæ¢åã®ã¿ãŒã²ãããªãœãŒã¹ã®ã³ã³ãã³ããåé€ããŸãã
- URLãã£ãŒã«ãã«ã¯ãBotã¿ã¹ã¯ãããã»ã¹ã«å¿çããããã®URLãæå®ããŸããäŸïŒhttp://koremessenger.com/postURL.
äžèšã®äŸã®ããã«ã»ãã·ã§ã³å€æ°URLã䜿çšããããšãã§ããŸãïŒhttps://mySite.crm.ondemand.com/sap/c4c/odata/v1/c4codata/ServiceRequestCollection?$filter=ID eq '{id}' and ReporterEmail eq '{userEmail}'&$expand=ServiceRequestHistoricalVersion,ServiceRequestDescription
- ã³ãã¯ã¿ã䜿çšããŠã¢ã¯ã»ã¹ã®ãã£ãŒã«ãã§ãã¯ããéžæããŠKore.ai ConnectorãšãŒãžã§ã³ãã䜿çšããŠKore.ai Botãžã®ã¢ã¯ã»ã¹ãæå¹ã«ããŸãããã®ãªãã·ã§ã³ã¯ãKore.ai ã³ãã¯ã¿ ãšãŒãžã§ã³ããäŒæ¥ã®ç€Ÿå ãããã¯ãŒã¯ã§æ§æãæå¹åãããŠããå Žåã«è¡šç€ºãããŸãã詳现ã«ã€ããŠã¯ãKore.ai Connectorã®äœ¿çšãã芧ãã ããã
- ããããŒã¿ãã®ã³ã³ãã³ãã¿ã€ããã£ãŒã«ãã§ããµã³ãã«å¿çããŒã¿ã«ä»¥äžã®ãµããŒããããŠããããŒã¿ã¿ã€ãã®ãããããéžæããŸãã
- JSON – JavaScript Object Notation ã¯ã人éãå€èªã§ããããã¹ãã§ããŒã¿ ãªããžã§ã¯ããå±æ§ãšå€ã®ãã¢ã§éä¿¡ããããªãŒãã³ãªæšæºãã©ãŒãããã§ããJSON ã䜿ã£ãŠãKore.ai ãµãŒããŒãšããã Web ã¢ããªã±ãŒã·ã§ã³ã®éã§ããŒã¿ãäŒéããããšãã§ããŸãã
- RSS – Rich Site SummaryãReally Simple Syndicationã¯ãããã°ã®ãšã³ããªãŒããã¥ãŒã¹ã®èŠåºããé³å£°ãåç»ãªã©ãé »ç¹ã«æŽæ°ãããæ å ±ãå ¬éããããã«äœ¿çšãããæšæºåãã©ãŒãããã®äžçŸ€ã§ãã
- XML – æ¡åŒµå¯èœãªããŒã¯ã¢ããèšèªãšã¯ã人éãèªãã圢åŒãšæ©æ¢°ãèªãã圢åŒã®äž¡æ¹ã§ããã¥ã¡ã³ãããšã³ã³ãŒãããããã®ã«ãŒã«ãå®çŸ©ããããŒã¯ã¢ããèšèªã§ããWeb ãµãŒãã¹ã XML ããŒã¿ãåŠçããã®ã«ãXML ã¹ããŒãããã䜿çšãããŸãã
- URL ãšã³ã³ãŒãããã JSON – äºçŽæåã®ããã« JSON ã®ãšã³ã³ãŒãã䜿ã£ã URL ã§ãã
- CSV – ã«ã³ãåºåãã®å€ã®ãªã¹ãã§ãã
- æåâããã¹ãããŒã¹ã®ããŒå€ãã¢ã
- Twitter ãšã³ã³ãŒãããã JSON – äºçŽæåã®ããã« JSON ã®ãšã³ã³ãŒãã䜿ã£ã Twitter ã® URL ã§ãã
- Multipart/Form-data – ãŠãŒã¶ãŒããã©ãŒã ãããã¡ã€ã«ãã¢ããããŒãã§ããããã«ããå Žåã«ãHTTP POST ãªã¯ãšã¹ã ã¡ãœããã§ãã¡ã€ã«éä¿¡ãå¯èœã«ãããšã³ã³ãŒã ã¿ã€ãã§ãã
- Multipart/Related – åãæ å ±ããä»ã®ãã©ãŒã ã®ä»ã®ãã㣠ããŒãã§è¡šç€ºããå Žåã«äœ¿çšããŸãããã㣠ããŒãã¯è€é床ã®é«ãé ã«äžŠã¹ãããŠããŸãã
- Oracle ADF – Oracle Application Development Framework ã«äœ¿çšããŸãã
- [èªèšŒããããŒ] ã»ã¯ã·ã§ã³ã§ã次ã®å³ã«ç€ºãããã«ããããŒã®ããŒãæå¹åãŸãã¯ç¡å¹åããŸãã
- ãã©ã¡ãŒã¿ã¿ãã§ãäžå³ã®ããã«èªèšŒãã©ã¡ãŒã¿ãŸãã¯ããããŒã«å«ãããã©ã¡ãŒã¿ãéžæãŸãã¯åé€ããŸãã
- ä¿åãã¯ãªãã¯ããŠAPIãªã¯ãšã¹ãã®èšå®ãä¿åããŠéããŸãã
ããã»ããµãŒ
ããã»ããµãŒã§JavaScriptã䜿çšããŠWebãµãŒãã¹ãžã®APIãªã¯ãšã¹ãã®åãéäžããŸãã¯åŸã§ããŠãŒã¶ãŒã»ãã·ã§ã³ã§åéãããããŒã¿ã®æäœããããšãã§ããŸãã
ããã»ããµãŒãAPIãªã¯ãšã¹ãã®åã«å®çŸ©ã眮ããå Žåãããã¯ããªããã»ããµãŒã«ãªããŸããããªããã»ããµãŒã¯APIãªã¯ãšã¹ãã®å®è¡ã®åã«ã»ãã·ã§ã³ã®å€æ°ããå
¥åã®ãã©ã¡ãŒã¿ãšå€ã®ç®¡çãå¯èœã«ããŸãã
ãã®ããã»ããµãŒã¯APIãªã¯ãšã¹ãã®åŸã«é 次é
眮ãšãããå Žåããã¹ãããã»ããµãŒãšãªããŸãããã¹ãããã»ããµãŒã䜿çšããŠã APIãªã¯ãšã¹ããããã€ããŒãå¿çããŒã«ã¢ã¯ã»ã¹ã§ããŸããããŒãã¢ã¯ã»ã¹ããã«ã¯ã以äžã®ãã¡ã®äžã€ã®ãã¹ãããã»ããµãŒã¿ã€ãã䜿çšããŠãã ãã:
- 解決: ããŒã«ã¢ã¯ã»ã¹ããã«ã¯ã次ã®ãã¡ã® 1 ã€ã®ãã¹ãããã»ããµ ã¿ã€ãã䜿çšããŸãã解決:
- å±é – ãã€ããŒãã«ããããŒã¿æååãåããŸãã
- æœåº – è€æ°ã®ãªããžã§ã¯ãããããã€ããŒãã®ç¹å®ãªããžã§ã¯ããžã®ãã¹ãæå®ããŸãã
- å²ãåœãŠ – ãã€ããŒãå¿çã®å€æ°åãæå®ããŸãã
ããªããã»ããµ
ããªããã»ããµã䜿çšãããšãã»ãã·ã§ã³ã®å€æ°ããã³ãã©ã¡ãŒã¿ãŒã§ API ãªã¯ãšã¹ãã®å®è¡åã«ãªã¯ãšã¹ã ãã©ã¡ãŒã¿ãŒã®ç®¡çãã§ããŸããããªããã»ããµãŒãå®çŸ©ããå Žåã, å¿ ãããã»ã¹ã®ã¿ã€ããã«ã¹ã¿ã ã«èšçœ®ãã次ã«è¡šç€ºããJavaScriptãšãã£ã¿ãŒã§ã³ãŒããå ¥åããŸããããªããã»ããµãŒã¯ãã«ã¹ã¿ã ã¿ã€ãã®ã¿ãšãªããŸãã
ããªããã»ããµãŒã®è¿œå
- APIãªã¯ãšã¹ãããŒãžã§ããªã¯ãšã¹ãã¿ããå±éããããã»ããµãŒãè¿œå ãã¯ãªãã¯ããŸãã
- ååãã£ãŒã«ãã«ããã»ããµãŒã®ååãå ¥åããŸãã
- ããã»ããµãŒã®ã¿ã€ãããããããŠã³ãªã¹ãã§ãããªããã»ããµãŒã«ã«ã¹ã¿ã ãéžæããå¿ èŠããããŸãã
- å¿
èŠã«å¿ããŠã以äžã®æ§æã§ãªã¯ãšã¹ããã©ã¡ãŒã¿ãæäœããã³ãŒããè¿œå ããŸãã
{ "fields": { "payloadFields": { // to set value to a payload field "key1": "value1", // Payload fields are not applicable for Alert tasks. "key2": "value2".... }, "headerFields": { // to set value to a header field "key1": "value1", "key2": "value2".... }, "pathFields": { // to set value to a path field or query field. "key1": "value1", "key2": "value2".... } } }
äŸãã°ã以äžã®ã³ãŒãã¹ããããã¯ããŒã¹ãã£ãŒã«ãããŸãã¯APIãªããžã§ã¯ãã®ã¯ãšãªãŒãã£ãŒã«ãã®èšçœ®ã«äœ¿çšããããšãå¯èœã§ã:
var fields= {}; var pathFields = {}; pathFields.fullName = UserContext.get("firstName")+UserContext.get("lastName") fields.pathFields = pathFields; var finalObject = {}; finalObject.fields = fields; print(JSON.stringify(finalObject));
åœè©²ã³ãŒãã«ãããã³ãã»ãã·ã§ã³å€æ°ãšããŠä¿åãããŠããŠããã³ãããããã«å¯Ÿå¿ããŠããå Žåãããªããã»ããµããã® JSON ãã€ããŒãå¿çã¯æ¬¡ã®ããã«ãªããŸãã
{ fields: { "pathFields": { "key": "fullName", "value": "John Smith" } } }
äžèšã®ããŒå€ãã¢ãŒã®äŸã§ã¯ãå®ã®APIãªã¯ãšã¹ãã³ãŒã«ã®å ã«å€æ°ã¯ã»ãã·ã§ã³å€æ°ã«èšå®ãããŸãã
var fields = {}; var pathFields = {}; var UserEmailID = UserSession.get("rtmEmail"); pathFields.userEmail = UserEmailID; fields.pathFields = pathFields; var finalObject = {}; finalObject.fields = fields; print(JSON.stringify(finalObject));
- [ä¿å] ãã¯ãªãã¯ããŠãããã»ããµãŒãè¿œå ãã€ã¢ãã°ãä¿åããŠéããŸãã
ãã¹ãããã»ããµãŒã®è¿œå
ã䜿çšã®ãŠã§ããµãŒãã¹ãã1ç¹ä»¥äžã®APIãªã¯ãšã¹ãã§ãKore.ai ãã¹ãããã»ããµãŒã«ãããæã¿ã®ããŒã¿ãã€ããŒããååŸããå ŽåããããŸãã
ã«ã¹ã¿ã ãã¹ãããã»ããµãŒã®å®çŸ©
ããã«ã¹ã¿ã ãã¹ãããã»ããµãŒãäœæãšããå Žåã以äžã®ã·ã³ã¿ãã¯ã¹ã§åã®APIãªã¯ãšã¹ãã®å¿çããŒãã¢ã¯ã»ã¹ã§ããŸãã
payload[0].{ key }
JSON Syntax
{ "payload": { "key1" : "value1", "key2" : "value2" } }
äŸ
var final = {}; var data = payload[0]; //Accessing the response of the previous API object data.title[0] = 'New value for key here'; final.payload = data; // Updating the response of the API object print(JSON.stringify(final)); // This step is mandatory
ã«ã¹ã¿ã ããã»ããµãŒã®å Žåãå¿ ãæåŸã®å¿çã瀺ããå è¡ã³ãŒãã®ãšããŠå°å·åºããŠãã ãããããã§ãªããã°ã空ã®å¿çãè¿ããŸãã以äžã®ã·ã³ã¿ãã¯ã¹ã䜿çšããŸã:
print(JSON.stringify( <<object>> ));
æšæºãªãã¹ãããã»ããµãŒã®èšå®
以äžã®ã¹ãããã«åŸã£ãŠæšæºã®ãã¹ãããã»ããµãŒãè¿œå ããŠãã ããïŒ
- APIãªã¯ãšã¹ãã¿ãã§ããªã¯ãšã¹ãã¿ããå±éããããã»ããµãŒãè¿œå ãã¯ãªãã¯ããŸãã
- Kore.aiã¯ããã¹ãããã»ããµãŒçšã®ã«ã¹ã¿ã ã³ãŒããäœæãã代ããã«äœ¿çšã§ããæšæºãã¹ãããã»ããµãŒã®ã»ãããæäŸããŸããããã»ã¹ã®ã¿ã€ããã£ãŒã«ãã«ã以äžã®4ã€ã®æšæºããã»ããµãŒã®ã¿ã€ãã®ãã¡ã®äžã€ãéžæããŸãïŒ
- 解決ïŒ1ã€ã®ãã€ããŒãå¿çã®çµæãã2ã€ç®ã®ãªã¯ãšã¹ãã®å
¥åãšããŠäœ¿çšããããšãã§ããŸããäŸãã°ãããã»ããµãŒãè¿œå ãã¯ãªãã¯ããŠãããã»ããµãŒã®ååãå
¥åããããã»ããµãŒã®ã¿ã€ãã解決ã«ãããŒãå€æ°ã®ååã«èšå®ããæåã®APIãªã¯ãšã¹ãããã®å€æ°ã䜿çšããŠæçš¿URLãå®çŸ©ããŸããFor example, https://app.asana.com/api/1.0/projects/{project_id} that returns the id field in the payload response as:
... "id":80468818418144, <br/> "created_at":"2016-01-14T05:34:35.848Z", "modified_at":"2016-01-20T04:29:52.505Z", "owner":{ "id":73114591129714, "name":"jaganmohan.evuri" }, ...
ããã¯æ¬¡ã«å€æ°å ¥åãšããŠäžèšã®Post URLã®ããã«:
https://app.asana.com/api/1.0/projects/{id}/tasks?opt_fields=completed,modified_at
You must also specify the HTML Content Type expected in the payload response as well as the HTML Request method.
詳现ã«ã€ããŠã¯ãã¿ã¹ã¯ã®ã»ãã·ã§ã³å€æ°ãšã³ã³ããã¹ãå€æ°ã䜿çšãåç §ããŠãã ããã - å±éïŒåããšããããŒã¿ãå«ãæååã®ãã€ããŒãã®å ŽåãäŸãã°ãããã»ããµãŒãè¿œå ãã¯ãªãã¯ããããã»ããµãŒã®ååãå
¥åããããŒãã£ãŒã«ããããŒã¿ãªã©ã«èšå®ããããã»ããµãŒã¿ã€ããå±éã«èšå®ããŠã以äžã®ã³ãŒãäŸã§èŠçŽ ã®å
容ãåã蟌ã¿ãé
åã®åé
ç®ãæœåºããŸãã
{ "attribution": null, "tags": [], "type": "image", "location": null, "comments": { "count": 51, "data": [{ "created_time": "1453900980", "text": "43rd", "from": { "username": "kore_hyd", "profile_picture": "https://scontent.cdninstagram.com/t51.2885-19/11906329_960233084022564_1448528159_a.jpg", "id": "2056218675", "full_name": "Kore.ai Hyd" }, "id": "1171728804843572377" }, { "created_time": "1453901222", "text": "44th", "from": { "username": "kore_hyd", "profile_picture": "https://scontent.cdninstagram.com/t51.2885-19/11906329_960233084022564_1448528159_a.jpg", "id": "2056218675", "full_name": "Kore.ai Hyd" }, "id": "1171730841379491107" }, { "created_time": "1453901997", "text": "45th", "from": { "username": "kore_hyd", "profile_picture": "https://scontent.cdninstagram.com/t51.2885-19/11906329_960233084022564_1448528159_a.jpg", "id": "2056218675", "full_name": "Kore.ai Hyd" }, "id": "1171737339782450909" }, { "created_time": "1453902304", "text": "46th and 47th", "from": { "username": "kore_hyd", "profile_picture": "https://scontent.cdninstagram.com/t51.2885-19/11906329_960233084022564_1448528159_a.jpg", "id": "2056218675", "full_name": "Kore.ai Hyd" }, "id": "1171739915923967873" }, { "created_time": "1453902638", "text": "48th", "from": { "username": "kore_hyd", "profile_picture": "https://scontent.cdninstagram.com/t51.2885-19/11906329_960233084022564_1448528159_a.jpg", "id": "2056218675", "full_name": "Kore.ai Hyd" }, "id": "1171742713994497101" }, { "created_time": "1453964684", "text": "49th", "from": { "username": "venkataphani.ailavarapu", "profile_picture": "https://scontent.cdninstagram.com/t51.2885-19/11906329_960233084022564_1448528159_a.jpg", "id": "2679234818", "full_name": "Phani" }, "id": "1172263199715314941" }, { "created_time": "1453964710", "text": "50th", "from": { "username": "kore_hyd", "profile_picture": "https://scontent.cdninstagram.com/t51.2885-19/11906329_960233084022564_1448528159_a.jpg", "id": "2056218675", "full_name": "Kore.ai Hyd" }, "id": "1172263415747136776" }, { "created_time": "1453964717", "text": "51st", "from": { "username": "kore_hyd", "profile_picture": "https://scontent.cdninstagram.com/t51.2885-19/11906329_960233084022564_1448528159_a.jpg", "id": "2056218675", "full_name": "Kore.ai Hyd" }, "id": "1172263474056350986" }] ...
- æœåºïŒäŸãã°ãããã»ããµãŒãè¿œå ãã¯ãªãã¯ããããã»ããµãŒã®ååãå
¥åããããŒãã£ãŒã«ããã«èšå®ããæœåºããããã»ã¹ã®ã¿ã€ããéžæããŠã次ã®ãã€ããŒãå¿çã§ãªããžã§ã¯ãããŒã¿ã䜿çšããŸãã
{ "user": { "full_name": "Kore.ai Hyd", "id": "2056218675", "profile_picture": "https://instagramimages-a.akamaihd.net/profiles/anonymousUser.jpg", "username": "kore_hyd" }, ... }, "likes": { "data": [{ "full_name": "kstream002", "id": "2100724876", "profile_picture": "https://instagramimages-a.akamaihd.net/profiles/anonymousUser.jpg", "username": "kstream002" } }, ... }
- å²ãåœãŠïŒå²ãåœãŠããã»ããµãŒã䜿çšããã°ããã€ããŒãã®å¿çãžã®å€æ°åã®æå®ãåºæ¥ãŸããããå¿
èŠãªå ŽåãäŸãã°ããã€ããŒãã«ãã€ããŒãå¿çããŒã¿ã®ããŒãå«ãŸããŠããªãå ŽåãäŸãã°ãããã»ã¹ã®ã¿ã€ããå²ãåœãŠã«èšçœ®ãã次㫠åºåå€æ°ãã£ãŒã«ãã«ã3ã€ã®ãªããžã§ã¯ãã®æååã§ãã次ã®ãã€ããŒãã®åºåå€æ°ãå®çŸ©ããããšãã§ããŸãã
[ { "Cost": "$0.00", "Desc1": "$150 bonus after $500 of purchases in the first 3 months from account opening. ", "Desc2": "Earn unlimited cash back Earn unlimited 1.5% cash back on every purchase ââ¬â it's automatic. Redeem for cash back ââ¬â any amount, any time. ", "Keywords": "weekend dining,online,groceries,fuel,rewards,rebate,365,allaround", "OfferName": "Freedom Unlimited", "OfferType": "CreditCard", "Status": "1", "imageURL": "http://www.psdgraphics.com/file/credit-card.jpg", "id": "5b5195e264bbd800" }, { "Cost": "$95.00", "Desc1": "Pay 0 balance transfer fee when you transfer a balance during the first 60 days.", "Desc2": "Jumpstart your financial fitness Get an introductory fee for balance transfers, save on interestâ⬠, and get your free monthly credit score.", "Keywords": "privileges,rebate,health,wellness,great eastern,insurance,policy,installments,split,cashflo", "OfferName": "Premium Plus", "OfferType": "CreditCard", "Status": "1", "imageURL": "http://i.imgur.com/rMOXYql.jpg", "id": "5caf2155873f89c8" }, { "Cost": "$10.00", "Desc1": "Pay 0 balance transfer fee when you transfer a balance during the first 60 days.", "Desc2": "Jumpstart your financial fitness Get an introductory fee for balance transfers, save on interestâ⬠, and get your free monthly credit score.", "Keywords": "privileges,rebate,health,wellness,great eastern,insurance,policy,installments,split,cashflo", "OfferName": "Frequent Flyer", "OfferType": "CreditCard", "Status": "1", "imageURL": "http://www.moneychoice.org/wp-content/uploads/2016/01/credit-card-calculator-image.png.jpeg", "id": "c0b05bc3062658ee" } ]
åºåå€æ°ãã£ãŒã«ãã§ãé åãè¡šãå€æ°ããšããŠæå®ããŸããäŸãã°ãããUXãã¬ãã¥ãŒæ©èœã䜿çšããå ŽåãKore.ai ããã®å¿çã¯ä»¥äžã®éãã§ãã
{ "response": { "offers": [ { "Cost": "$0.00", "Desc1": "$150 bonus after $500 of purchases in the first 3 months from account opening. ", "Desc2": "Earn unlimited cash back Earn unlimited 1.5% cash back on every purchase ââ¬â it's automatic. Redeem for cash back ââ¬â any amount, any time. ", "Keywords": "weekend dining,online,groceries,fuel,rewards,rebate,365,allaround", "OfferName": "Freedom Unlimited", "OfferType": "CreditCard", "Status": "1", "imageURL": "http://www.psdgraphics.com/file/credit-card.jpg", "id": "5b5195e264bbd800" }, { "Cost": "$95.00", "Desc1": "Pay 0 balance transfer fee when you transfer a balance during the first 60 days.", "Desc2": "Jumpstart your financial fitness Get an introductory fee for balance transfers, save on interestâ⬠, and get your free monthly credit score.", "Keywords": "privileges,rebate,health,wellness,great eastern,insurance,policy,installments,split,cashflo", "OfferName": "Premium Plus", "OfferType": "CreditCard", "Status": "1", "imageURL": "http://vignette3.wikia.nocookie.net/objectmayhem/images/5/52/Credit_card.png/revision/latest?cb=20130629150408", "id": "5caf2155873f89c8" } ] } }
åºåå€æ°ãã«èšå®ãããšãBotãã«ããŒã§å€æ°ããšããŠãäŸãã°ä»¥äžã®ããã«ã¿ã¹ã¯å¿çãªããžã§ã¯ãã§äœ¿çšããããšãã§ããŸãã
print(JSON.stringify(response)); var data = response.offers for (i = 0; i < data.length; i++) { print('<a href="' + data[i].imageURL + '" target="_blank">' + data[i].OfferName + '</a><br>'); print(data[i].Desc1) print('<br>'); print('<br>'); print('Cost: ' + data[i].Cost) print('<br>'); if (i < data.length - 1) { print('<br>'); print('<br>'); } }
- 解決ïŒ1ã€ã®ãã€ããŒãå¿çã®çµæãã2ã€ç®ã®ãªã¯ãšã¹ãã®å
¥åãšããŠäœ¿çšããããšãã§ããŸããäŸãã°ãããã»ããµãŒãè¿œå ãã¯ãªãã¯ããŠãããã»ããµãŒã®ååãå
¥åããããã»ããµãŒã®ã¿ã€ãã解決ã«ãããŒãå€æ°ã®ååã«èšå®ããæåã®APIãªã¯ãšã¹ãããã®å€æ°ã䜿çšããŠæçš¿URLãå®çŸ©ããŸããFor example, https://app.asana.com/api/1.0/projects/{project_id} that returns the id field in the payload response as:
- è¿œå ãã¯ãªãã¯ããŠAPIãªã¯ãšã¹ããä¿åããŠããå¥ã®APIãªã¯ãšã¹ããäœæããããè¿œå ãšçµäºãã¯ãªãã¯ããŠAPIãªã¯ãšã¹ããä¿åããŠãããã€ã¢ãã°ãã¯ããŒãºéããŸãã
è€æ°ã®APIãªã¯ãšã¹ãã®å Žåããªã¯ãšã¹ããã·ãŒã±ã³ã·ã£ã«ã®äžŠã¹ã§äžŠã¹çŽããŠããå šäœã®ããŒã¿å¿çãååŸããããã«ããŠãã ãããäŸãã°ãã¯ãŒã¯ã¹ããŒã¹ã®ãªã¹ãããããžã§ã¯ãã®ãªã¹ãããããŠæåŸã«ãŠãŒã¶ãŒã®ãªã¹ããèŠæ±ããå ŽåããããŸã. äžã«ç§»åã¢ã€ã³ã³ãšäžã«ç§»åã¢ã€ã³ã³ã䜿çšããŠãAPIãªã¯ãšã¹ãã®é çªãå ¥ãæ¿ããããšãã§ããŸãã
泚æ: APIãªã¯ãšã¹ããåé€ããå Žåã確èªãã€ã¢ãã°ã¯è¡šç€ºãããŸãããç¶è¡ãŸãã¯ä¿åãã¯ãªãã¯ãããšãåé€æäœã¯æ°žç¶çã«è¡ãããå ã«æ»ãããšã¯ã§ããŸããã
å¿çãµã³ãã«ã®è¿œå
å¿çãµã³ãã«ã»ã¯ã·ã§ã³ã§ã¯ãã¿ã¹ã¯ã®ãã€ããŒãã§åãåãããšãæåŸ ãããããŒãšå€ã®ãã¢ã®äŸãå ¥åãŸãã¯è²Œãä»ããããšãã§ããŸããå¿çãµã³ãã«ãå®çŸ©ããå ŽåãåºåããŒã¿ã®åŠçã«å¿çãµã³ãã«ã»ã¯ã·ã§ã³ã§æå®ãããããŒã¯ããããããŠã³éžæè¢ãšããŠäœ¿çšå¯èœã§ãã
ãµã³ãã«å¿çã®è¿œå
- [API ãªã¯ãšã¹ã] ã¿ãã§ã[ãµã³ãã«å¿ç] ã»ã¯ã·ã§ã³ãå±éããŸãã
- JSONå¿çã®ãã€ããŒãã®ããŒãšå€ã®çµã¿åãããå«ãå¿çãµã³ãã«ãå
¥åããŠãã ããã以äžã®ãã¡ã®äžã€ãããŠãã ããïŒ
- å¿çã®æ§åŒãåäžãå¯èœã®JSONæ§é ãšããŠæžåŒèšå®ããã«ã¯ãäžå³ã®éãã«æžåŒèšå®æžã¿ã¢ã€ã³ã³ãã¯ãªãã¯ããŸãã
- å¿çã®æ§åŒãã·ãªã¢ã«ãã³ããŒãä»ããããã³ã³ãã¯ããªåœ¢åŒã§æžåŒèšå®ããã«ã¯ãäžå³ã®éãã«æžåŒæªèšå®ã¢ã€ã³ã³ãã¯ãªãã¯ããŸãã
- å¿çã®æ§åŒãåäžãå¯èœã®JSONæ§é ãšããŠæžåŒèšå®ããã«ã¯ãäžå³ã®éãã«æžåŒèšå®æžã¿ã¢ã€ã³ã³ãã¯ãªãã¯ããŸãã
ãŠã§ããµã€ãã®ãã¬ãã¥ãŒã³ã³ãã³ã
ãããŠã§ããµãŒãã¹ã¯ãªã³ã¯ãéããŠãã€ããŒãå¿çã®äžéšãšããŠã¡ãã£ã¢ããã¬ãã¥ãŒãããŸãããã®ã»ã¯ã·ã§ã³ã§ã¯ããã¬ãã¥ãŒãªã³ã¯ã®æå¹ãç¡å¹ããããŠãã€ããŒãã§ããŒã¹ãããªã³ã¯ã®å®çŸ©ãã§ããŸããããã©ã«ãã§ã¯ããŠã§ããµã€ããã¬ãã¥ãŒãªã³ã¯ãç¡å¹ãããŸãããäžå³ã¯ãã¯ããéžæããå Žåã®æçš¿ã§ãŠã§ããµã€ãã®ãªã³ã¯ã³ã³ãã³ãããã¬ãã¥ãŒã»ã¯ã·ã§ã³ã®äŸã§ãã
æå¹ã«ããå Žåããã€ããŒãå
ã®ãã¬ãã¥ãŒãªã³ã¯ãžã®ãã¹ããã€ããŒãã®ã«ãŒãã«ãªãå Žåããªã³ã¯ãžã®ãã¹ïŒtoPreviewïŒãã£ãŒã«ãã§å®çŸ©ããŸããäŸãã°ãäžèšã®ã³ãŒãã®äŸã¯RSSãã€ããŒããããŒã¹ãããã¬ãã¥ãŒãžãšã¯
... "item": [ { "title": "U.S. to Boost Refugee Intake by 30,000 by 2017", "guid": { "-isPermaLink": "false", "#text": "SB12418904751422433479504581245034032986752" }, "link": "http://www.wsj.com/articles/john-kerry-says-u-s-to-admit-30-000-more-refugees-in-next-2-years-1442768498?mod=fox_australian", ...
æçš¿ã§ãŠã§ããµã€ãã®ãªã³ã¯ã³ã³ãã³ãããã¬ãã¥ãŒãæå¹ã®å Žåããã¬ãã¥ãŒãªããžã§ã¯ããéžæããŸããããšãã°ã
- ã¿ã€ãã«ã®ãã¬ãã¥ãŒ – Web ãµã€ã ã³ã³ãã³ãã®ã¿ã€ãã«ã衚瀺ããŸãã
- 説æã®ãã¬ãã¥ãŒ – Web ãµã€ã ã³ã³ãã³ã説æã衚瀺ããŸãã
- ã¡ãã£ã¢ (åç») ã®ãã¬ãã¥ãŒ – Web ãµã€ã ã³ã³ãã³ãããã®åç»ã®ãªã³ã¯ã衚瀺ã§ããããã«ããŸãã
- ã¡ãã£ã¢ (ç»å) ã®ãã¬ãã¥ãŒ – Web ãµã€ã ã³ã³ãã³ãããã®ç»åã®ãªã³ã¯ã衚瀺ã§ããããã«ããŸãã