I am currently working on a website in which I use PHP. I want to make a get request like the one shown here in Ruby code:
response = RestClient::Request.execute(
:method => :get,
:url => 'https://api.place2book.com/event_api/available_tickets',
:timeout => 5,
:headers => {
'X-PLACE2BOOK-API-TOKEN' => 'foobar789baz7674',
'X-PLACE2BOOK-EVENT-ID' => 123456
}
)
response.headers[:available_tickets]
However I do not know much of API Get requests in PHP.