paraword.profile.SetMCML

Description

修改某个用户的MCML

Parameters

Required Name Type Description
required appKey string PE分配给您的应用程序标识键
sessionKey string 用户必须登录才能修改数据,并且暂时只修改自己的Profile
profile string 某个用户更新后的Profile的MCML表示形式
optional format int 要求返回数据的格式(0:XML 1:JSON),默认值为0

Example Return XML

<msg>
        <isSuccess>true</isSuccess>
</msg>

Example Return JSON

{"isSuccess":"true"}

Error Codes

当发生异常时,返回数据中会有一个“info”节点,该节点记录了异常信息。

Test Cases

case 1

case: paraworld.profile.SetMCML

Input:

{

  ["profile"] = "<pe:profile uid=\"6ea1ce24-bdf7-4893-a053-eb5fd2a74281\" xmlns:pe=\"http://www.paraengine.com/\"><app1 xmlns=\"\">HELLO WORLD</app1></pe:profile>",

  ["sessionKey"] = "e03b3286-2e42-49d6-8a74-736223bfedca",

  ["appKey"] = "fae5feb1-9d4f-4a78-843a-1710992d4e00",

}

Result:

Plug-in loaded: NPLWebServiceClient.dll

{

["isSuccess"] = true,

}

Topic revision: r5 - 2008-12-08 - CaoYF
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback