我有这些价值观:
$time="2012-12-30 10:00:00";
$hash="DONE_ILK_ONAY_P_KEY__2012_2012-12-30 10:00:00";
而要发送的 JSON 数据是:
jsonRequest:
{
"company_id":"somevalue",
"company _username":"somevalue",
"company _password":" somevalue",
"profile_id":"somevalue",
"profile_mail":"somevalue",
"profile_info": {
"name":"somevalue",
"surname":"somevalue",
"birthdate":"somevalue",
"marital_status":"somevalue",
"education_level":"somevalue",
"school":"somevalue",
"city":"somevalue"
}
}
现在我如何使用 PHP 将这些值发布到另一个 URL 并从它们获取 JSON 响应?