Skip to content

Commit

Permalink
feat: Use new /studies endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspersorensen committed Apr 10, 2024
1 parent 3d4ba60 commit 62d1896
Show file tree
Hide file tree
Showing 112 changed files with 8,460 additions and 2,511 deletions.
8 changes: 1 addition & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@ module github.com/digiseg-labs/api-client-go

go 1.18

require golang.org/x/oauth2 v0.18.0

require (
github.com/golang/protobuf v1.5.4 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/protobuf v1.33.0 // indirect
)
require golang.org/x/oauth2 v0.19.0
40 changes: 2 additions & 38 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,39 +1,3 @@
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI=
golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
golang.org/x/oauth2 v0.19.0 h1:9+E/EZBCbTLNrbN35fHv/a/d/mOBatymz1zbtQrXpIg=
golang.org/x/oauth2 v0.19.0/go.mod h1:vYi7skDa1x015PmRRYZ7+s1cWyPgrPiSYRe4rnsexc8=
135 changes: 80 additions & 55 deletions openapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ api/openapi.yaml
api_accounts.go
api_audiences.go
api_auth.go
api_campaigns.go
api_measurement_clients.go
api_measurement_labels.go
api_populations.go
api_studies.go
api_usage.go
api_users.go
client.go
configuration.go
Expand All @@ -22,6 +23,7 @@ docs/AccountFull.md
docs/AccountItem.md
docs/AccountLinks.md
docs/AccountMutation.md
docs/AccountMutationAux.md
docs/AccountOwnerCreation.md
docs/AccountsAPI.md
docs/ApiKeyAux.md
Expand All @@ -36,6 +38,10 @@ docs/ApiKeyStatus.md
docs/ApiKeyToken.md
docs/Audience.md
docs/AudienceCategoryStats.md
docs/AudienceDataDailyUsage.md
docs/AudienceDataMonthlyUsage.md
docs/AudienceDataRealtimeUsage.md
docs/AudienceDataUsage.md
docs/AudienceResponse.md
docs/AudienceResponseStatus.md
docs/AudienceStats.md
Expand All @@ -45,34 +51,15 @@ docs/AuthTokenRequest.md
docs/AuthTokenResponse.md
docs/BusinessAudienceStats.md
docs/BusinessAudienceStatsAudienceCategories.md
docs/CampaignAudienceStats.md
docs/CampaignAux.md
docs/CampaignBase.md
docs/CampaignCountryStats.md
docs/CampaignCreation.md
docs/CampaignCreationData.md
docs/CampaignEventLink.md
docs/CampaignEventLinkParameterInfo.md
docs/CampaignEventLinks.md
docs/CampaignEventSet.md
docs/CampaignFrequencyStats.md
docs/CampaignFull.md
docs/CampaignIngestionStatus.md
docs/CampaignIntegrationPlatform.md
docs/CampaignItem.md
docs/CampaignLifecycleStage.md
docs/CampaignLinks.md
docs/CampaignMutation.md
docs/CampaignSummaryStats.md
docs/CampaignTimingStats.md
docs/CampaignsAPI.md
docs/CategoryPopulationsFull.md
docs/CompanySize.md
docs/CompanyType.md
docs/Comparison.md
docs/ComparisonsContainer.md
docs/CountryStats.md
docs/CreateApiKey201Response.md
docs/CreateCampaign201Response.md
docs/CreateMeasurementClient201Response.md
docs/CreateStudy201Response.md
docs/CreateUserInAccount201Response.md
docs/DayOfMonthStats.md
docs/DayOfWeekStats.md
Expand All @@ -85,20 +72,28 @@ docs/HourOfDayStats.md
docs/IdentifyableObject.md
docs/IdentifyableObject1.md
docs/ListApiKeysByAccountId200Response.md
docs/ListCampaigns200Response.md
docs/ListAudienceDataDailyUsage200Response.md
docs/ListAudienceDataMonthlyUsage200Response.md
docs/ListAudienceDataRealtimeUsage200Response.md
docs/ListMeasurementClients200Response.md
docs/ListMeasurementLabels200Response.md
docs/ListPaginationLinks.md
docs/ListPaginationMeta.md
docs/ListPaginationMetaPage.md
docs/ListPopuplations200Response.md
docs/ListStudies200Response.md
docs/ListUsersByAccountId200Response.md
docs/Measurement.md
docs/MeasurementClientBase.md
docs/MeasurementClientFull.md
docs/MeasurementClientItem.md
docs/MeasurementClientMutation.md
docs/MeasurementClientsAPI.md
docs/MeasurementEventLink.md
docs/MeasurementEventLinkParameterInfo.md
docs/MeasurementEventLinks.md
docs/MeasurementEventSet.md
docs/MeasurementIntegrationPlatform.md
docs/MeasurementLabelsAPI.md
docs/MeasurementsContainer.md
docs/PasswordlessAuthRequest.md
Expand Down Expand Up @@ -128,12 +123,13 @@ docs/PopulationSourcePrivateCategorySetSavings.md
docs/PopulationSourcePrivateCategorySetTechLevel.md
docs/PopulationSourcePrivateSection.md
docs/PopulationsAPI.md
docs/PostalAddress.md
docs/PrivateAudienceStats.md
docs/PrivateAudienceStatsAudienceCategories.md
docs/QueryCampaignAudienceStats200Response.md
docs/QueryCampaignCountryStats200Response.md
docs/QueryCampaignFrequencyStats200Response.md
docs/QueryCampaignTimingStats200Response.md
docs/QueryStudyAudienceStats200Response.md
docs/QueryStudyCountryStats200Response.md
docs/QueryStudyFrequencyStats200Response.md
docs/QueryStudyTimingStats200Response.md
docs/RegistrationByIdResponseData.md
docs/RegistrationCreationResponseData.md
docs/RegistrationRequest.md
Expand All @@ -143,8 +139,25 @@ docs/ResolveAudiencesOfMultipleRequest.md
docs/ResolveAudiencesOfMultipleRequestItem.md
docs/ResolveAudiencesOfMultipleResponse.md
docs/ResolveAudiencesOfMultipleResponseItem.md
docs/StudiesAPI.md
docs/StudyAudienceStats.md
docs/StudyAux.md
docs/StudyBase.md
docs/StudyCountryStats.md
docs/StudyCreation.md
docs/StudyCreationData.md
docs/StudyFrequencyStats.md
docs/StudyFull.md
docs/StudyIngestionStatus.md
docs/StudyItem.md
docs/StudyLifecycleStage.md
docs/StudyLinks.md
docs/StudyMutation.md
docs/StudySummaryStats.md
docs/StudyTimingStats.md
docs/TimestampedObject.md
docs/TimestampedObject1.md
docs/UsageAPI.md
docs/UserAccountMembership.md
docs/UserAccountRole.md
docs/UserAux.md
Expand All @@ -167,6 +180,7 @@ model_account_full.go
model_account_item.go
model_account_links.go
model_account_mutation.go
model_account_mutation_aux.go
model_account_owner_creation.go
model_api_key_aux.go
model_api_key_base.go
Expand All @@ -180,40 +194,26 @@ model_api_key_status.go
model_api_key_token.go
model_audience.go
model_audience_category_stats.go
model_audience_data_daily_usage.go
model_audience_data_monthly_usage.go
model_audience_data_realtime_usage.go
model_audience_data_usage.go
model_audience_response.go
model_audience_response_status.go
model_audience_stats.go
model_auth_token_request.go
model_auth_token_response.go
model_business_audience_stats.go
model_business_audience_stats_audience_categories.go
model_campaign_audience_stats.go
model_campaign_aux.go
model_campaign_base.go
model_campaign_country_stats.go
model_campaign_creation.go
model_campaign_creation_data.go
model_campaign_event_link.go
model_campaign_event_link_parameter_info.go
model_campaign_event_links.go
model_campaign_event_set.go
model_campaign_frequency_stats.go
model_campaign_full.go
model_campaign_ingestion_status.go
model_campaign_integration_platform.go
model_campaign_item.go
model_campaign_lifecycle_stage.go
model_campaign_links.go
model_campaign_mutation.go
model_campaign_summary_stats.go
model_campaign_timing_stats.go
model_category_populations_full.go
model_company_size.go
model_company_type.go
model_comparison.go
model_comparisons_container.go
model_country_stats.go
model_create_api_key_201_response.go
model_create_campaign_201_response.go
model_create_measurement_client_201_response.go
model_create_study_201_response.go
model_create_user_in_account_201_response.go
model_day_of_month_stats.go
model_day_of_week_stats.go
Expand All @@ -226,19 +226,27 @@ model_hour_of_day_stats.go
model_identifyable_object.go
model_identifyable_object1.go
model_list_api_keys_by_account_id_200_response.go
model_list_campaigns_200_response.go
model_list_audience_data_daily_usage_200_response.go
model_list_audience_data_monthly_usage_200_response.go
model_list_audience_data_realtime_usage_200_response.go
model_list_measurement_clients_200_response.go
model_list_measurement_labels_200_response.go
model_list_pagination_links.go
model_list_pagination_meta.go
model_list_pagination_meta_page.go
model_list_popuplations_200_response.go
model_list_studies_200_response.go
model_list_users_by_account_id_200_response.go
model_measurement.go
model_measurement_client_base.go
model_measurement_client_full.go
model_measurement_client_item.go
model_measurement_client_mutation.go
model_measurement_event_link.go
model_measurement_event_link_parameter_info.go
model_measurement_event_links.go
model_measurement_event_set.go
model_measurement_integration_platform.go
model_measurements_container.go
model_passwordless_auth_request.go
model_permission_scopes.go
Expand Down Expand Up @@ -266,12 +274,13 @@ model_population_source_private_category_set_neighbourhood_type.go
model_population_source_private_category_set_savings.go
model_population_source_private_category_set_tech_level.go
model_population_source_private_section.go
model_postal_address.go
model_private_audience_stats.go
model_private_audience_stats_audience_categories.go
model_query_campaign_audience_stats_200_response.go
model_query_campaign_country_stats_200_response.go
model_query_campaign_frequency_stats_200_response.go
model_query_campaign_timing_stats_200_response.go
model_query_study_audience_stats_200_response.go
model_query_study_country_stats_200_response.go
model_query_study_frequency_stats_200_response.go
model_query_study_timing_stats_200_response.go
model_registration_by_id_response_data.go
model_registration_creation_response_data.go
model_registration_request.go
Expand All @@ -281,6 +290,21 @@ model_resolve_audiences_of_multiple_request.go
model_resolve_audiences_of_multiple_request_item.go
model_resolve_audiences_of_multiple_response.go
model_resolve_audiences_of_multiple_response_item.go
model_study_audience_stats.go
model_study_aux.go
model_study_base.go
model_study_country_stats.go
model_study_creation.go
model_study_creation_data.go
model_study_frequency_stats.go
model_study_full.go
model_study_ingestion_status.go
model_study_item.go
model_study_lifecycle_stage.go
model_study_links.go
model_study_mutation.go
model_study_summary_stats.go
model_study_timing_stats.go
model_timestamped_object.go
model_timestamped_object1.go
model_user_account_membership.go
Expand All @@ -296,9 +320,10 @@ response.go
test/api_accounts_test.go
test/api_audiences_test.go
test/api_auth_test.go
test/api_campaigns_test.go
test/api_measurement_clients_test.go
test/api_measurement_labels_test.go
test/api_populations_test.go
test/api_studies_test.go
test/api_usage_test.go
test/api_users_test.go
utils.go
Loading

0 comments on commit 62d1896

Please sign in to comment.