com.podio.root.RootAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.root;
import com.podio.ResourceFactory;
/**
* Very basic API to get the status of the system.
*/
public class RootAPI {
private final ResourceFactory resourceFactory;
public RootAPI(ResourceFactory resourceFactory) {
this.resourceFactory = resourceFactory;
}
/**
* @return The current status of the system
*/
public SystemStatus getStatus() {
return resourceFactory.getApiResource("/", false).get(
SystemStatus.class);
}
}