(ctx context.Context, orgApid string)
| 311 | } |
| 312 | |
| 313 | func (s *Session) GetOrgRealms(ctx context.Context, orgApid string) ([]Realm, error) { |
| 314 | var realms Realms |
| 315 | if err := s.get(ctx, getOrgRealmsPath(orgApid), &realms); err != nil { |
| 316 | return nil, err |
| 317 | } |
| 318 | return realms.Items, nil |
| 319 | } |
| 320 | |
| 321 | func getOrgServicesPath(orgSlug string) string { |
| 322 | return "/orgs/" + url.QueryEscape(orgSlug) + "/services" |