Java API
AnsweredHave anybody a working jar api with all dependency's in the API so it can be easaly incoperated in application without depending on a github.
I want to list Items in a project select it and add an url reference to the Item
A want just to have a application to write URL links references to an excisting ITem.
THX
-
Hi Jeroen
The Java API client uses Maven to manage dependencies. It is by far the easiest to also use Maven for your project, so all the dependencies are handled automatically.
You can f.ex. see the Twitter sample here: https://github.com/podio/sample-twitter
You can use pom.xml from there as a starting point. It also includes the maven-shade-plugin, which makes it simple to package your jar including all dependencies. It will also generate a manifest for you with the main-class entry, so you can simply run the resulting jar.
Christian
-
+1
The examples are way out-of-date and most will not build with the current API version. I'm struggling with the getItems class - specifically understanding the FilterByValue parameter.
Every single Java example invokes the getItemsByExternalId method, but none using the getItems method. I'd sure like to see some updated examples that demonstrate a variety of methods using the Jave API and that will build without me having to rewrite the API calls.
-
I posted this in another topic. Cheers.
ItemAPI itemAPI = apiFactory.getAPI(ItemAPI.class);
ItemsResponse response = itemAPI.getItems(2100929, 100, 0, null, false);
System.out.println(response.toString());
List<ItemBadge> items = response.getItems();
for (ItemBadge item : items)
{
List<FieldValuesView> fields = item.getFields();
for (FieldValuesView field : fields)
{
System.out.println(field.getLabel().toString());
System.out.println(field.getValues().toString());
}
}
Please sign in to leave a comment.
Comments
5 comments