aleksov
3 years ago
6110
5
General

How to use CURL with php

Posted 3 years ago by aleksov

I need help with curl and php...

In API which I need to use I have example of CURL request:

curl https://api.example.com/api/AvailabilitySearch ^ -H "Authorization: Bearer eyJ0ehsagdasjhgdashdgaOiJIUzI1NiJ9.eyJpc3Msjhdshjdasd7676N5c3RlbXMuY29tIn0.DBR5UPxxxxxxzxzxzxzxzxzxzxyzxyzxyzxyzyxzyxyzxyxxWQ_BkS1mzxw" ^ -d VisitDate=2017-05-08 ^ -d PartySize=2 ^ -d ChannelCode=ONLINE

How to make this curl request in php?

Please sign in or create an account to participate in this conversation.