Ian White
asked on
Hourly CF scheduled task to write to twitter
I have a scheduled hourly task that has been posting to twitter - see below
<cfoutput>
<cfhttp
url="http://affiliators.biz/index.php?SP=1&afid=153864&msg=#URLEncodedFormat(ReportLine)#">
</cfoutput>
However the people who did this for me can no loinger support me and it stopped woring
I dont want to get too deep technically. Is there a quick and easy way to post from coldfusion - need to login to twitter etc
Thanks
<cfoutput>
<cfhttp
url="http://affiliators.biz/index.php?SP=1&afid=153864&msg=#URLEncodedFormat(ReportLine)#">
</cfoutput>
However the people who did this for me can no loinger support me and it stopped woring
I dont want to get too deep technically. Is there a quick and easy way to post from coldfusion - need to login to twitter etc
Thanks
ASKER
I should have explained this more. I am looking at replace this as it wont be available anymore
How do I tweet from a scheduled task aughorisation etc in a simple way
How do I tweet from a scheduled task aughorisation etc in a simple way
I haven't used it but you could look at http://monkehtweet.riaforge.org/ It's an active project so it probably takes into account the latest oauth changes twitter has made.
ASKER
I downloaded this thanks and followed the steps to create an application in twitter
I changed the function below as per notes. And uploaded the folders to my root directory
However there are not more instructions. How do I write to twitter?
I changed the function below as per notes. And uploaded the folders to my root directory
However there are not more instructions. How do I write to twitter?
<cffunction name="OnApplicationStart"
access="public"
returntype="boolean"
output="false">
<cfscript>
application.objMonkehTweet =
createObject('component',
'com.coldfumonkeh.monkehTweet')
.init(
consumerKey = 'bla bla bla',
consumerSecret = 'BLA BLA BLA',
oauthToken = 'bla bla bla',
oauthTokenSecret = 'BLAblaBLA',
userAccountName = 'housecarers',
parseResults = true
);
return true;
</cfscript>
</cffunction>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Looks like I just posted something to twitter using your link
twitted
thisisatest
to housecarers
I hope that "housecarers" doesn't mind my tweet !
My first test failed because I didn't replace the variable... so perhaps it has to do with the value of ReportLine - have you tried a variety of different values to tweet to see what works and doesn't work?