implementation 'structure.Structure:Structure:0.17.1'
You'll need to authenticate your requests to access any of the endpoints in the Structure API. In this guide, we'll look at how authentication works. Structure offers authentication for your API requests with a token.
Authentication with the Structure API is using OAuth2. When establishing a connection using OAuth2, you will need your access token — you will find it in the Structure dashboard under API settings.
package hello.world;
import structure.Structure.SDK;
import structure.Structure.models.operations.EnrichCompanyRequest;
import structure.Structure.models.operations.EnrichCompanyResponse;
import structure.Structure.models.shared.Security;
public class Application {
public static void main(String[] args) {
try {
SDK sdk = SDK.builder()
.setSecurity(new Security("corrupti") {{
bearerAuth = "";
}})
.build();
EnrichCompanyRequest req = new EnrichCompanyRequest("provident");
EnrichCompanyResponse res = sdk.companies.enrich(req);
if (res.body != null) {
// handle response
}
} catch (Exception e) {
// handle exception
}
}
}
- listUsers - Show current user accounts
- enrich - Enrich a company profile
- listEmployees - List company employees
- listJobs - List company jobs
- search - Search Companies
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !