I was thinking about google calender and how the library is deprectated and that got me thinking... "is it possible to drive twitter with just LUA as it has to OAUTH and then pound a REST API just like googlecal does?"
So I compiled up a few lua helper modules and stamped out a simple LUA program that would talk to twitter.
Member for
17 yearsSweet stuff
Two points.
1. Where do we find the various tokens/keys
2. Would a similar 'Lua script based' approach work for Google Calendar (appreciate that this would involve a fair bit of effort)?
Cheers,
Derek.
Member for
16 years 10 monthsThe OAUTH tokens are in
The OAUTH tokens are in /etc/xap.d/xap-twitter.ini at least for twitter they are. For google calender you have traditionally been able to use basic auth, but I believe google has turned this off forcing you to use OAUTH which is why suddenly googlecal has broken. I've yet to confirm that but I'm pretty sure this is the case.
That and the fact that Nov 2014 the v2 google api is going to be deprecated giving more reason to not even bother with trying to patch up the existing libgcal framework which is v2 based and XML. v3 is JSON based.
I'm not sure how much work there is to write a LUA based googlecal but this is where I'm heading.
Getting OAUTH working in LUA is the hard battle fought which is why I used twitter as the test case.
Now its just a matter of driving the the REST API which should be pretty simple from LUA.
Brett