in twitter-compatible API what is setAPIRootURL value ?
twitter=new Twitter("username","password");
twitter.setAPIRootUrl("http://yamba.marakana.com/api");
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This just points to the api endpoint of your twitter compatible service.
Actual queries then go “below that” like http://yamba.marakana.com/api/timeline/home.json etc.
This Marakana is a public Twitter-like service based on status.net.
Others are identi.ca (api endpoint is http://identi.ca/api/ ) and so on.
As Daniel wrote, Twitter is the default. The javadoc for setAPIRootUrl says:
So basically to connect to Twitter you don’t need to care about that method.