Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gonnabuyamac

macrumors 6502
Original poster
Sep 26, 2006
412
0
I'm working on a website for a band that wants to allow people download a free EP after they post something about it on their twitter account.

Anyone have any idea how I'd go about doing such a thing?
 

SrWebDeveloper

macrumors 68000
Dec 7, 2007
1,871
3
Alexandria, VA, USA
You might want to look into the Twitter API which I believe allows you to search for keywords/callbacks in their database. Meaning, a user can tweet via any means outside your site, then when they visit your site and login and provide the necessary twitter account info (say, in their profile) you can run a server side API search and see if they included one of the band's related callbacks/keywords in their tweets. If the query is true then present the download link, etc.

Am I making sense?

A quick glance at the API documentation shows there is a query method with callback and show_user parameters so you should be able to see if users on your site posted a tweet with one of your callbacks or keywords. There are also links in the API home page for discussion groups where you could ask about this. All I can think of so far.

-jim
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.