i used the examples that is in built in arduino to receive tweets. but i wish to receive and write a tweet to a specific account. how do i possibly do that?

i followed the codes from the arduino example. http://arduino.cc/en/Tutorial/WiFiTwitterClient

but in the codes, it didnt specify where the tweets were coming from. when i run the codes, i received tweets which comes from other tweets which is unknown to me.

share|improve this question
@LeonHeller - Are questions about embedded programming outside the scope? I can see that it is borderline, but still within the FAQ (electronics.stackexchange.com/faq) – trygvis Oct 17 '12 at 9:11
This is a pure software problem. – Olin Lathrop Oct 17 '12 at 13:10
Pure software problem on the arduino, I wont close it and I dont think it makes sense to close it. This user is attempting to add features to an embedded platform he is working on. To me it seems many realities here may relate to both Stack Overflow and EE.SE. I am supporting leaving this open. Lets discuss this point here though – Kortuk Oct 17 '12 at 15:00

2 Answers

The code you link to only looks at a user's tweets.

Change 'arduino' in the following line to the twitter account you wish to read

client.println("GET /1/statuses/user_timeline.xml?screen_name=arduino HTTP/1.1");

To send posts you need to send a HTTP POST packet, e.g. see

https://dev.twitter.com/docs/api/1.1/post/statuses/update

For the other api commands: https://dev.twitter.com/docs/api/1.1

But this all requires authentication:

https://dev.twitter.com/docs/auth/oauth

The people at stackoverflow will know how to do it!

share|improve this answer
It sounds like you know a decent bit of it, I wish you could add the last bit of information, I have seen arduinos tweeting before, and although it is not my cup of tea, it exists. – Kortuk Oct 17 '12 at 15:04
@Kortuk - I just got that information from a bit of googling and previous experience with HTTP messaging. I haven't done the tweeting myself so I can't add that info. – geometrikal Oct 17 '12 at 23:16
was hoping that would only take a bit of googling also. – Kortuk Oct 17 '12 at 23:25

I bet you would have found a solution by now. For those looking for the same question I have written an Instructable. Check it out.

Note: I have not written any of the code. I have just compiled all the info already available on the internet.

share|improve this answer

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.