1.简介

Call Index Doc:

http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/index.html

 

消息发送主要分为三类:

AddMemberMessageRTQ

见 eBay消息发送(1)

AddMemberMessageAAQToPartner

Seller和Buyer之间有订单关系的消息。

AddMemberMessagesAAQToBidder

见 eBay消息发送(3)

 

2. AddMemberMessageAAQToPartner

以MemberMessageType作为载体发送。

Seller和Buyer之间存在订单关系,且在Order line生命周期90天(3个月)以内,可以相互发送消息。

2.1输入字段

 

ItemID

提问所应对的Item唯一ID。

 

MemberMessage内容

Body

消息的主体,不支持原生的HTML,编码后的HTML也不会自动解码。最大长度为2000。

Subject

消息主题。

QuestionType

CustomCode

(in/out) Reserved for future or internal use.

CustomizedSubject

(in/out) Customized subjects set by the seller using SetMessagePreferences or the eBay Web site.

General

(in/out) General questions about the item.

MultipleItemShipping

(in/out) Questions related to the shipping of this item bundled with other items also purchased on eBay.

None

(in/out) No question type applies. This value doesn't apply to AddMemberMessageAAQToPartner. Note that the value of None can apply if Messages.Message.MessageType isn't set to AskSellerQuestion.

Payment

(in/out) Questions related to the payment for the item.

Shipping

(in/out) Questions related to the shipping of the item.

通常选General即可。

RecipientID

收件人,填入eBay用户ID。

SendID

发件人ID

 

2.2输出

 

 

ApiResponse内容

Ack

CustomCode

(out) Reserved for internal or future use.

Failure

(out) Request processing failed

Success

(out) Request processing succeeded

Warning

(out) Request processing completed with warning information being included in the response message

 

Errors

 

3.样例代码

 

  1. public
    void SendMemberMessagesAAQToPartner(ApiContext context, string subject, string body, string recipientID, string itemID, string senderID)
  2. {
  3.     try
  4.     {
  5.         var addCall = new AddMemberMessageAAQToPartnerCall(context);
  6.  
  7.         MemberMessageType memberMessageType = new MemberMessageType()
  8.         {
  9.             Subject = subject,
  10.             Body = body,
  11.             RecipientID = new StringCollection { recipientID },
  12.             QuestionTypeSpecified = true,
  13.             QuestionType = QuestionTypeCodeType.General
  14.         };
  15.         addCall.AddMemberMessageAAQToPartner(itemID, memberMessageType);
  16.     }
  17.     catch (Exception ex)
  18.     {
  19.         throw
    new EbayAPIExpcetion(ex.Message, ex.InnerException == null ? ex : ex.InnerException);
  20.     }
  21. }

