Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl --basic --user {username}:{password} https://www.blueworkslive.com/api/Auth
- $.ajax({
- url: "https://www.blueworkslive.com/api/Auth",
- type: "GET", //This is what you should chage
- dataType: "jsonp",
- username: "admin", // Most SAP web services require credentials
- password: "admin",
- processData: false,
- contentType: "application/json; charset=utf-8",
- success: function () {
- alert("success");
- console.log("success");
- },
- error: function (xhr, ajaxOptions, thrownError) {
- console.log("error");
- console.log(xhr.responseText);
- alert(xhr.status);
- alert(xhr.responseText);
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement