egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script for Posting like from txt

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
dermont
Voice


Joined: 08 Mar 2006
Posts: 3

PostPosted: Sat Feb 06, 2010 2:51 pm    Post subject: Script for Posting like from txt Reply with quote

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
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Feb 06, 2010 9:37 pm    Post subject: Re: Script for Posting like from txt Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber