MySpaceで独自に定義されているVIEWERの属性情報を取得します。
ドキュメントで定義されている通り「MyOpenSpace.Person.Field.*をとってきます。コード自体は前回のopensocial.Person.Fieldを取得するのと同じでOK。opensocial.Person.Fieldと同時に取得することもできます。
■実行結果
・MySpace
■ソース(XML)
いつか、いつかキレイにまとめたいのですが、とりあえずメモ書きレベルで各項目の説明をば。opensocial.Person.Fieldとかぶるけど、opensocial.Person.Fieldでは取れない項目がチラホラあります。歴史的な経緯なのかなぁ・・・。いつか統合されそうです。
MyOpenSpace.Person.Field.CITY→市区町村
A string representing a Person's city of residence.
MyOpenSpace.Person.Field.REGION→都道府県
A string representing a Person's state/province/region of residence.
MyOpenSpace.Person.Field.POSTALCODE→郵便番号
A string representing a Person's zip/postal code.
MyOpenSpace.Person.Field.COUNTRY→国(国を表す二桁のコード)
A string representing a Person's country of residence.
MyOpenSpace.Person.Field.HOMETOWN→出身地
A string representing a Person's city of birth.
MyOpenSpace.Person.Field.CULTURE→表示言語
A string representing a Person's locale.
MyOpenSpace.Person.Field.HEADLINE→プロフィール編集>基本情報>ひとことコメント
A string representing a Person's headline or shoutout.
※一瞬どこか分からなかった(^^;
MyOpenSpace.Person.Field.OCCUPATION→職業
A string representing a Person's current job and job history.
MyOpenSpace.Person.Field.ZODIAC_SIGN→星座。誕生日から算出しているっぽい
A string representing a Person's zodiac sign.
MyOpenSpace.Person.Field.MOOD→今の気分(全ページヘッダにあるヤツ)
A string representing a Person's current mood.
MyOpenSpace.Person.Field.MOOD_LAST_UPDATED→恐らくMOODの更新時間のようだが、現在機能していないっぽい。
A string representing a the last tme a Person's mood was updated.
MyOpenSpace.Person.Field.DESIRE_TO_MEET→プロフィール編集>自己紹介>フレンドになりたい人
A string representing a list of people the Person would like to meet.
MyOpenSpace.Person.Field.ONLINE_NOW→オンラインの真偽値だと思われるが、現在機能していないっぽい。
A string representing whether a person is currently online.

コメント (1)
OpenSocialのサンプルを探してさまよっていました
実践的で丁寧ですね
参考にさせてもらいます
投稿者: とおりすがり | 2009年02月17日 21:45
日時: 2009年02月17日 21:45