Advertisement
Guest User

Untitled

a guest
Mar 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $.ajax({
  2. url: "https://watson-api-explorer.mybluemix.net/tone-analyzer/api/v3/tone?version=2016-05-19&text=newton%20stole%20calculus",
  3. type: 'POST',
  4. dataType: 'json',
  5. contentType: 'application/json',
  6. processData: false,
  7. data: '{\"text\": \"Testing the change of text and ensuring it provides a different and positive output! \"}',
  8. success: function (data) {
  9. alert(JSON.stringify(data));
  10. },
  11. error: function(){
  12. alert("Cannot get data");
  13. }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement