Page 1 of 1

Twitter Update Script Device

Posted: Wed Jul 08, 2009 4:37 pm
by roussell
I've placed a script device export in the downloads area (pending approval) that will allow HouseBot to send updates to a Twitter account. Import the .hbx and you'll get a Twitter script device and a Twitter.vbs file in the Config\Scripts folder. Follow the instructions and start tweeting... :D

Here's a link to the file in the downloads area: http://www.housebot.com/DownloadNow.php ... witter.hbx

Terry

Re: Twitter Update Script Device

Posted: Wed Jul 08, 2009 4:42 pm
by ScottBot
It's approved and now available in the Downloads section of the main site under the Configuration Imports tab.

Thanks for the contribution!

Re: Twitter Update Script Device

Posted: Wed Dec 15, 2010 3:35 am
by jacco van der Ven
This script is not working, I think because Twitter changes his login autorization is there another way to use Twitter in Housebot?


Jacco

Re: Twitter Update Script Device

Posted: Wed Dec 15, 2010 5:53 am
by lostdreamer
Twitter has moved from basic authentication to oAuth.
If you want I can create a new script later today, shouldnt be to hard.

LostDreamer

Re: Twitter Update Script Device

Posted: Wed Dec 15, 2010 11:21 am
by jacco van der Ven
Well if you can, I will appreciate it.

Regards, Jacco

Re: Twitter Update Script Device

Posted: Wed Dec 15, 2010 11:53 am
by lostdreamer
in favor of creating a new plugin you could also use the SuperTweet service:
http://www.supertweet.net/about/documentation

For this, you can setup oAuth between an account at supertweet and your account at twitter and use the old VBscript from the download section with the only adjustment being that you use the URL http://api.supertweet.net instead of Twitter.com

Seeing there are no examples for VBscript to do this, I would either go this way or go with PHP for this (seeing I allready have a webserver running as well).

Regards,
LostDreamer

Re: Twitter Update Script Device

Posted: Wed Dec 15, 2010 12:43 pm
by jacco van der Ven
It is not working, I changed it in

http://api.supertweet.net/1/statuses/update.xml

REQUEST: /1/statuses/update.xml
ERROR: Internal error: null


Is this evertying what we have to replace?

Re: Twitter Update Script Devic

Posted: Thu Dec 16, 2010 10:28 am
by jacco van der Ven
Well, It is working now, used an other script, but that was also not working I had an errorcode 403
This means that I send duplicate message's. I changed the message and now It is working


strMessage = GetPropertyValue("System Time.Time")

Set objXML = CreateObject("Microsoft.XMLHTTP")

objXML.Open "POST", _
"http://api.supertweet.net/1/statuses/update.xml", _
False, _
strUserName, _
strSuperTweetPassword

objXML.setRequestHeader _
"Content-Type", _
"application/x-www-form-urlencoded "

objXML.Send "status=" & strmessage
SetPropertyValue "Twitter.Returned", objxml.responsetext