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. 前端与php的sublime text3常用插件

    sublime text各种版本下载:http://sublimetext.iaixue.com/dl/ 1.安装Package Control 快捷键: ctrl+`     粘贴内容后Enter: ...

  2. Toast工具类,Android中不用再每次都写烦人的Toast了

    package com.zhanggeng.contact.tools; /** * Toasttool can make you use Toast more easy ; * * @author ...

  3. Mysql limit offset

    Mysql limit offset 假设数据库表student存在13条数据. 语句1:select * from student limit 9,4 语句2:slect * from studen ...

  4. 91SDK接入及游戏发布、更新指南

    原地址:http://bbs.18183.com/thread-99382-1-1.html本帖最后由 啊,将进酒 于 2014-4-17 10:23 编辑 1.联系91的商务人员建讨论组或者厂商建Q ...

  5. hiho一下第91周《Events Arrangement》(前半部分)

    题目大意 现在有一场持续时间为M的游乐会,在游乐会上有N种不同的表演节目,同一时间只能有一个节目进行表演. 每种节目最多可以表演K次,且每种节目具有自己的三个属性值a[i],b[i],c[i]. 当一 ...

  6. 【OpenStack】OpenStack系列6之Sheepdog环境搭建

    准备 repo配置 yum clean all yum makecache yum install -y make automake autoconf gcc nss-devel wget git g ...

  7. 完整java开发中JDBC连接数据库代码和步骤 JDBC连接数据库

    JDBC连接数据库 •创建一个以JDBC连接数据库的程序,包含7个步骤: 1.加载JDBC驱动程序: 在连接数据库之前,首先要加载想要连接的数据库的驱动到JVM(Java虚拟机), 这通过java.l ...

  8. operator new3种情况详解

    [本文链接] http://www.cnblogs.com/hellogiser/p/operator-new.html [代码]  C++ Code  12345678910111213141516 ...

  9. codeforces B. Fixed Points 解题报告

    题目链接:http://codeforces.com/problemset/problem/347/B 题目意思:给出一个包含n个数的排列a,在排列a中最多只能作一次交换,使得ai = i 这样的匹配 ...

  10. HDU2050离散数学折线分割平面

    折线分割平面 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Subm ...