Solved

Hourly CF scheduled task to write to twitter

Posted on 2011-09-12
6
245 Views
Last Modified: 2012-08-13
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



0
Comment
Question by:Ian White
  • 3
  • 2
6 Comments
 
LVL 39

Expert Comment

by:gdemaria
ID: 36522419

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?
0
 

Author Comment

by:Ian White
ID: 36522478
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

0
 
LVL 36

Expert Comment

by:SidFishes
ID: 36522790
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.

0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:Ian White
ID: 36525962
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?  
<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>

Open in new window

0
 
LVL 36

Accepted Solution

by:
SidFishes earned 500 total points
ID: 36526025
0
 

Author Closing Comment

by:Ian White
ID: 36552048
Thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Displaying Category Name with Count 16 52
cfspreadsheet 15 84
Coldfusion grab data from multi level structures 3 56
Fixing Old Legacy Code 1 24
PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now