草庐IT

goinstant

全部标签

php - 如何将此 cURL 终端请求转换为 PHP 终端请求?

这是针对GoInstant的,我似乎无法将其转换为PHPcURL请求。curl-XPUT\-H'Authorization:Bearer$ACCESS_TOKEN'\-H'Content-Type:application/json'\-d'{"value":{"type":"hotdog","topping":"mustard"},"options":{"expire":15,"cascade":"relish"}}'\https://api.goinstant.net/v1/keys/1/1/food/1这是我得到的:array('foo'=>'hello!'))));$stuff=