任务分解 #283
oa审核表网站信息
0%
描述
网站信息(ApplyWebsiteInfoFormTest.class.php)
// $response = $client->request('GET', 'applyWebsiteInfoForms',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyWebsiteInfoForms/1,2',['haders'=>['Content-' => 'application/vnd.api+json']]);
// $response = $client->request('GET', 'applyWebsiteInfoForms?filter[company]=1&sort=-id',['haders'=>['Content-' => 'application/vnd.api+json']]);
//add -- 开始
/*$data = array("data"=>array("type"=>"applyWebsiteInfoForms",
"attributes"=>array("name"=>"11111namee222",
"domain"=>'domain222',
"url"=>'1111urlurlurl222',
"filingLicense"=>'111filingLicense222',
"verifyTime"=>'2027-05-05',
"companyId"=>1,
"uid"=>392,
"userIdentification"=>2,
// "websiteInfoId"=>1,
)
)
);
$response = $client->request(
'POST',
'applyWebsiteInfoForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//add -- 结束
//edit -- 开始
$data = array("data"=>array("type"=>"applyWebsiteInfoForms",
"attributes"=>array("name"=>"wwwwwwwwwww123456namename",
"domain"=>'domain222',
"url"=>'wwwwwwwwwwwwwurlurlurl11',
"filingLicense"=>'1wwwwwwwwwwwwwwww1filingLicense',
"verifyTime"=>'2009-05-05',
)
)
);
$response = $client->request(
'PUT',
'applyWebsiteInfoForms/147',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);