I am working on some api in which I send information using json.
POST /api/v3/users/ HTTP/1.1
Host: example.com
Content-Type: application/vnd.api+json
Authorization: Bearer ab1dcb45be7e43db2212b0d2b0ca3892
This is the information. Using this will get that response but I don't know how to use this in php and not use js?
get response:
{
"users": [ {
"username": "username",
"phone": "06123",
"last_name": "myname",
"address": "some addr",
"newsletter": true,
"dob": "1974-12-31",
"x_id": "123ext",
"email": "user2@mail.nl",
"email_verified": true,
"social" : {
"facebook": { "id": "100000730165158"},
"twitter": {"id": "139029213"},
"linkedin": {"id": "7EA06I71K5"},
"google": {"id": "104763295979778440139"}
}
}]
}
But I don't know how to use this, meaning how to send request.