api是啥,官方免费下载星座运势
package api.jisuapi.astro;
import api.util.HttpUtil;
import net.sf.json.JSONObject;
公共类财富{
publicstaticfinalstringappkey=' your _ appkey _ here '; //你的应用程序
publicstaticfinalstringurl=' https://API.jisuapi.com/astro/fortune ';
公共静态金融int astro id=1;
publicstaticfinalstringdate=' 2016-01-19 ';
公共静态语音获取
try {
result=httputil.sendget(URL,' utf-8 ';
if(JSON.getint(Status )!=0}{
} else {
if(resultarr.opt(year )!=空) {
}
if(resultarr.opt(week )!=空) {
}
if(resultarr.opt ) ' Today '!=空) {
' ' money ' ' career ' ' love ' ' health;
}
if(resultarr.opt(Tomorrow )!=空) {
' ' money ' ' career ' ' love ' ' health;
}
if(resultarr.opt ) ' month '!=空) {
}
}
}catch(exceptione ) {
e .打印堆栈跟踪(;
}
}
}