Skip to content

[concept-insights] There should be a simpler method for accessing your service's first accountId #190

@g-may

Description

@g-may

There is a private method that does this in ConceptInsights.java:

  private String getAccountId() {
    if (accountId == null) {
      final Accounts accounts = getAccountsInfo();
      if (accounts != null && accounts.getAccounts() != null && !accounts.getAccounts().isEmpty()) {
        accountId = accounts.getAccounts().get(0).getId();
      }
    }
    return accountId;
  }

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions