pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
Right, little project I've got going on over a couple of sites where I want to create some display screens for showing what's on today etc.
I'm a bit of a n00b when it comes to raw 'coding', bit of VB and HTML and PHP and I'm done. Give me a powershell script anyday
I want to basically pull a list of events for today from a calendar in office365 and print it into a nice little formatted list on a webpage:
Event 1 - All Day
Event 2 - 090 to 09:30
Event 3 - 10:30 to 12:30
Event 4 - 15:30 to 17:45.
I'm quite happy for the code to pass a username and password as the web server is internal only. I just have no idea how to do it or where to start! Any pointers?
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
Look at the Office 365 (calendar) API. Yet to play around with it but it seems relatively(ish) straight forward - authorise an app with O365, authenticate using Oauth2 and then drag (calendar) data out as JSON.
There's a load of documents on MSDN and you'll probably find if you Google, a class/module for accessing it in what ever language you decide to do it with.
Edit - Be interested to hear how you get on with this (using whatever method), as I've got to soon implement something similar for a digital signage project
[Edited on 08-02-2015 by Dom]
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
If you can get the data from powershell, and I'm betting you can, just write-host it as html to a textfile.htm
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/24/use-powershell-to-export-outlook-calendar-information.aspx
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
Might need some work for that work with a o365 calendar though
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
Did you get anywhere with pulling events out of O365 calendars? If so, what route did you go down?
I'm currently attempting to do the same for digital signage but the API looks an absolute ballache
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
Exchange 365 supports webcalendars, heres one of ours
http://outlook.office365.com/owa/calendar/b05ff4e267094dacba60c4ba97d4154b@herefordcs.com/3905f34f8b5c417fb02eb726f679282313353780616373256137/calendar.html
Could just stick it in an iframe
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
Sacked the idea off and used the sims calendar instead. Hence the other thread lol. However it works much better :-)
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Steve
Exchange 365 supports webcalendars, heres one of ours
http://outlook.office365.com/owa/calendar/b05ff4e267094dacba60c4ba97d4154b@herefordcs.com/3905f34f8b5c417fb02eb726f679282313353780616373256137/calendar.html
Could just stick it in an iframe
Would have done if it was a shared calendar but apparently that's too much hard work for everyone to keep updated, so i've got to grab events out of everyones individual calendars
Pow - I don't blame you
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
Thanks Dom
|