I am trying to make a Rails App that can upload a file to Microsoft Skydrive/Onedrive and then save the resulting embed code in my database. It looks like I want to use Interactive Live SDK because the REST API is only available to apps with services using Microsoft account.
My problem is that when I go to the SDK download page it's available for Windows, iOS, and Android, but I develop on Ubuntu and my web app is going to be put on an Ubuntu server. I also did a rudimentary search for an equivalent Ruby Gem but I wasn't able to find anything.
Is there a way around using the SDK? Or a way to get it to work on Ubuntu? The scope of my app isn't large, and I only need to create 1 Microsoft Live account with a public folder which I will always use. I feel like it should be possible to put my login credentials directly in the REST calls instead of worrying about authenticity tokens, but I can't find any documentation for that either.
It sounds like you're trying to use a single OneDrive account for data across all clients of your app. The OneDrive APIs are designed around each user authenticating through the app and then accessing their own OneDrive to read/store files. Because OneDrive uses OAuth 2 and only supports grant flows that require web UI, there is no way to store credentials and pass them directly into the authentication layer. OneDrive requires the user to sign in at least once to generate the authentication tokens.
You can request that your app has offline access to the account, through the wl.offline_access scope. If you do that, your app receives a refresh token that can be used to generate access tokens in the future without requiring the user to login again. This gives you more flexibility, but even the refresh tokens expire after not being used for a significant period of time.
If you just need a single cloud location, that isn't differentiated per user, to store data that is shared among all app users, check out the Azure Storage API. There you just have an app key that gets you into the storage location and user login wouldn't be required. Of course, data stored that isn't available through OneDrive.