weiboclient4j.CommonService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weiboclient4j Show documentation
Show all versions of weiboclient4j Show documentation
Java library for Sina Weibo
package weiboclient4j;
import weiboclient4j.params.AddressCode;
import weiboclient4j.params.CapitalLetter;
import weiboclient4j.params.Country;
import weiboclient4j.params.Language;
import weiboclient4j.params.Province;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Hover Ruan
*/
public class CommonService extends AbstractService {
public CommonService(WeiboClient client) {
super(client);
}
public Map getTimezoneMap() throws WeiboClientException {
return getTimezoneMap(null);
}
@SuppressWarnings("unchecked")
public Map getTimezoneMap(Language language) throws WeiboClientException {
return doGet("common/get_timezone",
withParams(language), HashMap.class);
}
public Map getCountryMap() throws WeiboClientException {
return getCountryMap(null, null);
}
public Map getCountryMap(Language language, CapitalLetter capitalLetter)
throws WeiboClientException {
List