crisp-api 6.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/EXAMPLES.md +10 -0
- package/README.md +205 -189
- package/lib/crisp.js +1 -0
- package/lib/resources/WebsiteConversation.js +16 -0
- package/package.json +1 -1
package/lib/crisp.js
CHANGED
|
@@ -238,6 +238,22 @@ function WebsiteConversation(service, crisp) {
|
|
|
238
238
|
);
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Remove A Message In Conversation
|
|
243
|
+
* @memberof WebsiteConversation
|
|
244
|
+
* @method removeMessageInConversation
|
|
245
|
+
* @return Promise
|
|
246
|
+
*/
|
|
247
|
+
service.removeMessageInConversation = function(
|
|
248
|
+
websiteID, sessionID, fingerprint
|
|
249
|
+
) {
|
|
250
|
+
return crisp.delete(
|
|
251
|
+
crisp._prepareRestUrl([
|
|
252
|
+
"website", websiteID, "conversation", sessionID, "message", fingerprint
|
|
253
|
+
])
|
|
254
|
+
);
|
|
255
|
+
};
|
|
256
|
+
|
|
241
257
|
/**
|
|
242
258
|
* Compose A Message In Conversation
|
|
243
259
|
* @memberof WebsiteConversation
|
package/package.json
CHANGED