(ctx context.Context)
| 299 | } |
| 300 | |
| 301 | func (s *Session) GetOrgs(ctx context.Context) ([]Organization, error) { |
| 302 | var orgs Organizations |
| 303 | if err := s.get(ctx, "/orgs", &orgs); err != nil { |
| 304 | return nil, err |
| 305 | } |
| 306 | return orgs.Items, nil |
| 307 | } |
| 308 | |
| 309 | func getOrgRealmsPath(orgApid string) string { |
| 310 | return "/orgs/" + url.QueryEscape(orgApid) + "/realms" |