Microsoft Live / Skydrive File Import?

Microsoft Live / Skydrive File Import?

by Chris Liang-Vergara -
Number of replies: 20

Hi,

Loving this new front on file sharing on the cloud!  I saw the video on bringing in content from GoogleDocs - however we use Microsoft's Live@Edu services since the formatting is cleaner with all the Office Suite products.  Most of our staff have documents shared on live / skydrive - is there any way to pull them into Moodle easily?

Average of ratings: -
In reply to Chris Liang-Vergara

Re: Microsoft Live / Skydrive File Import?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Someone just needs to make a plugin that connects to Live@Edu, like the google docs one. It is probably not much work, providing Microsoft provides an appropriate API for developers to use. The code for the googledocs plugin is at  https://github.com/moodle/moodle/blob/cvshead/repository/googledocs/lib.php. As you can see, it is really very little code.

However, this, from 18 months ago, does not look promising: http://ask.officelive.com/workspace/qna/t/5488.aspx. Looks like Microsoft did not provide an API then.

In reply to Tim Hunt

Re: Microsoft Live / Skydrive File Import?

by Gerrard Shaw -

I wouldn't hold out much hope for a SkyDrive repository anytime soon tbh sad

What might be more hopeful is when Microsoft finally get around to releasing the SharePoint-based storage in Live@Edu (should be early 2011 I reckon) as it will just need someone to crack how to get files from SharePoint to Moodle (maybe it's been done already?)

Microsoft really need to get their act together with this, not sure how much of a big deal the Live@Edu vs GApps battle means to either company but Google is pulling ahead due to the tighter integration and more open APIs... over to you Microsoft...

In reply to Gerrard Shaw

Re: Microsoft Live / Skydrive File Import?

by Jan Brink -

Skydrive should be able to be used via WebDav, you just have to figure out the correct address for your folders. This can be done from Windows 7 & Mac so why not from Moodle ??

Will try this out soon.

In reply to Jan Brink

Re: Microsoft Live / Skydrive File Import?

by Chris Liang-Vergara -

Agreed that it seems weird how easily I can map skydrive folders in Windows 7 (and XP too with a little work) by copying the web address when saving to skydrive.

With that in mind, if I know the exact web address to access my skydrive folders, is it possible to pull the into Moodle?

In reply to Gerrard Shaw

Re: Microsoft Live / Skydrive File Import?

by Chris Liang-Vergara -

Completely agreed GShaw.  Thankfull Live ID supports Open ID so that logins are a bit more streamlined - but this is a huge blocker for campuses using Live@Edu services and Moodle for course management.

On your note of "Going Google" - I'm seriously considering putting on new campuses on Google due to its streamlined ability to integrate with Moodle and other systems.  I admit that Live@Edu's suite offers nicer features - but bells and whistles don't mean much with poor usability and multi-step workarounds.

Keep me posted on any progress with this smile

In reply to Chris Liang-Vergara

Re: Microsoft Live / Skydrive File Import?

by Gerrard Shaw -

Things may well change completely in the next few months with Office 365 coming out, the platform is undergoing big changes with SharePoint taking over SkyDrive for storage.

Although that's only on certain packages, most of which which are free for students but cost £££ for staff (pricing info still to be fully announced for the UK as far as I know)

Not sure if there's an existing Sharepoint repository plugin for 2.0 yet but if someone can crack that then a lot more becomes possible. The other issue is whether the current Live@Edu plugin gets updated for 2.0, current signs suggest MS won't be doing it so unless a hosting partner or some open-source people do it...

However don't take any of the above as gospel, a lot could change in the next few weeks...

In reply to Gerrard Shaw

Re: Microsoft Live / Skydrive File Import?

by Mat Cannings -

I am not certain but it seems that an API is now available.

http://msdn.microsoft.com/en-us/library/hh243648.aspx

In reply to Mat Cannings

Re: Microsoft Live / Skydrive File Import?

by Jeffrey Jones -

Any work being done on this? We're upgrading to 2.2 in June, and our entire state is already tied into the Live@edu/365/online SharePoint scene. It would really be a great help to us!

In reply to Gerrard Shaw

Re: Microsoft Live / Skydrive File Import?

by Jeffrey Jones -

I'm very much still interested in this. http://tracker.moodle.org/browse/MDL-30740   -- it at least has a spot in development. Here are new API links from Microsoft...

http://msdn.microsoft.com/library/live/hh826521

http://skydriveapiclient.codeplex.com/

In reply to Jeffrey Jones

Re: Microsoft Live / Skydrive File Import?

by Van Howell -

 I'm very interested in this as well...

Dan Poltawski added this comment in Moodle Tracker...
 
Hi Jeffery,

Whilst I was working at LUNS a client from Universidad Teconológica de Chile (INACAP) funded us to produce this repository.

The has been released open source code is available here:
https://git.luns.net.uk/?p=moodle.git;a=shortlog;h=refs/heads/microsoft-skydrive

It is my intention to integrate this into core however I have not yet been able to.
cheers,
dan

 

I downloaded the files and installed this on my 2.2 Test server. I went to https://manage.dev.live.com to add an application. I took the ClientID and Client secret an plugged them into microsoftliveapi.php here...

    private $clientid = '00000000XXXXXXXX';
    private $clientsecret = 'XaRqcsdmhH5hk988v70W6t-XXXXXXXXX';

but I still cannot connect to SkyDrive.

Any suggestions on why this wont work?

In reply to Van Howell

Re: Microsoft Live / Skydrive File Import?

by Jeffrey Jones -

Van:
       I got that far as well. The error was...

 "...Oops, there was a problem The provided value for the input parameter 'redirect_uri' is not valid. The domain of the provided redirect URI must match the domain of the redirect URI registered for this app..."

...does that match yours?
       I know a school district tech who was actually intending to write his own plugin, and was confident he could find and fix the error in this one. I'm also going to have a go at it (though I'm definitely not a PHP guy, so if it's more than a URL swap, I'll prolly be in trouble). If either helps, will post back.
       In the meantime, go vote on the tracker entry, and see if we can't get this wrapped into the full install.
       Good luck!
                     Jeff

