paraworld.profile.GetMCML

Description

取得指定用户的Profile的MCML

Parameters

Required Name Type Description
required appKey string PE分配给您的应用程序标识键
uid string 被获取数据的用户的ID
optional format int 要求返回数据的格式(0:XML 1:JSON),默认值为0

Example Return XML

<msg xmlns="">
        <uid type="string">f114ae44-f5e5-4072-9e40-0d792a9cfe7a</uid>
        <apps>
                <param index="1">
                        <appKey type="string">Map_GUID</appKey>
                        <profile type="string">{["UserTiles"]={["tiles"]="412,",},}</profile>
                </param>
        </apps>
</msg>

Example Return JSON

{"uid":"e03b3286-2e42-49d6-8a74-736223bfedca","apps":[{"appKey":"ActionFeed_GUID",
"profile":"{[\"Story\"]=
{\"<pe:name uid='60463bd8-9a0a-4daa-b3ed-94b9db0ec819'\/>和<pe:name uid='e03b3286-2e42-49d6-8a74-736223bfedca'\/>成为了好朋友\",},}"}]}

Error Codes

当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录

Test Cases

case 1

Input:

{

        ["appKey"]="Map_GUID",

        ["uid"]="f114ae44-f5e5-4072-9e40-0d792a9cfe7a",

}

Result:


{

        ["apps"]={

                [1]={

                        ["appKey"]="Map_GUID",

                        ["profile"]="{[\"UserTiles\"]={[\"tiles\"]=\"412,\",},}",

                },

        },

        ["uid"]="f114ae44-f5e5-4072-9e40-0d792a9cfe7a",

}

case 2

Input:

{

        ["appKey"]="BCS_GUID",

        ["uid"]="6ea1ce24-bdf7-4893-a053-eb5fd2a74281",

}

Result:


{

        ["apps"]={

                ["appKey"]="BCS_GUID",

                ["profile"]="{}",
        },

        ["uid"]="6ea1ce24-bdf7-4893-a053-eb5fd2a74281",

}

Topic revision: r20 - 2009-05-07 - CaoYF
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback