Java API Kit

To help you get started we created an API kit for people using Java.

Since the release 2.1.0, the kit allows to cast the response into a DTO. The latest release 2.3.1, 12/12/08, contains bugs fixed, download here.

JavaDoc API

For the current Java Pikeo API kit 2.3.1 download here

A quick code sample

String apiEndpoint = "http://api.pikeo.com/services/pikeo/v2/xmlrpc";

AbstractPikeoClientObject clientObject = new PikeoXmlRPCClientObject(apiEndpoint,
TEST_API_KEY, TEST_API_SECRET);
clientObject.setProxy(true, your_proxy_host, your_proxy_port, your_proxy_user, your_proxy_password);

PikeoTest serviceTest = clientObject.getTestService();

String apiKey = serviceTest.echo();
System.out.println("apiKey = "+apiKey);

String userName = "yab";
Integer userId = clientObject.getPeopleService().findByUsername(userName);

PikeoAlbums albumService = clientObject.getAlbumService();
List<Album> albums = albumService.getList(userId);

System.out.println("albums : "+albums.size()+" albums");
for (Album album : albums) {
List<Photo> albumPhotos = albumService.getPhotos(album.getId(), 11);
System.out.println("Album "+album.getTitle()+" : "+(albumPhotos.size()>10?"more than 10":albumPhotos.size())+" pictures");
}


Comments

  1. nhouyvas2 years ago

    Please for any comment see the forum

New comments are not being accepted at this time.