// Read an organization membership by ID with options
Read an organization membership by ID with options
// Read an organization membership by ID with options
func (s *organizationMemberships) ReadWithOptions(ctx context.Context, organizationMembershipID string, options OrganizationMembershipReadOptions) (*OrganizationMembership, error) {
	if !validStringID(&organizationMembershipID) {
		return nil, errors.New("invalid value for membership")
	}
	u := fmt.Sprintf("organization-memberships/%s", url.QueryEscape(organizationMembershipID))
	req, err := s.client.newRequest("GET", u, &options)
	mem := &OrganizationMembership{}
	err = s.client.do(ctx, req, mem)
	if err != nil {
		return nil, err
	}
	return mem, nil
}
func ( s * organizationMemberships ) ReadWithOptions ( ctx context . Context , organizationMembershipID string , options OrganizationMembershipReadOptions ) ( * OrganizationMembership , error ) { if ! validStringID ( & organizationMembershipID ) { return nil , errors . New ( " " ) } u := fmt . Sprintf ( " " , url . QueryEscape ( organizationMembershipID ) ) req , err := s . client . newRequest ( " " , u , & options ) mem := & OrganizationMembership { } err = s . client . do ( ctx , req , mem ) if err != nil { return nil , err } return mem , nil }
Read an organization membership by ID with options
Read an organization membership by ID with options