| View previous topic :: View next topic |
| Author |
Message |
dermont Voice
Joined: 08 Mar 2006 Posts: 3
|
Posted: Sat Feb 06, 2010 2:51 pm Post subject: Script for Posting like from txt |
|
|
Hi,
are there any scripts which post any text from outside, like googlesheet or something? I just cant use something like a txt in the local folder because this file/txt has to be accessed from outside. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Feb 06, 2010 9:37 pm Post subject: Re: Script for Posting like from txt |
|
|
| dermont wrote: | Hi,
are there any scripts which post any text from outside, like googlesheet or something? I just cant use something like a txt in the local folder because this file/txt has to be accessed from outside. |
Any web fetch script can do this with a few regexp's or similar.
...but...
When the site requires https (secure socket) or authentication (base64), such as google docs spread sheet does. Your going to need to read on how to mimic API functions in pure tcl. Your also going to need to make sure your bot has the required tls package and base64 packages installed.
http://code.google.com/apis/spreadsheets/data/3.0/developers_guide_protocol.html
This gives you all the information you would need to accomplish what you want. The problem is there is a complete lack of an API package to wrap your API calls for those using tcl. So your going to basically need to write your own minimized API functions for logging in and then for retrieving. But your going to have to do it all in pure tcl. This is basically writing your own road map and learning as you go. This can either be fun or frustrating. This is how I wrote the Twitter & Tweets script. I never used twitter before making that, and after finishing I still won't use it much. But it serves as proof-of-concept for others on how to accomplish this and how it works.
For google docs spread sheets this should get you started:
http://code.google.com/apis/gdata/docs/auth/overview.html#AuthSub
Authsub is similar to the rest API used by twitter. You would only need to use Oauth if you wanted a "custom name" used for your application and requires alot of work for little gain. Hopefully others can give some insight into how google docs spread sheet API works as I've never used it myself.... _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|