项目

一般

简介

PHP开发(前) #274

由 匿名用户 更新于 大约 8 年 之前

撤销信息(ApplyRevocationInfoFormTest.php)
// $response = $client->request('GET', 'applyRevocationInfoForms/31,32',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyRevocationInfoForms/1,2',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyRevocationInfoForms?filter[userIdentification]=2&sort=-id',['haders'=>['Content-' => 'application/vnd.api+json']]);
//add -- 开始
/*$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
]
);*/
//add -- 结束
//edit -- 开始
/*$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
]
);*/
//edit -- 结束
撤销信息

返回