(ctx context.Context, orgAPID string, serviceAPID string)
| 128 | } |
| 129 | |
| 130 | func (s *Session) GetServiceAttachments(ctx context.Context, orgAPID string, serviceAPID string) ([]Attachment, error) { |
| 131 | var attachments Attachments |
| 132 | if err := s.get(ctx, getServiceAttachmentsPath(orgAPID, serviceAPID), &attachments); err != nil { |
| 133 | return nil, err |
| 134 | } |
| 135 | return attachments.Items, nil |
| 136 | } |
| 137 | |
| 138 | func (s *Session) CreatePATToken(ctx context.Context, deviceCode string) (string, error) { |
| 139 | reqBody := CreateCliTokenJSONRequestBody{ |