[#16] How to use addCompanyReview API

Migrated from Redmine #16 | Author: deepak ev
Status: Rejected | Priority: High, I’m very impatient | Created: 2017-08-18


Hi ,
We tried using addCompanyReview ($login, $subject, $message, $rate, $provider, $accessToken)

var client = new JSONRpcClient({
‘url’: ‘https://user-api.simplybook.me/catalog’,
‘headers’: {
‘X-Company-Login’: ‘homestaydev’,
‘X-Token’: ‘1fa4eac6326c8feb1515bb39f529c6c1ed8824ad9c11ab6a857405e0a2e5b0d2’
},
‘onerror’: function (error) {
alert(error);
}
});

client.addCompanyReview(‘homestaydev’, ‘reviews’, ‘this is good’, 5, 'electrical systems ', ‘1fa4eac6326c8feb1515bb39f529c6c1ed8824ad9c11ab6a857405e0a2e5b0d2’)

Response :
{
“error”: {
“code”: -32600,
“message”: “Access denied”,
“data”: null
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Dmytro Bondarev wrote:

It is internal method.
There is no possibility to add review via API.

deepak ev wrote:

So all catelog methods are internal ?. Is there any way to provide feedback( rating) by client to the provider?

Dmytro Bondarev wrote:

Yes, all catalog methods are internal.
There is no way to do this right now.

deepak ev wrote:

in addClient API , it asks for country_id and sate_id . From where can i find the id’s corresponding id’s

Dmytro Bondarev wrote:

The country_id is country code from ISO 3166-1 (2 characters).
state_id you can leave empty for a while, we are going to implement methods in API to return this lists.

deepak ev wrote:

How do payment API work if we are going use API’s for creating client and service provider app( not using RWD website provided by simplybook.me).

  1. Once the booking API call is success, will it return url for payment gateway ?
    2.What payment processor in ConfirmBookingPayment API. Is this API used by service provider ?

Dmytro Bondarev wrote:

See #20

(Short original content)