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. JVM<一>----------运行时数据区域

    参考:1.JVM Specification: http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-2.html#jvms-2.5 2.< ...

  2. 将JSON转成DataSet(DataTable)

    方法1: /// <summary> /// 将JSON解析成DataSet只限标准的JSON数据 /// 例如:Json={t1:[{name:'数据name',type:'数据type ...

  3. Android开源项目第二篇——工具库篇

    本文为那些不错的Android开源项目第二篇——开发工具库篇,**主要介绍常用的开发库,包括依赖注入框架.图片缓存.网络相关.数据库ORM建模.Android公共库.Android 高版本向低版本兼容 ...

  4. hMailServer+foxmail配置局域网邮件服务器

    1.下载hMailServer并安装,请参考以下网址 https://www.hmailserver.org 2.安装foxmail,官网如下: http://www.foxmail.com/ 3.配 ...

  5. chrome控制台支持多行js模式

    shift + 回车 是换行 转自: http://zhidao.baidu.com/link?url=MYjGRwvVQYJwnr38VTHPJdzRNtF1COyqpeuAtBYbxFYJcu6p ...

  6. Best Time to Buy and Sell Stock | & || & III

    Best Time to Buy and Sell Stock I Say you have an array for which the ith element is the price of a ...

  7. maven3 junit4 spring3 jdk8 :junit一直报错,害的我几个星期都是这个错,你妹的!

    [org.springframework.test.context.junit4.SpringJUnit4ClassRunner]SpringJUnit4ClassRunner constructor ...

  8. Cocos2d-x 学习资料推荐

    最近在看Cocos2d-x ,官网的资料太少了,下面推荐一些比较好的教程,不断更新中. 1. cocos2d-x高级开发教程 如果你懂得objective-c 那么一定要看看这本书,这里面有许多C++ ...

  9. frameset框架下,刷新整个页面

    <a href="index.jsp" target="_parent">  index.jsp主frameset页面

  10. excel数据导入SQLite数据库

    参考:http://blog.baisi.net/?110653/viewspace-6725 1.excel表中最上面一行的字段名留着,留着以后导入的时候对应. 2.保存成csv格式,在选择文件类型 ...