Kindly help me with, how to post JSON Body and header to RESTFUL API in php? of following data.
HTTP POST url : http://webapi.test.com/Bus/BlockSeat
ConsumerKey : KEY
ConsumerSecret: SECRETKEY
bODY(json) : {"IsOfflineBooking": "false",
"TripId": "5927-0",
"BoardingId": "6",
"NoofSeats": "1",
"Fares": "717.5",
"SeatNos": "R5",
"Titles": "Mr",
"Names": "vijaykumar",
"Ages": "27",
"Genders": "M",
"Address": "hyderabad",
"UserType": "5",
"Servicetax": "0"}
Kindly help with solving my problem.