Hello, I'm using coldfusion to post automaticly a message from a
website to my twitter,
but now I'm receiving the message
401 Unauthorized
[code](maybe it works...)
cffunction name=postStatus access=public output=false
returntype=Any
cfargument name=tu type=string required=yes
cfargument name=tp type=string required=yes
cfargument name=message required=true /
cfargument name=replyid default=
cfset message = CharsetEncode(CharsetDecode(arguments.message,
utf-8), utf-8)
cfhttp url=http://api.twitter.com/1/statuses/update.xml;
method=post username=#arguments.tu#
password=#arguments.tp# //PRETTY SURE the error is here =x
cfhttpparam name=status value=#arguments.message#
type=formfield /
cfhttpparam name=in_reply_to_status_id type=formfield
value=#arguments.replyid# /
cfhttpparam name=source type=formfield value=A Better World
Project /
/cfhttp
cfreturn cfhttp.statuscode /
/cffunction
[/code]
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk