PicasaPhotoAlbum에 액세스하기 위해 WebService를 구현하고 싶습니다. 그러나 나는 다음과 같은 문제가있다 :
것은 내가 URL 다음 한 :이 작동하지 않습니다Picasa API - URL이 태그와 함께 작동하지 않습니다.
URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/user/466601293793610730264/album/Testalbum?tag=Test");
. 그러나 "? tag = Test"를 삭제하면 URL은 다음과 같이 보입니다.
URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/use/466601293793610730264/album/Testalbum");
코드가 완벽하게 작동합니다. 것은, 나는 단지 특별한 꼬리표를 가진 그림이 있고 싶다이다. 왜 누군가가 "? tag = Test"와 함께 작동하지 않는지 설명 할 수 있습니까?
public class RaceDriverImport implements IRaceDriverService {
PicasawebService myService = new PicasawebService("TestIt");
public RaceDriverImport() throws AuthenticationException {
myService.setUserCredentials("[email protected]", "99thisisabadpw77");
}
@Override
public List<RaceDriver> getRaceDrivers() throws IOException, ServiceException {
URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/user/466601293793610730264/album/Testalbum?tag=Test");
AlbumFeed feed = myService.getFeed(feedUrl, AlbumFeed.class);
for (PhotoEntry photo : feed.getPhotoEntries()) {
System.out.println(photo.getTitle().getPlainText());
}
List<RaceDriver> drivers = null;
return drivers;
}
오류가 무엇입니까? HTTP 오류 코드가 무엇인지, 관련 메시지는 무엇입니까? – fge
URL 끝에 태그를 사용하면 오류가 발생합니다. 사진이 없습니다. 나는 또한 내 브라우저에서 그것을 시도하고 거기에 작동합니다. –
매개 변수를 추가 할 때 우리의 앨범 피드는 null입니다. –