tags:

views:

63

answers:

3

I want to develop a web application that uses the Twitter API.

Where can i find examples

thanks for replay. I have downloaded an app from this site - github.com/yusuke/sign-in-with-twitter I have deployed and its running, but its giving javax.el.PropertyNotFoundException: Property 'userId' not found on type twitter4j.Twitter this exception after giving log in credentials in twitter log in site. thanks in advance.

i am not able to resolve this issue. can anybody help on this

A: 

Search for 'twitter api java examples' in Google and you'll find plenty of examples.

See http://blog.richardadamdean.com/?p=89 for an example using Twitter4J.

As a connection library, you could use

MvanGeest
+3  A: 

Hi Madhu,

Just go through the API and example: http://twitter4j.org/en/code-examples.html

Jprogyog
thanks for your replay.I have downloaded an app from this site - http://github.com/yusuke/sign-in-with-twitter I have deployed and its running, but its giving javax.el.PropertyNotFoundException: Property 'userId' not found on type twitter4j.Twitter this exception after giving log in credentials in twitter log in site.thanks in advance.
Madhu
Follow the steps on twitter4j.org page: Just add twitter4j-core-2.1.3.jar to your application classpath and start using the libraies. You won't face any problems.
zengr
Hi Zengr,jar file was already in the pathorg.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 129: <tag:notloggedin>10: <a href="signin"><img src="./images/Sign-in-with-Twitter-darker.png"/></a>11: </tag:notloggedin>12: <tag:loggedin>13: <h1>Welcome ${twitter.userId}</h1>14: 15: <form action="./post" method="post">org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.PropertyNotFoundException: Property 'userId' not found on type twitter4j.Twitter
Madhu
i am not able to resolve this issue.can anybody help on this.
Madhu
A: 

You can use Java Twitter - a pure Java interface for the Twitter API.

http://code.google.com/p/java-twitter/

Documentation and examples are on that page too :)

marioosh.net