paraworld.actionfeed.PublishItemToUser

Description

只可发给好友

Parameters

Required Name Type Description
required sessionKey string 用户凭证。
to_uids string 以英文逗号(,)分隔的用户ID集合。当to_uids为空时表示发给当前登录用户自己和其所有好友
item string  
optional format int 返回的数据格式(0:XML 1:JSON),默认值为0

Example Return XML

<msg xmlns="">
        <isSuccess type="boolean">True</isSuccess>
</msg>

Example Return JSON

{"isSuccess":"true"}

Error Codes

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

Test Cases

case 1

Input:

{

        ["item"]="Hello World",

        ["to_uids"]="8ec11316-bc2e-491d-8f18-667501687e69,f5f3de7a-05b2-42a0-bd78-415a939020c2,e0dba2eb-8495-4b7d-8c3c-cf76d7cc85df",

        ["sessionKey"]="fec67110-f54b-4b63-b90d-1a4a52c82387",

}

Result:

{

       ["isSuccess"]=true,

}
Topic revision: r2 - 2008-12-06 - 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