OneDrive javascript sdk

  javascript, onedrive

OneDrive file chooser not open for me, i have added redirect url in developer console and enabled the required permission APIs
here is my code

odOptions = {
clientId: "xxx",
action: "download", // or share or query
multiSelect: false, // or true
advanced: {
redirectUri: "http://localhost/index1.html"
},
success: function(files) {
var oneDriveUrl=files.value[0][‘@microsoft.graph.downloadUrl’];
alert(oneDriveUrl);
},
cancel: function() {
console.log("The user clicked cancel or closed the popup");
},
error: function(e) { /* error handler */ }
};

OneDrive.open(odOptions);

i have attached the error image.. help me

enter image description here

Source: Ask Javascript Questions

LEAVE A COMMENT