package com.xyh.jd;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.jd.open.api.sdk.DefaultJdClient;
import com.jd.open.api.sdk.JdClient;
import com.jd.open.api.sdk.JdException;
import com.jd.open.api.sdk.request.kdgjapi.LdopAlphaProviderPickUpPersonRequest;
import com.jd.open.api.sdk.response.kdgjapi.LdopAlphaProviderPickUpPersonResponse;
@Controller
@RequestMapping("/jd")
public class jdOderTest {
public static String SERVER_URL= "https://api.jd.com/routerjson";
public static String accessToken= "yourtoken";
public static String appKey= "";
public static String appSecret= "";
public static String testPerson() throws JdException
{
JdClient client=new DefaultJdClient(SERVER_URL,accessToken,appKey,appSecret);
LdopAlphaProviderPickUpPersonRequest request=new LdopAlphaProviderPickUpPersonRequest();
request.setPickupCode( "jingdong" );
request.setProviderCode( "jingdong" );
request.setSiteName( "jingdong" );
request.setPickPerson( "jingdong" );
request.setPhone( "jingdong" );
LdopAlphaProviderPickUpPersonResponse response=client.execute(request);
return "Z";
}
}
京东接口
猜你喜欢
转载自blog.csdn.net/hustxiayu/article/details/79130758
今日推荐
周排行