Migrated from Redmine #1326 | Author: soniya james
Status: Rejected | Priority: High, I’m very impatient | Created: 2024-12-03
{
“jsonrpc”: “2.0”,
“method”: “book”,
“params”: [
“1”, // User ID (or entity ID)
“2”, // Service ID (or service identifier)
“2024-12-04”, // Booking Date (YYYY-MM-DD)
“09:00:00”, // Booking Time (HH:mm:ss) {
“name”: “rinu”, // Client’s name
“email”: “rinu62@gmail.com”,// Client’s email
“phone”: “9488567900” // Client’s phone number
}, {}, // Additional parameters (empty object here)
1 // Integer (could represent confirmation or a status code)
],
“id”: 1
}
this will not work?
“name”: “rinu”, // Client’s name
“email”: “rinu62@gmail.com”,// Client’s email
“phone”: “9488567900”
we need to pass like this?
client_id - is client id
client_sign - is md5(clientId + clientHash + secretKey) ,
clientHash - you will receive when client is created.
secretKey - your secret key
getting response like this
{
“error”: {
“code”: -32068,
“message”: “Client authorization required”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}