This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Script for Posting like from txt

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
d
dermont
Voice
Posts: 3
Joined: Wed Mar 08, 2006 1:09 pm

Script for Posting like from txt

Post by dermont »

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.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Re: Script for Posting like from txt

Post by speechles »

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/spreadsheet ... tocol.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/ ... ml#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....
Post Reply