地址:https://open.cnipr.com/cnipr-api/v1/api/cocave/pv3/{client_id}
HTTP POST
参数名称 | 参数说明 | 是否必填 | 参数类型 |
---|---|---|---|
client_id | 应用id,如没有clientId请先接入应用,查看接入流程获取 | true | String |
openid | 用户id,可通过 Implicit Grant 方式 或 Authorization Code 方式 等两种方式获取openid | true | String |
access_token | 访问令牌,可通过 Implicit Grant 方式 或 Authorization Code 方式或 Refresh Token 方式 等三种方式获取access_token | true | String |
id | 数据编号, 同植物新品种表达式检索接口(pv1)返回值的bid字段 | true | String |
id:D521C7C58A5F5D9DED62AE42A4902740
String client_id = "your_client_id";//替换为真实client_id String access_token = "your_access_token";//替换为真实access_token String openid = "your_open_id";//替换为真实open_id String url = "http://open.cnipr.com/cnipr-api/v1/api/cocave/pv3/"+client_id; Listnvps = new ArrayList (); // 提交参数及值 nvps.add(new BasicNameValuePair("openid", openid)); nvps.add(new BasicNameValuePair("access_token", access_token)); nvps.add(new BasicNameValuePair("id", "D521C7C58A5F5D9DED62AE42A4902740")); DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(url); httppost.setHeader("ContentType", "application/x-www-form-urlencoded"); // 设置表单提交编码为UTF-8 UrlEncodedFormEntity entry = new UrlEncodedFormEntity(nvps, "UTF-8"); entry.setContentType("application/x-www-form-urlencoded;charset=UTF-8"); httppost.setEntity(entry); HttpResponse response = httpclient.execute(httppost); HttpEntity entity = response.getEntity(); String ss = EntityUtils.toString(entity, "UTF-8"); //打印返回结果 System.out.println(ss); EntityUtils.consume(entity); httpclient.getConnectionManager().shutdown();
属性名称 | 属性说明 | 属性类型 |
---|---|---|
status | 状态码,0代表成功,其它值含义见附录 | long |
message | 响应的信息描述 | String |
results | 检索结果集 | List<PlantExpressDto> -- 数据详细 |
PlantExpressDto
属性名称 | 说明 | 类型 |
---|---|---|
bid | 自增字段 | String |
ds | 数据来源 | String |
aty | 公告类型 | String |
clat | 品种权事务分类 | String |
pkd | 植物种类 | String |
pnm | 品种名称 | String |
pans | 申请号 | String |
pand | 申请日 | String |
sqr | 申请 | String |
gkr | 共同品种权人 | String |
pyr | 培育人 | String |
ppn | 公告号 | String |
ppd | 公告日 | String |
prn | 优先权号 | String |
prd | 优先权日 | String |
pkad | 品种权人地址 | String |
dofs | 申请日前销售情况 | String |
agen | 代理机构 | String |
agdr | 代理机构地址 | String |
agr | 代理人 | String |
expl | 说明 | String |
grd | 授权日 | String |
grn | 授权号 | String |
vcnu | 品种权证书号 | String |
tdy | 颁证日 | String |
state | 目前状态 | String |
dda | 视为放弃日 | String |
dwd | 视为撤回日 | String |
rrd | 权利恢复日 | String |
afd | 申请撤回日 | String |
tdvr | 品种权终止日 | String |
rda | 申请的驳回日 | String |
adc | 申请人地址变更日 | String |
adb | 申请人地址变更前 | String |
ada | 申请人地址变更后 | String |
pks | 品种来源 | String |
apn | 申请公告号 | String |
apd | 申请公告日 | String |
plantBreedTransfer | 转让记录 | List<PlantBreedTransferDTO> |
plantBreedName | 名称变更记录 | List<PlantBreedNameDTO> |
plantBreedFoster | 培育人变更记录 | List<PlantBreedFosterDTO> |
plantBreedApplication | 申请人变更记录 | List<PlantBreedApplicationDTO> |
plantBreedAgent | 代理人变更记录 | List<PlantBreedAgentDTO> |
plantBreedAgency | 代理机构变更记录 | List<PlantBreedAgencyDTO> |
PlantBreedTransferDTO
属性名称 | 说明 | 类型 |
---|---|---|
tdad | 品种申请权的转让日 | String |
prb | 转让前 | String |
pra | 转让后 | String |
reas | 原因 | String |
PlantBreedNameDTO
属性名称 | 说明 | 类型 |
---|---|---|
tncd | 品种暂定名称变更日 | String |
ncb | 名称变更前 | String |
nca | 名称变更后 | String |
reas | 原因 | String |
PlantBreedFosterDTO
属性名称 | 说明 | 类型 |
---|---|---|
pcd | 培育人变更日 | String |
pcf | 培育人变更前 | String |
pca | 培育人变更后 | String |
reas | 原因 | String |
PlantBreedApplicationDTO
属性名称 | 说明 | 类型 |
---|---|---|
sqd | 申请人变更日 | String |
sqa | 申请人变更前 | String |
sqb | 申请人变更后 | String |
reas | 原因 | String |
PlantBreedAgentDTO
属性名称 | 说明 | 类型 |
---|---|---|
agcd | 代理人变更日 | String |
agcf | 代理人变更前 | String |
agca | 代理人变更后 | String |
reas | 原因 | String |
PlantBreedAgencyDTO
属性名称 | 说明 | 类型 |
---|---|---|
agencd | 代理机构变更日 | String |
agencf | 代理机构变更前 | String |
agenca | 代理机构变更后 | String |
reas | 原因 | String |