function moveFile_onClick() {
WL.login({
scope: "wl.skydrive_update"
}).then(
function (response) {
WL.api({
path: "file.a6b2a7e8f2515e5e.A6B2A7E8F2515E5E!141",
method: "MOVE",
body: {
destination: "folder.a6b2a7e8f2515e5e.A6B2A7E8F2515E5E!125"
}
}).then(
function (response) {
document.getElementById("infoArea").innerText = "Item moved.";
},
function (responseFailed) {
document.getElementById("infoArea").innerText =
"Error calling API: " + responseFailed.error.message;
}
);
},
function (responseFailed) {
document.getElementById("infoArea").innerText =
"Login error: " + responseFailed.error_description;
}
);
}