Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.13 KB

File metadata and controls

73 lines (55 loc) · 2.13 KB

OrganizationsApi

All URIs are relative to https://api.dev.cobo.com/v2

Method HTTP request Description
getOrgInfo GET /organizations/info Get organization information

getOrgInfo

OrgInfo getOrgInfo()

Get organization information

This operation retrieves the detailed information about the organization associated with the current API key.

Example

// 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();
    }
  }
}

Parameters

This endpoint does not need any parameter.

Return type

OrgInfo

Authorization

CoboAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

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. -