lundi 28 novembre 2016

Turning cURL request into PHP

Really stuck on how to convert the below into a PHP get request. I can see there is a request URL and header paramters, but not sure how it would look. Please can you lovely people help :)

curl -v -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: SSWS ${api_token}" \
"http://ift.tt/2gOdnEo"




Aucun commentaire:

Enregistrer un commentaire