jingdong.seller.promotion.samclub.create调用示例(Java


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

SellerPromotionSamclubCreateRequest request=new SellerPromotionSamclubCreateRequest();

request.setAppName( "jingdong" );
request.setAppSecret( "jingdong" );
request.setIp( "jingdong" );
request.setHostName( "jingdong" );
request.setDeployAppName( "jingdong" );
request.setDeployAppId( "jingdong" );
request.setRequestId( "jingdong" );
request.setSkuId( 123 );
request.setNormalPrice( 123 );
request.setClubPrice( 123 );

SellerPromotionSamclubCreateResponse response=client.execute(request);


jingdong.seller.promotion.samclub.create调用示例(php


$c = new JdClient();

$c->appKey = appKey;

$c->appSecret = appSecret;

$c->accessToken = accessToken;

$c->serverUrl = SERVER_URL;

$req = new SellerPromotionSamclubCreateRequest();

$req->setAppName( "jingdong" ); $req->setAppSecret( "jingdong" ); $req->setIp( "jingdong" ); $req->setHostName( "jingdong" ); $req->setDeployAppName( "jingdong" ); $req->setDeployAppId( "jingdong" ); $req->setRequestId( "jingdong" ); $req->setSkuId( 123 ); $req->setNormalPrice( 123 ); $req->setClubPrice( 123 );

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


jingdong.seller.promotion.samclub.create调用示例(python


import jd.api

import json

from jd.api.rest.SellerPromotionSamclubCreateRequest import SellerPromotionSamclubCreateRequest

jd.setDefaultAppInfo(appkey, secret)

a = SellerPromotionSamclubCreateRequest(url,port)

a.appname = "jingdong" a.appsecret = "jingdong" a.ip = "jingdong" a.hostname = "jingdong" a.deployappname = "jingdong" a.deployappid = "jingdong" a.requestId = "jingdong" a.skuid = 123 a.normalprice = 123 a.clubprice = 123

try:

f= a.getResponse(sessionkey)

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

except Exception,e:

print(e)


jingdong.seller.promotion.samclub.create调用示例(.net


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

SellerPromotionSamclubCreateRequest req = new SellerPromotionSamclubCreateRequest();

req.appname = "jingdong" ; req.appsecret = "jingdong" ; req.ip = "jingdong" ; req.hostname = "jingdong" ; req.deployappname = "jingdong" ; req.deployappid = "jingdong" ; req.requestId = "jingdong" ; req.skuid = 123 ; req.normalprice = 123 ; req.clubprice = 123 ;

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