Stefan
Stefan

Reputation: 14863

Winjs and Onedrive integration

How can I integrate Onedrive with Winjs. A search showed no result, but I found the dvlup challenge, for onedirve integration (not sepcific to Winjs).

Upvotes: 1

Views: 208

Answers (1)

xdvarpunen
xdvarpunen

Reputation: 356

Depends what you mean by WinJS. If only a web app, then use OneDrive exposed API straight away just like any Javascript API. OneDrive uses OAuth for logging in: https://dev.onedrive.com/auth/msa_oauth.htm

In WinJS case this means utilizing XHR and Promises. You can find some tips for OneDrive OAuth from Twitter OAuth from this post: Twitter OAuth with WinJS (They work in same way).

If for specific device, set right manifest rules and possibly need to download SDK for handling files. WinJS includes FileOpenPicker and FileSavePicker for files handling (Found from Windows.Storage.Pickers namespace): https://dev.onedrive.com/sdks.htm

Upvotes: 1

Related Questions