- Previous: Errors
- Up: Pikeo Documentation
- Next: List of the Methods
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");
}
- Previous: Errors
- Up: Pikeo Documentation
- Next: List of the Methods
Docs Navigation
- Home
- Authentication
- PictureURL
- Errors
- javaApiKit
- API
- pikeo test echo
- pikeo test version
- pikeo test login
- pikeo albums getInfo
- pikeo albums getList
- pikeo albums getPhotos
- pikeo comments addComment
- pikeo comments deleteComment
- pikeo comments getList
- pikeo comments getMyCommentedPhotos
- pikeo comments getPicturesCommentedByMe
- pikeo comments updateComment
- pikeo contacts getList
- pikeo groups addPhotos
- pikeo groups findByName
- pikeo groups getInfo
- pikeo groups getList
- pikeo groups getMembers
- pikeo groups getPhotos
- pikeo groups removePhotos
- pikeo groups search
- pikeo people findByUsername
- pikeo people getInfo
- pikeo people getMyInfo
- pikeo people getPublicPhotos
- pikeo photos addTags
- pikeo photos getContactsPublicPhotos
- pikeo photos getInfo
- pikeo photos getMostViewed
- pikeo photos getUserPhotos
- pikeo photos search
- pikeo photos setMeta
- pikeo photos setPrivacy
- pikeo photos upload
- phpApiKit
- DTO

Comments
nhouyvas – 2 years ago
Please for any comment see the forum
New comments are not being accepted at this time.