【发布时间】:2019-05-31 08:22:02
【问题描述】:
我有一个 cURL GET 语句:
curl -v -X GET "https://admiraltyapi.azure-api.net/uktidalapi/api/V1/Stations/{stationId}" -H "Ocp-Apim-Subscription-Key: {subscription key}" --data-ascii "{body}"
在终端窗口中工作正常(使用我的子键) - 我现在想在 PHP 脚本中使用它来检索关联的 JSON。实现这一目标的代码建议表示赞赏......
【问题讨论】:
-
SO 不是编码服务...
-
stackoverflow.com/questions/41396724/… 可能是一个很好的起点。