eBay 消息发送(2)的更多相关文章

  1. eBay 消息发送(1)

      1.简介 Call Index Doc: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/index.html   消息发送主要 ...

  2. C#开发微信门户及应用(19)-微信企业号的消息发送(文本、图片、文件、语音、视频、图文消息等)

    我们知道,企业号主要是面向企业需求而生的,因此内部消息的交流显得非常重要,而且发送.回复消息数量应该很可观,对于大企业尤其如此,因此可以结合企业号实现内部消息的交流.企业号具有关注安全.消息无限制等特 ...

  3. [UWP]UWP中获取联系人/邮件发送/SMS消息发送操作

    这篇博客将介绍如何在UWP程序中获取联系人/邮件发送/SMS发送的基础操作. 1. 获取联系人 UWP中联系人获取需要引入Windows.ApplicationModel.Contacts名称空间. ...

  4. Kafka、RabbitMQ、RocketMQ消息中间件的对比 —— 消息发送性能-转自阿里中间件

    引言 分布式系统中,我们广泛运用消息中间件进行系统间的数据交换,便于异步解耦.现在开源的消息中间件有很多,前段时间我们自家的产品 RocketMQ (MetaQ的内核) 也顺利开源,得到大家的关注. ...

  5. iOS开发小技巧--即时通讯项目:消息发送框(UITextView)高度的变化; 以及UITextView光标复位的小技巧

    1.即时通讯项目中输入框(UITextView)跟随输入文字的增多,高度变化的实现 最主要的方法就是监听UITextView的文字变化的方法- (void)textViewDidChange:(UIT ...

  6. activemq安装与简单消息发送接收实例

    安装环境:Activemq5.11.1, jdk1.7(activemq5.11.1版本需要jdk升级到1.7),虚拟机: 192.168.147.131 [root@localhost softwa ...

  7. twitter storm源码走读之2 -- tuple消息发送场景分析

    欢迎转载,转载请注明出处源自徽沪一郎.本文尝试分析tuple发送时的具体细节,本博的另一篇文章<bolt消息传递路径之源码解读>主要从消息接收方面来阐述问题,两篇文章互为补充. worke ...

  8. ActiveMQ点对点的消息发送案例

    公司最近会用MQ对某些业务进行处理,所以,这次我下载了apache-activemq-5.12.0-bin把玩下. 基于练习方便需要,使用Windows的版本. 参考的优秀文章: activemq的几 ...

  9. 高效的TCP消息发送组件

    目前的.net 架构下缺乏高效的TCP消息发送组件,而这种组件是构建高性能分布式应用所必需的.为此我结合多年的底层开发经验开发了一个.net 下的高效TCP消息发送组件.这个组件在异步发送时可以达到每 ...

随机推荐

  1. 完美串(区间dp)

    完美串 Description 爱美之心人皆有之,GG也不例外.所以GG他对于完美串有一种热衷的爱.在GG眼中完美串是一个具有无比魅力的01子串.这个子串有之其魅力之处,对它取反后水平翻转,它又和它原 ...

  2. shell截取字符串

    image_tag="pangu-20151021102145\"" 1.用#号截取,符号-右面所有字符串 TMP=${image_tag#*-} echo $TMP 得 ...

  3. 存在使i > j || i <= j不成立的数吗?

    存在使i > j || i <= j不成立的数吗? 咋一看有点晕!一个数既不能大于也不能小于等于另一个数?那是什么数?答案是”非数“ 例子如下:‘ if(Double.NaN>Flo ...

  4. UIImageView 动画 / UIImage 方向

    UIImage 方向 UIImage imageOrientation是相对当前屏幕的横竖屏来判断方向 如果本身是横屏, 照片也是横屏的话, 方向是正方向 BOOL b1 = (originalIma ...

  5. invert

    http://docs.ruby-lang.org/en/2.0.0/Hash.html invert → new_hash Returns a new hash created by using h ...

  6. The CompilerVersion constant identifies the internal version number of the Delphi compiler.

    http://delphi.wikia.com/wiki/CompilerVersion_Constant The CompilerVersion constant identifies the in ...

  7. 用Matplotlib绘制二维图像

    唠叨几句: 近期在做数据分析,需要对数据做可视化处理,也就是画图,一般是用Matlib来做,但Matlib安装文件太大,不太想直接用它,据说其代码运行效率也很低,在网上看到可以先用Java做数据处理, ...

  8. Linux的Cgroup<实例详解>

    为什么要有cgroup Linux系统中经常有个需求就是希望能限制某个或者某些进程的分配资源.也就是能完成一组容器的概念,在这个容器中,有分配好的特定比例的cpu时间,IO时间,可用内存大小等.于是就 ...

  9. VIM替换、截取及追加操作

    参考: http://blog.csdn.net/love__coder/article/details/6739670 http://blog.csdn.net/love__coder/articl ...

  10. 【转】Linux Shell脚本调试技术

    本文转载自:https://www.ibm.com/developerworks/cn/linux/l-cn-shell-debug/ Shell脚本调试技术 本文全面系统地介绍了shell脚本调试技 ...