person 정보 가져오기
오픈소셜/소셜서버API |
2011/11/14 11:06
RPC call
fields 는 확장 필드. fields 가 없는 경우 기본 정보만 리턴 함.
@owner 은 가젯은 소유자.
@self 는 userID에 해당하는 회원정보를 가져오겠다는 뜻.
결과
POST http://{SNGHOST}/rpc?st={secure_token}
Requst Data
[
Requst Data
[
{
"method":"people.get",
"id":"getPerson",
"params":{
"userId":["@owner"],
"groupId":"@self"
}
}
] fields 는 확장 필드. fields 가 없는 경우 기본 정보만 리턴 함.
@owner 은 가젯은 소유자.
@self 는 userID에 해당하는 회원정보를 가져오겠다는 뜻.
결과
[
{
"id":"getPerson",
"result":{
"id":"3",
"isOwner":true,
"isViewer":true,
"displayName":"\ud0dc\ud76c \uae40",
"thumbnailUrl":"http:\/\/partuza\/images\/people\/3.96x96.jpg",
"profileUrl":"http:\/\/partuza\/profile\/3",
}
}
]
