Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: "https://watson-api-explorer.mybluemix.net/tone-analyzer/api/v3/tone?version=2016-05-19&text=newton%20stole%20calculus",
- type: 'POST',
- dataType: 'json',
- contentType: 'application/json',
- processData: false,
- data: '{\"text\": \"Testing the change of text and ensuring it provides a different and positive output! \"}',
- success: function (data) {
- alert(JSON.stringify(data));
- },
- error: function(){
- alert("Cannot get data");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement