crisp-api 6.3.2 → 6.4.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 +6 -0
- package/EXAMPLES.md +9 -0
- package/README.md +13 -0
- package/lib/resources/WebsiteConversation.js +16 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/EXAMPLES.md
CHANGED
|
@@ -402,6 +402,15 @@ CrispClient.website.requestChatboxBindingPurgeForConversation(websiteID, session
|
|
|
402
402
|
|
|
403
403
|
=========================
|
|
404
404
|
|
|
405
|
+
https://docs.crisp.chat/references/rest-api/v1/#request-user-feedback-for-conversation
|
|
406
|
+
|
|
407
|
+
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
|
|
408
|
+
var sessionID = "session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881";
|
|
409
|
+
|
|
410
|
+
CrispClient.website.requestUserFeedbackForConversation(websiteID, sessionID);
|
|
411
|
+
|
|
412
|
+
=========================
|
|
413
|
+
|
|
405
414
|
https://docs.crisp.chat/references/rest-api/v1/#list-browsing-sessions-for-conversation
|
|
406
415
|
|
|
407
416
|
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
|
package/README.md
CHANGED
|
@@ -716,6 +716,19 @@ All methods that you will most likely need when building a Crisp integration are
|
|
|
716
716
|
```
|
|
717
717
|
</details>
|
|
718
718
|
|
|
719
|
+
* **Request User Feedback For Conversation** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#request-user-feedback-for-conversation)
|
|
720
|
+
* `CrispClient.website.requestUserFeedbackForConversation(websiteID, sessionID)`
|
|
721
|
+
* <details>
|
|
722
|
+
<summary>See Example</summary>
|
|
723
|
+
|
|
724
|
+
```javascript
|
|
725
|
+
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
|
|
726
|
+
var sessionID = "session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881";
|
|
727
|
+
|
|
728
|
+
CrispClient.website.requestUserFeedbackForConversation(websiteID, sessionID);
|
|
729
|
+
```
|
|
730
|
+
</details>
|
|
731
|
+
|
|
719
732
|
* **List Browsing Sessions For Conversation** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#list-browsing-sessions-for-conversation)
|
|
720
733
|
* `CrispClient.website.listBrowsingSessionsForConversation(websiteID, sessionID)`
|
|
721
734
|
* <details>
|
|
@@ -613,6 +613,22 @@ function WebsiteConversation(service, crisp) {
|
|
|
613
613
|
);
|
|
614
614
|
};
|
|
615
615
|
|
|
616
|
+
/**
|
|
617
|
+
* Request User Feedback For Conversation
|
|
618
|
+
* @memberof WebsiteConversation
|
|
619
|
+
* @method requestUserFeedbackForConversation
|
|
620
|
+
* @return Promise
|
|
621
|
+
*/
|
|
622
|
+
service.requestUserFeedbackForConversation = function(
|
|
623
|
+
websiteID, sessionID
|
|
624
|
+
) {
|
|
625
|
+
return crisp.post(
|
|
626
|
+
crisp._prepareRestUrl([
|
|
627
|
+
"website", websiteID, "conversation", sessionID, "feedback"
|
|
628
|
+
])
|
|
629
|
+
);
|
|
630
|
+
};
|
|
631
|
+
|
|
616
632
|
/**
|
|
617
633
|
* List Browsing Sessions For Conversation
|
|
618
634
|
* @memberof WebsiteConversation
|
package/package.json
CHANGED