Submit Comment or Checkin
client.comment.submit(CommentSubmitParams { chargePointID, checkinStatusTypeID, comment, 4 more } body, RequestOptionsoptions?): CommentSubmitResponse { description, status }
POST/comment
Submit Comment or Checkin
import Ocm from 'ocm-sdk';
const client = new Ocm({
bearer: process.env['OCM_USERNAME'], // This is the default and can be omitted
});
const response = await client.comment.submit({
chargePointID: 0,
comment: 'string',
rating: 3,
relatedURL: 'string',
userName: 'string',
});
console.log(response.description);{
"status": "OK",
"description": "OK"
}Returns Examples
{
"status": "OK",
"description": "OK"
}