ã¯ããã«
ã第3åã¾ã§ã§ãOpenSocialã¢ããªã±ã¼ã·ã§ã³ã®åºç¤ãèãã¦ãã¾ãããããããä»åããæ¬æ ¼çã«ã½ã¼ã·ã£ã«æ å ±ãæ±ããã¨ã«ãªãã¾ããä»åã¯OpenSocialã³ã³ããã¸ã®ãªã¯ã¨ã¹ããã©ã®ããã«è¡ãã®ããã¾ãã½ã¼ã·ã£ã«æ å ±ãåå¾ããããã«ã¯ã©ãããã°ãããã¨ããé¨åã解説ãã¾ãã
DataRequestãªãã¸ã§ã¯ãã«ã¤ãã¦
ãOpenSocialã¢ããªã±ã¼ã·ã§ã³ãã½ã¼ã·ã£ã«æ å ±ãæ±ãéã«ã¯ã第1åã§èª¬æããã¨ãããOpenSocialã³ã³ããã¸æ å ±ããªã¯ã¨ã¹ãããå¿ è¦ãããã¾ããOpenSocial APIã§ãã®å½¹å²ãæ ãã®ãDataRequestãªãã¸ã§ã¯ãã§ããDataRequestãªãã¸ã§ã¯ãã使ã£ãã³ã³ããã¸ã®ã¢ã¯ã»ã¹ã®æ¦å¿µå³ã以ä¸ã«ç¤ºãã¾ãã
ãOpenSocialã¢ããªã±ã¼ã·ã§ã³ã¯ãDataRequestãªãã¸ã§ã¯ãã®sendã¡ã½ããã使ã£ã¦OpenSocialã³ã³ããã«ã½ã¼ã·ã£ã«æ å ±ã®ãªã¯ã¨ã¹ããè¡ããå¦ççµæã¯DataResponseãªãã¸ã§ã¯ãã¨ãã¦è¿ãããå¼ã³åºãæã«æå®ããã³ã¼ã«ããã¯é¢æ°ã§å¦çããã¾ãã
ãDataRequestãªãã¸ã§ã¯ãã«è¤æ°ã®ãªã¯ã¨ã¹ããå«ã¾ãããã¨ã«æ³¨ç®ãã¦ãã ãããä¸è¬ã«OpenSocialã¢ããªã±ã¼ã·ã§ã³ã§ã½ã¼ã·ã£ã«æ å ±ãæ±ãå ´åãè¤æ°ã®ã½ã¼ã·ã£ã«æ å ±ãæ±ããã¨ã¯å°ãªãããã¾ãããä¾ãã°ãååã®ãµã³ãã«ã§ã¯
- VIEWERã®æ å ±
- OWNERã®æ å ±
- OWNERã®FRIENDSã®æ å ±
ã¨ãã3ã¤ã®ã½ã¼ã·ã£ã«æ å ±ãä¸ç»é¢ã«è¡¨ç¤ºãã¦ãã¾ããã
ããã®ãããªå ´åã«ãã³ã³ããã«å¯¾ãã¦ããããã«ã½ã¼ã·ã£ã«æ å ±ããªã¯ã¨ã¹ãããã¨ããµã¼ãå´ã®è² è·ãä¸ããã¾ãããéåæéä¿¡ãè¡ãããã®ã¯ã©ã¤ã¢ã³ãå´ã®ã³ã¼ã«ããã¯è¨è¿°ãè¤éãªãã®ã¨ãªãã¾ãããã®ããOpenSocialã§ã¯ãè¤æ°ã®ãªã¯ã¨ã¹ããDataRequestãªãã¸ã§ã¯ãã«ã¾ã¨ãã¦æ ¼ç´ããä¸åã®éåæéä¿¡ã§ã¾ã¨ãã¦ã³ã³ããã§å¦çã§ããããã«ãªã£ã¦ãã¾ããå³ã«ç¤ºããããã«ãDataRequestãªãã¸ã§ã¯ãã«ã¯ãªã¯ã¨ã¹ããã¨ã«ååãä»ãã¦æ ¼ç´ããçµæã®DataResponseãªãã¸ã§ã¯ãã«ã¯ããªã¯ã¨ã¹ãã®éã¨åãååã§å®è¡çµæãæ ¼ç´ããã¾ãã
DataRequestã§æ±ããã¨ã®ã§ãããªã¯ã¨ã¹ã
ãDataRequestãªãã¸ã§ã¯ãã«ã¯ãæ å ±ã®åå¾ãè¡ããªã¯ã¨ã¹ãã ãã§ã¯ãªããæ å ±ãæ´æ°ãããªã¯ã¨ã¹ããæ ¼ç´ãããã¨ãã§ãã¾ããDataRequestãªãã¸ã§ã¯ãã®ã¡ã½ããã§ããããã®ãªã¯ã¨ã¹ããä½æãããã¨ãã§ãã¾ãã以ä¸ã«DataRequestãªãã¸ã§ã¯ãã®ã¡ã½ããã¨ãä½æããããªã¯ã¨ã¹ãã®å¯¾å¿ã表ã§ç¤ºãã¾ãã
ã¡ã½ããå | æ¦è¦ |
newFetchPersonRequest | å人ã®æ å ±ãåå¾ãããªã¯ã¨ã¹ããä½æãã |
newFetchPeopleRequest | åéã®æ å ±ãåå¾ãããªã¯ã¨ã¹ããä½æãã |
newFetchActivitiesRequest | ã¢ã¯ãã£ããã£ãåå¾ãããªã¯ã¨ã¹ããä½æãã |
newFetchPersonAppDataRequest | å人ã®ã¢ããªã±ã¼ã·ã§ã³ãã¼ã¿ãåå¾ãããªã¯ã¨ã¹ããä½æãã |
newRemovePersonAppDataRequest | å人ã®ã¢ããªã±ã¼ã·ã§ã³ãã¼ã¿ãåé¤ãããªã¯ã¨ã¹ããä½æãã |
newUpdatePersonAppDataRequest | å人ã®ã¢ããªã±ã¼ã·ã§ã³ãã¼ã¿ãæ ¼ç´ãããªã¯ã¨ã¹ããä½æãã |
newFetchAlbumsRequest | å人ã®ã¢ã«ãã ãã¼ã¿ãåå¾ãããªã¯ã¨ã¹ããä½æããï¼OpenSocial v0.9ãã追å ãmixiã¢ããªã§ã¯ä½¿ç¨å¯è½ï¼ |
newFetchMediaItemsRequest | ã¢ã«ãã å ã®ã¡ãã£ã¢ãã¼ã¿ãåå¾ãããªã¯ã¨ã¹ããä½æããï¼OpenSocial v0.9ãã追å ãmixiã¢ããªã§ã¯ä½¿ç¨å¯è½ï¼ |
mixi.newFetchCommunityRequest | ã³ãã¥ããã£æ å ±ãåå¾ãããªã¯ã¨ã¹ããä½æããé¢æ°ï¼mixiå°ç¨ï¼ |
ããªããæ«å°¾ã«è¨ããmixi.newFetchCommunityRequesté¢æ°ã¯ãDataRequestãªãã¸ã§ã¯ãã®ã¡ã½ããã§ã¯ãªããmixiãç¬èªã«æ¡å¼µãããã®ã§ããããªã¯ã¨ã¹ãã®æµãã¨ãã¦ã¯ä»ã®ãã®ã¨åãã§ãã®ã§ãããã«è¨ãã¾ãã
ãã¾ããOpenSocial v0.9ãã追å ãããã¢ã«ãã é¢é£ã®ã¡ã½ããã¯ãåå¾ä»¥å¤ã«ãä½æãæ´æ°ãåé¤ãè¡ãããã®ãªã¯ã¨ã¹ããä½æããã¡ã½ãããæºåããã¦ãã¾ãã
ããããã®ãã¡ãæåã«æããnewFetchPersonRequestã¨newFetchPeopleRequestããã½ã¼ã·ã£ã«æ
å ±ãåå¾ããããã®ãªã¯ã¨ã¹ããä½æããããã®ã¡ã½ããã§ããä»åã¯å人ã®æ
å ±ãåå¾ããããã®newFetchPersonRequestã¡ã½ãããã次åã¯åéã®æ
å ±ãåå¾ããããã®newFetchPeopleRequestã¡ã½ããã説æãã¾ãããã®ä»ã®ãªã¯ã¨ã¹ãã®ããã¤ãã«ã¤ãã¦ã¯ãé£è¼ã®ä¸ã§æ±ã£ã¦ããã¾ãã