In reply to Jeffrey Jones

Re: Microsoft Live / Skydrive File Import?

by Van Howell -

The error I am getting is this...

"Oops, there was a problem

The client does not exist. If you are the client application developer, configure a new application through the application management site at https://manage.dev.live.com/."
I have setup the app and entered the correct codes but I still get the error.
 
In reply to Van Howell

Re: Microsoft Live / Skydrive File Import?

by Van Howell -

OK, I got the application working, I connect to my SkyDrive account but when I try to access a folder I get a message that says "Invalid JSON string"

Any Ideas?

Van

In reply to Van Howell

Re: Microsoft Live / Skydrive File Import?

by Mark Landis -

Is your skydrive blocked by a url filter on your Moodle Server?   I have had this happen with repositories, when the server does not have access to the website you are trying to access.

It seems to happen because repositories act as proxy servers via the Moodle Server IP address

In reply to Van Howell

Re: Microsoft Live / Skydrive File Import?

by Dan Poltawski -
Hi Van,

If you can turn your debugging level up to DEBUG_DEVELOPER you should be able to find out more info. If not, my former colleagues at LUNS might be able to help if you get in touch.

cheers,
dan
In reply to Dan Poltawski

Re: Microsoft Live / Skydrive File Import?

by Jeffrey Jones -

Dan:
       I can tell you that my copy of this plugin is running flawlessly, and I've distributed it to others in my state with the same results. My only problem was a conflict between the Live app redirect URL and the URL of my current 2.2 install. Once corrected, things worked as billed.
        Thanks a bunch for this! I do hope it gets wrapped into the full install, so I dont' have to handle it by hand as we upgrade.

In reply to Jeffrey Jones

Re: Microsoft Live / Skydrive File Import?

by Rodrigo Rodriguez -

Hi Jeffrey

I have the same issue:

"Oops, there was a problem

The provided value for the input parameter 'redirect_uri' is not valid. The domain of the provided redirect URI must match the domain of the redirect URI registered for this app."
 
Can you please tell me what do I have to modify to make ot work?

Thanks
In reply to Rodrigo Rodriguez

Re: Microsoft Live / Skydrive File Import?

by Jeffrey Jones -

I'm so sorry to be slow. I'm just now getting my upgrade to 2.2 in place, and am again paying attention. What fixed it for me was an exact URL to the root of my moodle install, which, at that time, was NOT the root of my domain (it was ischool.fcps.net\ischool2). When I entered that, it worked.

However, after my initial excitement, it turns out I hadn't tested far enough -- it displays my cloud storage, allows me to select, spins as it processes, and creates the link...which is broken (404/file not found error). I'm just now pursuing this.

In reply to Chris Liang-Vergara

Re: Microsoft Live / Skydrive File Import?

by Jeffrey Jones -

http://tracker.moodle.org/browse/MDL-30740?focusedCommentId=161978#comment-161978 says this is planned to be a part of 2.3's release. I'm hoping so. As posted above, I've found that the plugin does not work well. Of course, it might be that MS is the variable, but at this moment I have everything working 'cept for the created link is bogus.

I noticed the code in https://git.luns.net.uk/?p=moodle.git;a=shortlog;h=refs/heads/microsoft-skydrive (Dan references it) hasn't been updated since January...