Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function chatbaseInput() {
- $.ajax({
- type: "POST",
- url: chatbaseURL,
- contentType: "charset=utf-8",
- dataType: "json",
- headers: {
- "Access-Control-Allow-Origin": "website link"
- },
- data: JSON.stringify({
- api_key: "apikey",
- type: "user",
- user_id: "140012004300",
- time_stamp: 1516765680000,
- platform: "Website",
- message: "Default Welcome Intent",
- intent: "Welcome Intent",
- version: "1.0"
- }),
- success: function (data) {
- setResponse("Chatbase works!");
- },
- error: function () {
- setResponse("Chatbase not working");
- }
- });
Add Comment
Please, Sign In to add comment