任务分解 #161
企业基本信息(变更,撤销信息)
0%
描述
一,变更信息调用接口(ApplyModifiedInfoFormTest.php)
1、新增调用接口
$data = array("data"=>array("type"=>"applyModifiedInfoForms",
"attributes"=>array("category"=>1,
"beforeModifiedInfo"=>"beforeModifiedInfo",
"afterModifiedInfo"=>"afterModifiedInfo",
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyModifiedInfoForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
2、编辑调用
/*$data = array("data"=>array("type"=>"applyModifiedInfoForms",
"attributes"=>array("category"=>12,
"beforeModifiedInfo"=>"12beforeModifiedInfo",
"afterModifiedInfo"=>"12afterModifiedInfo",
)
)
);
$response = $client->request(
'PUT',
'applyModifiedInfoForms/29',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
3、调用单条接口
$response = $client->request('GET', 'applyModifiedInfoForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyModifiedInfoForms',['haders'=>['Content-' => 'application/vnd.api+json']]);
二、撤销信息调用接口(ApplyRevocationInfoFormTest.php)
1、新增调用接口
$data = array("data"=>array("type"=>"applyRevocationInfoForms",
"attributes"=>array("category"=>1,
"beforeRevocationInfo"=>"beforeRevocationInfo",
"afterRevocationInfo"=>"afterRevocationInfo",
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyRevocationInfoForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、编辑调用接口
/*$data = array("data"=>array("type"=>"applyRevocationInfoForms",
"attributes"=>array("category"=>12,
"beforeRevocationInfo"=>"12beforeRevocationInfo",
"afterRevocationInfo"=>"12afterRevocationInfo",
)
)
);
$response = $client->request(
'PUT',
'applyRevocationInfoForms/32',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
3、调用单条
$response = $client->request('GET', 'applyRevocationInfoForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyRevocationInfoForms',['haders'=>['Content-' => 'application/vnd.api+json']]);