BandsInTown API service interface
- 资源大小:1.13 MB
- 上传时间:2021-06-30
- 下载次数:0次
- 浏览次数:1次
- 资源积分:1积分
-
标 签:
资 源 简 介
Java library that makes it convenient to perform service calls to BandsInTown to retrieve concert events data through the BandsInTown API.
Sample:
```
RecommendedRequest bandsService = new RecommendedRequest();
bandsService.setApplicationId("my-application-id");
bandsService.setLocation("San Diego,CA");
bandsService.setRadius(50);
List artistsByName = new ArrayList();
artistsByName.add("Christina Aguilera");
artistsByName.add("Lil" Wayne");
artistsByName.add("britney spears");
bandsService.setArtists(artistsByName);
try {
BandsInTownResponse response = bandsService.callService();
List events = response.getEvents();
for (Event event : events) {
// process each event
}
} catch (ServiceException e) {
ErrorResponse error = e.getErrorResponse();
if (error != null) {
// error is request constraint failure
int i = 1;
for (String errorMsg : error.getErrors()) {
System.err.println("
文 件 列 表
javadocs
allclasses-frame.html
allclasses-noframe.html
com
constant-values.html
deprecated-list.html
help-doc.html
index-all.html
index.html
overview-frame.html
overview-summary.html
overview-tree.html
package-list
resources
serialized-form.html
stylesheet.css
bandsintown.properties
bandsintown-java-1.2.0.jar
bandsintown-java-1.2.0-javadoc.jar
bandsintown-java-1.2.0-sources.jar
LICENSE.txt
README.txt
dependencies
junit-4.5.jar
log4j-1.2.15.jar
xpp3_min-1.1.4c.jar
xstream-1.3.1.jar