Skip to content

Commit 5866884

Browse files
Remove Set Header (#93)
1 parent 5a1f4fa commit 5866884

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+0
-86
lines changed

domain/integrations/planningcenter/checkins/organization.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain/integrations/planningcenter/checkins/organization"
109
)
@@ -23,7 +22,6 @@ func (s *Service) GetOrganization(ctx context.Context) (*organization.Organizati
2322
return nil, err
2423
}
2524
req = req.WithContext(s.ctx)
26-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_CHECKINS_API_VERSION"))
2725

2826
result := &organization.OrganizationResponse{}
2927

domain/integrations/planningcenter/people/addresses.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain"
109
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/address"
@@ -24,7 +23,6 @@ func (s *Service) ListAddresses(ctx context.Context) (domain.IdentitySlice[addre
2423
return nil, err
2524
}
2625
req = req.WithContext(s.ctx)
27-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
2826

2927
result := &address.AddressResponse{}
3028

domain/integrations/planningcenter/people/app.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/app"
109
)
@@ -24,7 +23,6 @@ func (s *Service) ListApps(ctx context.Context) (app.Apps, error) {
2423
return nil, err
2524
}
2625
req = req.WithContext(s.ctx)
27-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
2826

2927
result := &app.AppResponse{}
3028

domain/integrations/planningcenter/people/backgroundcheck.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/backgroundcheck"
109
)
@@ -24,7 +23,6 @@ func (s *Service) ListBackgroundChecks(ctx context.Context) (backgroundcheck.Bac
2423
return nil, err
2524
}
2625
req = req.WithContext(s.ctx)
27-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
2826

2927
result := &backgroundcheck.BackgroundCheckResponse{}
3028

domain/integrations/planningcenter/people/carrier.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/carrier"
109
)
@@ -24,7 +23,6 @@ func (s *Service) ListCarriers(ctx context.Context) (carrier.Carriers, error) {
2423
return nil, err
2524
}
2625
req = req.WithContext(s.ctx)
27-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
2826

2927
result := &carrier.CarrierResponse{}
3028

domain/integrations/planningcenter/people/connectedperson.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/connectedperson"
109
)
@@ -24,7 +23,6 @@ func (s *Service) ListConnectedPersons(ctx context.Context, personID string) (co
2423
return nil, err
2524
}
2625
req = req.WithContext(s.ctx)
27-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
2826

2927
result := &connectedperson.ConnectedPersonResponse{}
3028

domain/integrations/planningcenter/people/email.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain"
109
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/email"
@@ -25,7 +24,6 @@ func (s *Service) ListEmails(ctx context.Context) (domain.IdentitySlice[email.Em
2524
return nil, err
2625
}
2726
req = req.WithContext(s.ctx)
28-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
2927

3028
result := &email.EmailResponse{}
3129

domain/integrations/planningcenter/people/fielddata.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain"
109
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/fielddatum"
@@ -35,7 +34,6 @@ func (s *Service) ListFieldData(ctx context.Context) (*FieldDataResult, error) {
3534
return nil, err
3635
}
3736
req = req.WithContext(s.ctx)
38-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
3937

4038
result := &fielddatum.FieldDatumResponse{}
4139

domain/integrations/planningcenter/people/fielddefinition.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain"
109
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/fielddefinition"
@@ -30,7 +29,6 @@ func (s *Service) ListFieldDefinitions(ctx context.Context, includes ...string)
3029
return nil, err
3130
}
3231
req = req.WithContext(s.ctx)
33-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
3432

3533
result := &fielddefinition.FieldDefinitionResponse{}
3634

domain/integrations/planningcenter/people/fieldoption.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net/http"
66
"net/url"
7-
"os"
87

98
"github.com/getparable/parable-api/domain"
109
"github.com/getparable/parable-api/domain/integrations/planningcenter/people/fieldoption"
@@ -25,7 +24,6 @@ func (s *Service) ListFieldOptions(ctx context.Context, fieldDefinitionID string
2524
return nil, err
2625
}
2726
req = req.WithContext(s.ctx)
28-
req.Header.Set("X-PCO-API-Version", os.Getenv("PLANNING_CENTER_PEOPLE_API_VERSION"))
2927

3028
result := &fieldoption.FieldOptionResponse{}
3129

0 commit comments

Comments
 (0)