aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes API using http://search.twitter.com/search.json?q=kword has stopped working nowdays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "API using http://search.twitter.com/search.json?q=kword has stopped working nowdays" Watch "API using http://search.twitter.com/search.json?q=kword has stopped working nowdays" New topic
Author

API using http://search.twitter.com/search.json?q=kword has stopped working nowdays

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 644
Is there any simple java API http://search.twitter.com/search.json?q=keyword like using which we can get posts from social networking websites for a particular keyword.I was doing this for my sample application using this URL l but it has stopped working now days. Is there any similar api for which we can create java REST client easily for networking sites (like twitter,Facebook, or any).

Thanks.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

If you open the URL you provided in a browser, you get
{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}

Did you check out v1.1?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 644
I tried url

It gave error message {"errors":[{"message":"Bad Authentication data","code":215}]}
\

All I want is some posts from networking website like FB twitter e tc for my Sample application.Thats all.
thansk
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

Why not use a library like Twitter4J?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Tim Cooke
Bartender

Joined: Mar 28, 2008
Posts: 1128
    
  59

As I understand it Twitter revoked anonymous public access to their API's because they were getting hammered with every Tom, Dick, and Harry using it for demo applications. You can still access the API but I think you need to provide your login details now or register for it or something.

Never used Twitter4J so can't comment on that.


Tim Driven Development
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 644
thank you. I will do the changes for changed API access
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: API using http://search.twitter.com/search.json?q=kword has stopped working nowdays