jingdong.seller.promotion.ordermode.add调用示例(Java


public JdClient client=new DefaultJdClient(SERVER_URL,accessToken,appKey,appSecret);

SellerPromotionOrdermodeAddRequest request=new SellerPromotionOrdermodeAddRequest();

request.setPromoId( 123 );
request.setFavorMode( 123 );
request.setQuota( "123,234,345" );
request.setRate( "123,234,345" );
request.setPlus( "123,234,345" );
request.setMinus( "123,234,345" );
request.setLink( "jingdong" );

SellerPromotionOrdermodeAddResponse response=client.execute(request);


jingdong.seller.promotion.ordermode.add调用示例(php


$c = new JdClient();

$c->appKey = appKey;

$c->appSecret = appSecret;

$c->accessToken = accessToken;

$c->serverUrl = SERVER_URL;

$req = new SellerPromotionOrdermodeAddRequest();

$req->setPromoId( 123 ); $req->setFavorMode( 123 ); $req->setQuota( "123,234,345" ); $req->setRate( "123,234,345" ); $req->setPlus( "123,234,345" ); $req->setMinus( "123,234,345" ); $req->setLink( "jingdong" );

$resp = $c->execute($req, $c->accessToken);


jingdong.seller.promotion.ordermode.add调用示例(python


import jd.api

import json

from jd.api.rest.SellerPromotionOrdermodeAddRequest import SellerPromotionOrdermodeAddRequest

jd.setDefaultAppInfo(appkey, secret)

a = SellerPromotionOrdermodeAddRequest(url,port)

a.promoid = 123 a.favormode = 123 a.quota = "123,234,345" a.rate = "123,234,345" a.plus = "123,234,345" a.minus = "123,234,345" a.link = "jingdong"

try:

f= a.getResponse(sessionkey)

print(json.dumps(f, ensure_ascii=False))

except Exception,e:

print(e)


jingdong.seller.promotion.ordermode.add调用示例(.net


IJdClient client = new DefaultJdClient(url, appkey, appsecret);

SellerPromotionOrdermodeAddRequest req = new SellerPromotionOrdermodeAddRequest();

req.promoid = 123 ; req.favormode = 123 ; req.quota = "123,234,345" ; req.rate = "123,234,345" ; req.plus = "123,234,345" ; req.minus = "123,234,345" ; req.link = "jingdong" ;

SellerPromotionOrdermodeAddResponse response = client.Execute (req, token, DateTime.Now.ToLocalTime());