Ratos Aburridos (Parte I)
| Posted in programación | Posted on 05-01-2009
73
Hoy me aburria y me hice un pequeño programilla en java para Twittear desde linea de comandos, si, fué un largo y aburrido rato… Este es el estupi-codigo:
import java.io.*;
import java.util.List;
import twitter4j.Status;
import twitter4j.Twitter;
public class main {
public static void main (String[] args){
String user="";
String pwd="";
System.out.println("Introduzca su nombre de usuario: ");
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
user = br.readLine();
}catch(Exception e){ e.printStackTrace();
}
System.out.println("Introduzca su password: ");
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
pwd = br.readLine();
}catch(Exception e){ e.printStackTrace();
}
Twitter myTwitter = new Twitter(user, pwd);
try{
String twiteo=null;
System.out.println("Introduce tu Twitteo: ");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
twiteo = br.readLine();
myTwitter.update(twiteo);
/*
List<Status> utl = myTwitter.getUserTimeline();
utl = myTwitter.getFriendsTimeline();
for(Status a : utl){
// Obtenemos el avatar del usuario loggueado
System.out.println("Imagen: " +
a.getUser().getProfileImageURL().toString());
// Obtenemos la fecha de creacion del mensaje
System.out.println("Fecha: " + a.getCreatedAt());
//Obtenemos el mensaje
System.out.println("Mensajes: " + a.getText());
}
*/
System.out.println(myTwitter.getBaseURL());
}catch(Exception e){
System.out.println("Error al twittear");
}
}
}
What would most of us do without the presence of the excellent strategies you write about on this web site? Who else comes with the endurance to deal with vital topics in the interests of common visitors like me? My spouse and i and my pals are very delighted to have your blog among the types we often visit. It is hoped you know how much we get pleasure from your efforts! Best wishes coming from us all.
We so appreciate your website post. There are actually a lot of means we could put it to very good use with no effort in time and financial resources. Thank you really pertaining to helping have the post give light to many issues we have got before now.
I just now wanted to inform you about how much we appreciate anything you’ve discussed to help enhance the lives of men and women in this theme. Through your current articles, I’ve really gone via just a newcomer to a skilled in the area. It is truly a homage to your efforts. Thanks
I couldn’t have asked for an even better blog. You happen to be ever present to supply excellent tips, going right to the point for convenient understanding of your readership. You’re truly a terrific professional in this subject. Thanks a lot for being there for people like me.
The authoritative answer, curiously…
It was some sort of pleasure discovering your site the other day. I came up here just now hoping to come across new things. I was not disappointed. Your ideas upon new strategies on this subject were insightful and a terrific help to my family. Thank you for having time to create these things plus for sharing your thoughts.
Some truly exceptional articles on this internet site , thankyou for contribution.
This particular Are normally Weight Loss diet will probably be an very and flexible sticking to your diet training planned for people who locate themselves searching for to get slimmer body moreover eventually sustain a significantly much more healthy life style. weight loss
It was a real contentment getting to your site recently. I came here this day hoping to come across something new. And I was not let down. Your ideas in new solutions on this thing were informative and an excellent help to myself. Thank you for leaving out time to create these things as well as sharing your opinions.
Most I can point out is, I’m not sure what to say! Except needless to say, for the superb tips which are shared on this blog. I can think of a million fun strategies to read the reports on this site. I think I will eventually take a step employing your tips on those things I could not have been able to touch alone. You’re so considerate to let me be one of those to benefit from your valuable information. Please know how significantly I am thankful.
I couldn’t currently have asked for a more rewarding blog. You’re always there to give excellent information, going right to the point for simple understanding of your target audience. You’re undeniably a terrific expert in this subject. Thank you for currently being there for individuals like me.
Hey, you used to write amazing, but the last couple of posts have been kinda boring¡K I miss your excellent writings. Past couple of posts are just a bit out of track! come on!
We fully appreciate your site post. There are actually lots of techniques we could put it to great use while having no effort with time and money. Thank you really regarding helping make the post reply many issues we have experienced before now.
I just now wanted to inform you how much I appreciate everything you’ve shared to help enhance the lives of people in this theme. Through your articles, I’ve really gone through just a newcomer to a pro in the area. It truly is truly a tribute to your good work. Thanks
There is numerous separate years Los angeles Weight reduction eating plan with each a person is really a necessity. The pioneer part can be your original obtaining rid of belonging to the extra pounds. la weight loss
I am typically to blogging and i actually recognize your content material. The write-up has actually peaks my interest. I am going to bookmark your internet site and preserve checking for brand new details.
It is nonsense!
What would many of us do without the awesome suggestions you share on this web site? Who has got the perseverance to deal with important topics for the health of common readers like me? I and my girlfriends are very lucky to have your web blog among the kinds we usually visit. We hope you know how much we get pleasure from your hard work! Best wishes coming from us all.
I find it hard to surf your blog, would you just adjust the site traffic in here?
I can not thank you sufficiently for the discussions on your website. I know you placed a lot of time and effort into these and hope you know how deeply I enjoy it. I hope I am able to do the same for another person sometime.
It truly is rare to get an expert in whom you might have some faith. In the world at present, nobody truly cares about showing others exactly how in this subjecttopic. How happy I am to have found a really wonderful web page as this. It truly is people like you that make a real difference in this world through the concepts they write about.
Thanks a lot for your efforts to have had these things together on this blog site. Jack and i also very much prized your ideas through the articles over certain things. I recognize that you have a number of demands on your schedule hence the fact that an individual like you took all the time as you did to help people just like us via this article is also highly treasured.
It was something of great pleasure getting to your site a short while ago. I came here today hoping to come across something new. I was not upset. Your ideas on new tactics on this thing were helpful and a great help to us. Thank you for leaving out time to write down these things along with sharing your opinions.