All URIs are relative to https://api.dev.cobo.com/v2
| Method | HTTP request | Description |
|---|---|---|
| getOrgInfo | GET /organizations/info | Get organization information |
OrgInfo getOrgInfo()
Get organization information
This operation retrieves the detailed information about the organization associated with the current API key.
// Import classes:
import com.cobo.waas2.ApiClient;
import com.cobo.waas2.ApiException;
import com.cobo.waas2.Configuration;
import com.cobo.waas2.model.*;
import com.cobo.waas2.Env;
import com.cobo.waas2.api.OrganizationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD
defaultClient.setEnv(Env.DEV);
// Replace `<YOUR_PRIVATE_KEY>` with your private key
defaultClient.setPrivKey("<YOUR_PRIVATE_KEY>");
OrganizationsApi apiInstance = new OrganizationsApi();
try {
OrgInfo result = apiInstance.getOrgInfo();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrganizationsApi#getOrgInfo");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | The request was successful. | - |
| 4XX | Bad request. Your request contains malformed syntax or invalid parameters. | - |
| 5XX | Internal server error. | - |