java script


SUBMITTED BY: killorsavedemall

DATE: June 8, 2017, 5:52 p.m.

FORMAT: Text only

SIZE: 971 Bytes

HITS: 258

  1. function moveFile_onClick() {
  2. WL.login({
  3. scope: "wl.skydrive_update"
  4. }).then(
  5. function (response) {
  6. WL.api({
  7. path: "file.a6b2a7e8f2515e5e.A6B2A7E8F2515E5E!141",
  8. method: "MOVE",
  9. body: {
  10. destination: "folder.a6b2a7e8f2515e5e.A6B2A7E8F2515E5E!125"
  11. }
  12. }).then(
  13. function (response) {
  14. document.getElementById("infoArea").innerText = "Item moved.";
  15. },
  16. function (responseFailed) {
  17. document.getElementById("infoArea").innerText =
  18. "Error calling API: " + responseFailed.error.message;
  19. }
  20. );
  21. },
  22. function (responseFailed) {
  23. document.getElementById("infoArea").innerText =
  24. "Login error: " + responseFailed.error_description;
  25. }
  26. );
  27. }

comments powered by Disqus