Java
GmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomePromotionPromotionCreateRequest request = new GomePromotionPromotionCreateRequest();
//详细参数信息请参考API详情页面。
request.setRelationId("");
request.setPromotionName("");
request.setPromotionDesc("");
request.setStartTime();
request.setEndTime();
request.setPromotionType("");
request.setOrderLimitNumber();
request.setPreHeatDate();
request.setShowChannel();
request.setShoppingFlow("");
request.setShippingFee();
request.setDeviceLimit();
request.setUserLimit();
request.setGroupPeopleNumber();
request.setGroupFrequency();
request.setDuration();
request.setFreeShipping("");
request.setRobot("");
request.setPromotionGoodsJson("[{"skuNo":"SKU","price":10.0,"quantity":100,"categoryCode3":"商城3级分类","brand":"品牌,可空","increasedSales":0},{"skuNo":"SKU","price":10.0,"quantity":100,"categoryCode3":"商城3级分类","brand":"品牌,可空","increasedSales":0}]");
GomePromotionPromotionCreateResponse response = client.execute(request);
System.out.println(response.getBody());
PHP
require_once('GmosSdk.php');
$client = new GmosClient;
$client -> appkey = "";
$client -> secretKey = "";
$client -> session = "";
$client -> gatewayUrl = "";
$request = new GomePromotionPromotionCreateRequest;
//详细参数信息请参考API详情页面。
$request -> setRelationId("");
$request -> setPromotionName("");
$request -> setPromotionDesc("");
$request -> setStartTime();
$request -> setEndTime();
$request -> setPromotionType("");
$request -> setOrderLimitNumber();
$request -> setPreHeatDate();
$request -> setShowChannel();
$request -> setShoppingFlow("");
$request -> setShippingFee();
$request -> setDeviceLimit();
$request -> setUserLimit();
$request -> setGroupPeopleNumber();
$request -> setGroupFrequency();
$request -> setDuration();
$request -> setFreeShipping("");
$request -> setRobot("");
$request -> setPromotionGoodsJson("[{"skuNo":"SKU","price":10.0,"quantity":100,"categoryCode3":"商城3级分类","brand":"品牌,可空","increasedSales":0},{"skuNo":"SKU","price":10.0,"quantity":100,"categoryCode3":"商城3级分类","brand":"品牌,可空","increasedSales":0}]");
$response = $client -> execute($request);
Net
IGmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomePromotionPromotionCreateRequest request = new GomePromotionPromotionCreateRequest();
request.RelationId="";
request.PromotionName="";
request.PromotionDesc="";
request.StartTime=;
request.EndTime=;
request.PromotionType="";
request.OrderLimitNumber=;
request.PreHeatDate=;
request.ShowChannel=;
request.ShoppingFlow="";
request.ShippingFee=;
request.DeviceLimit=;
request.UserLimit=;
request.GroupPeopleNumber=;
request.GroupFrequency=;
request.Duration=;
request.FreeShipping="";
request.Robot="";
request.PromotionGoodsJson="[{"skuNo":"SKU","price":10.0,"quantity":100,"categoryCode3":"商城3级分类","brand":"品牌,可空","increasedSales":0},{"skuNo":"SKU","price":10.0,"quantity":100,"categoryCode3":"商城3级分类","brand":"品牌,可空","increasedSales":0}]";
GomePromotionPromotionCreateResponse response = client.Execute(request);