wefunder 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +35 -13
- data/lib/wefunder/client.rb +127 -12
- data/lib/wefunder/version.rb +1 -1
- data/lib/wefunder/webhooks.rb +5 -2
- data/lib/wefunder_generated/api/activity_api.rb +0 -92
- data/lib/wefunder_generated/api/explore_api.rb +24 -6
- data/lib/wefunder_generated/api/intents_api.rb +2 -2
- data/lib/wefunder_generated/api/investment_delta_api.rb +4 -4
- data/lib/wefunder_generated/api/investments_api.rb +2 -2
- data/lib/wefunder_generated/api/member_links_api.rb +287 -0
- data/lib/wefunder_generated/api/partner_invites_sessions_api.rb +374 -0
- data/lib/wefunder_generated/api/portfolio_api.rb +2 -2
- data/lib/wefunder_generated/api/referral_codes_api.rb +374 -0
- data/lib/wefunder_generated/api/syndicate_deals_api.rb +2 -140
- data/lib/wefunder_generated/api/syndicate_members_api.rb +216 -0
- data/lib/wefunder_generated/api/syndicate_statistics_api.rb +2 -2
- data/lib/wefunder_generated/api/users_api.rb +4 -4
- data/lib/wefunder_generated/models/audit_event_attributes.rb +1 -0
- data/lib/wefunder_generated/models/campaign.rb +1 -1
- data/lib/wefunder_generated/models/company_attributes.rb +88 -1
- data/lib/wefunder_generated/models/company_disclosures_attributes_ratios.rb +13 -2
- data/lib/wefunder_generated/models/create_intent_request.rb +2 -2
- data/lib/wefunder_generated/models/{webhook_subscription_with_secret2_envelope.rb → create_offering_investment_session_request.rb} +17 -10
- data/lib/wefunder_generated/models/{attribution_stats_envelope.rb → create_offering_member_link_request.rb} +10 -10
- data/lib/wefunder_generated/models/{create_partner_invite_request.rb → create_referral_code_request.rb} +58 -63
- data/lib/wefunder_generated/models/{attribution_stats_period.rb → create_syndicate_join_session_request.rb} +17 -19
- data/lib/wefunder_generated/models/{anonymized_attribution.rb → create_syndicate_join_session_request_join_session.rb} +81 -53
- data/lib/wefunder_generated/models/create_webhook_endpoint_request.rb +11 -1
- data/lib/wefunder_generated/models/fiscal_year_financials.rb +25 -1
- data/lib/wefunder_generated/models/intent_attributes.rb +1 -0
- data/lib/wefunder_generated/models/investment_delta_record.rb +4 -4
- data/lib/wefunder_generated/models/investment_session_attributes.rb +1 -0
- data/lib/wefunder_generated/models/investment_session_create_input.rb +13 -2
- data/lib/wefunder_generated/models/investment_session_envelope.rb +1 -1
- data/lib/wefunder_generated/models/invite_link_attributes.rb +47 -4
- data/lib/wefunder_generated/models/invite_link_attributes_events_inner.rb +12 -1
- data/lib/wefunder_generated/models/invite_link_envelope.rb +1 -1
- data/lib/wefunder_generated/models/{full_attribution_status.rb → member_link.rb} +34 -24
- data/lib/wefunder_generated/models/{marketing_partner.rb → member_link_attributes.rb} +60 -44
- data/lib/wefunder_generated/models/{attribution_me_envelope.rb → member_link_create_input.rb} +40 -10
- data/lib/wefunder_generated/models/{spv_with_meta_envelope.rb → member_link_envelope.rb} +5 -5
- data/lib/wefunder_generated/models/{spv_list_envelope.rb → member_link_list_envelope.rb} +5 -5
- data/lib/wefunder_generated/models/{full_attribution_investor.rb → member_link_list_envelope_meta.rb} +28 -29
- data/lib/wefunder_generated/models/offering_attributes.rb +34 -1
- data/lib/wefunder_generated/models/offering_list_envelope_meta.rb +57 -3
- data/lib/wefunder_generated/models/portfolio_company_ref.rb +16 -5
- data/lib/wefunder_generated/models/portfolio_position_attributes.rb +13 -2
- data/lib/wefunder_generated/models/portfolio_security_terms.rb +15 -2
- data/lib/wefunder_generated/models/{spv_status.rb → referral_code.rb} +4 -4
- data/lib/wefunder_generated/models/{webhook_subscription.rb → referral_code_attributes.rb} +51 -63
- data/lib/wefunder_generated/models/{anonymized_attribution_status.rb → referral_code_attributes_target.rb} +36 -27
- data/lib/wefunder_generated/models/{spv_status_envelope.rb → referral_code_envelope.rb} +5 -5
- data/lib/wefunder_generated/models/{spv_with_meta_envelope_meta.rb → referral_code_envelope_meta.rb} +3 -3
- data/lib/wefunder_generated/models/{partner_investor_list_envelope.rb → referral_code_list_envelope.rb} +5 -5
- data/lib/wefunder_generated/models/{attribution_campaign_summary.rb → referral_code_list_envelope_meta.rb} +36 -35
- data/lib/wefunder_generated/models/{spv_status_attributes.rb → referral_code_stats_company.rb} +70 -47
- data/lib/wefunder_generated/models/referral_code_stats_envelope.rb +223 -0
- data/lib/wefunder_generated/models/{partner_investor.rb → referral_code_stats_envelope_data.rb} +4 -5
- data/lib/wefunder_generated/models/{syndicate_deal_finalize_intent_envelope_meta.rb → referral_code_stats_envelope_data_attributes.rb} +56 -10
- data/lib/wefunder_generated/models/{webhook_endpoint_envelope_meta.rb → referral_code_stats_envelope_meta.rb} +32 -4
- data/lib/wefunder_generated/models/{full_attribution.rb → referral_code_utm.rb} +130 -56
- data/lib/wefunder_generated/models/{attribution_me.rb → referral_code_visits.rb} +23 -25
- data/lib/wefunder_generated/models/{attribution_campaign_access.rb → referral_cohort.rb} +29 -28
- data/lib/wefunder_generated/models/referral_cohort_investors.rb +224 -0
- data/lib/wefunder_generated/models/syndicate_attributes.rb +11 -1
- data/lib/wefunder_generated/models/{syndicate_deal_close_intent_envelope.rb → syndicate_deal_created_envelope.rb} +5 -5
- data/lib/wefunder_generated/models/{attribution_campaign_summary_list_envelope.rb → syndicate_deal_created_envelope_meta.rb} +11 -12
- data/lib/wefunder_generated/models/{attribution_user.rb → syndicate_deal_created_envelope_meta_target_company.rb} +5 -14
- data/lib/wefunder_generated/models/{marketing_partner_envelope.rb → syndicate_deal_readiness_envelope.rb} +4 -4
- data/lib/wefunder_generated/models/syndicate_deal_readiness_envelope_data.rb +267 -0
- data/lib/wefunder_generated/models/{attribution_partner.rb → syndicate_deal_readiness_envelope_data_attributes.rb} +27 -33
- data/lib/wefunder_generated/models/{webhook_delivery.rb → syndicate_deal_readiness_item.rb} +55 -61
- data/lib/wefunder_generated/models/syndicate_statistics_attributes.rb +2 -2
- data/lib/wefunder_generated/models/test_webhook_endpoint_request.rb +2 -2
- data/lib/wefunder_generated/models/{webhook_test_result_envelope.rb → update_referral_code_request.rb} +47 -10
- data/lib/wefunder_generated/models/user_attributes.rb +1 -0
- data/lib/wefunder_generated/models/webhook_endpoint_attributes.rb +23 -1
- data/lib/wefunder_generated/models/webhook_endpoint_envelope.rb +1 -1
- data/lib/wefunder_generated/models/webhook_endpoint_test_result_envelope.rb +1 -1
- data/lib/wefunder_generated.rb +38 -63
- metadata +40 -65
- data/lib/wefunder_generated/api/attribution_api.rb +0 -182
- data/lib/wefunder_generated/api/attribution_partners_api.rb +0 -392
- data/lib/wefunder_generated/api/attribution_webhooks_api.rb +0 -504
- data/lib/wefunder_generated/models/anonymized_attribution_attribution.rb +0 -330
- data/lib/wefunder_generated/models/attributed_investment_list_envelope.rb +0 -226
- data/lib/wefunder_generated/models/attributed_investment_list_envelope_data_inner.rb +0 -105
- data/lib/wefunder_generated/models/attributed_investment_list_envelope_meta.rb +0 -295
- data/lib/wefunder_generated/models/attribution_stats.rb +0 -266
- data/lib/wefunder_generated/models/attribution_stats_by_campaign_inner.rb +0 -232
- data/lib/wefunder_generated/models/attribution_stats_by_source_inner.rb +0 -232
- data/lib/wefunder_generated/models/attribution_stats_quality_breakdown.rb +0 -236
- data/lib/wefunder_generated/models/attribution_stats_totals.rb +0 -245
- data/lib/wefunder_generated/models/create_webhook_subscription_request.rb +0 -263
- data/lib/wefunder_generated/models/full_attribution_attribution.rb +0 -326
- data/lib/wefunder_generated/models/partner_investment_list_envelope.rb +0 -225
- data/lib/wefunder_generated/models/partner_investor_attributes.rb +0 -264
- data/lib/wefunder_generated/models/partner_invite.rb +0 -360
- data/lib/wefunder_generated/models/partner_invite_envelope.rb +0 -214
- data/lib/wefunder_generated/models/partner_invite_list_envelope.rb +0 -216
- data/lib/wefunder_generated/models/register_as_partner_request.rb +0 -232
- data/lib/wefunder_generated/models/syndicate_deal_close_intent_envelope_meta.rb +0 -214
- data/lib/wefunder_generated/models/syndicate_deal_finalize_intent_envelope.rb +0 -224
- data/lib/wefunder_generated/models/webhook_subscription_envelope.rb +0 -214
- data/lib/wefunder_generated/models/webhook_subscription_list_envelope.rb +0 -225
- data/lib/wefunder_generated/models/webhook_subscription_list_envelope_meta.rb +0 -225
- data/lib/wefunder_generated/models/webhook_subscription_with_recent_deliveries_envelope.rb +0 -214
- data/lib/wefunder_generated/models/webhook_subscription_with_recent_deliveries_envelope_data.rb +0 -322
- data/lib/wefunder_generated/models/webhook_subscription_with_secret2_envelope_data.rb +0 -320
- data/lib/wefunder_generated/models/webhook_subscription_with_secret_envelope.rb +0 -214
- data/lib/wefunder_generated/models/webhook_subscription_with_secret_envelope_data.rb +0 -320
- data/lib/wefunder_generated/models/webhook_test_result.rb +0 -233
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Wefunder API v2
|
|
3
|
-
|
|
4
|
-
#OAuth 2.0 API for accessing Wefunder data programmatically. ## Authentication This API uses OAuth 2.0 for authentication. To get started: 1. Create an OAuth application at `/oauth/applications` 2. Get your Client ID and Client Secret 3. Implement the OAuth 2.0 Authorization Code flow 4. Use the access token to make API requests ## Versioning The API is versioned by the dated `Wefunder-Version` request header (`YYYY-MM-DD`), never by the URL. Resolution is header → your application's pinned version → latest; every response carries `Wefunder-Version` (the version that handled it) and `Wefunder-Version-Latest`. An unknown value returns `400 invalid_request` naming the valid versions. Current: `2026-10-01`. ## Rate Limits - Standard API: 1,000 requests/hour per token - Admin API: 10,000 requests/hour per token ## Base URL All API requests should be made to: `https://api.wefunder.com` (no version in the path).
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
|
7
|
-
Contact: api@wefunder.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.10.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'cgi'
|
|
14
|
-
|
|
15
|
-
module WefunderGenerated
|
|
16
|
-
class AttributionApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# Get aggregate attribution statistics
|
|
23
|
-
# Returns aggregate attribution statistics for a campaign. This is a **Tier 0** endpoint available to all OAuth applications with the `read:attribution:aggregate` scope. Use this endpoint to: - Track overall marketing campaign performance - Measure conversion rates by UTM source/campaign - Monitor investment quality metrics - Build performance dashboards The response includes totals and breakdowns by UTM parameters. All counts exclude disputed attributions. **Privacy**: This endpoint returns aggregate data only. No individual investor information is exposed.
|
|
24
|
-
# @param campaign_id [Integer] The fundraise/campaign ID
|
|
25
|
-
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @option opts [Date] :start_date Filter results to attributions on or after this date. Format: YYYY-MM-DD. Defaults to 90 days ago if not specified.
|
|
27
|
-
# @option opts [Date] :end_date Filter results to attributions on or before this date. Format: YYYY-MM-DD. Defaults to today if not specified.
|
|
28
|
-
# @option opts [String] :utm_source Filter by UTM source (e.g., \"GoogleAds\", \"facebook\", \"Klaviyo\")
|
|
29
|
-
# @option opts [String] :utm_campaign Filter by UTM campaign name
|
|
30
|
-
# @return [AttributionStatsEnvelope]
|
|
31
|
-
def get_attribution_stats(campaign_id, opts = {})
|
|
32
|
-
data, _status_code, _headers = get_attribution_stats_with_http_info(campaign_id, opts)
|
|
33
|
-
data
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Get aggregate attribution statistics
|
|
37
|
-
# Returns aggregate attribution statistics for a campaign. This is a **Tier 0** endpoint available to all OAuth applications with the `read:attribution:aggregate` scope. Use this endpoint to: - Track overall marketing campaign performance - Measure conversion rates by UTM source/campaign - Monitor investment quality metrics - Build performance dashboards The response includes totals and breakdowns by UTM parameters. All counts exclude disputed attributions. **Privacy**: This endpoint returns aggregate data only. No individual investor information is exposed.
|
|
38
|
-
# @param campaign_id [Integer] The fundraise/campaign ID
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Date] :start_date Filter results to attributions on or after this date. Format: YYYY-MM-DD. Defaults to 90 days ago if not specified.
|
|
41
|
-
# @option opts [Date] :end_date Filter results to attributions on or before this date. Format: YYYY-MM-DD. Defaults to today if not specified.
|
|
42
|
-
# @option opts [String] :utm_source Filter by UTM source (e.g., \"GoogleAds\", \"facebook\", \"Klaviyo\")
|
|
43
|
-
# @option opts [String] :utm_campaign Filter by UTM campaign name
|
|
44
|
-
# @return [Array<(AttributionStatsEnvelope, Integer, Hash)>] AttributionStatsEnvelope data, response status code and response headers
|
|
45
|
-
def get_attribution_stats_with_http_info(campaign_id, opts = {})
|
|
46
|
-
if @api_client.config.debugging
|
|
47
|
-
@api_client.config.logger.debug 'Calling API: AttributionApi.get_attribution_stats ...'
|
|
48
|
-
end
|
|
49
|
-
# verify the required parameter 'campaign_id' is set
|
|
50
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
|
51
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling AttributionApi.get_attribution_stats"
|
|
52
|
-
end
|
|
53
|
-
# resource path
|
|
54
|
-
local_var_path = '/campaigns/{campaign_id}/attribution/stats'.sub('{' + 'campaign_id' + '}', CGI.escape(campaign_id.to_s))
|
|
55
|
-
|
|
56
|
-
# query parameters
|
|
57
|
-
query_params = opts[:query_params] || {}
|
|
58
|
-
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
|
59
|
-
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
|
60
|
-
query_params[:'utm_source'] = opts[:'utm_source'] if !opts[:'utm_source'].nil?
|
|
61
|
-
query_params[:'utm_campaign'] = opts[:'utm_campaign'] if !opts[:'utm_campaign'].nil?
|
|
62
|
-
|
|
63
|
-
# header parameters
|
|
64
|
-
header_params = opts[:header_params] || {}
|
|
65
|
-
# HTTP header 'Accept' (if needed)
|
|
66
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
67
|
-
|
|
68
|
-
# form parameters
|
|
69
|
-
form_params = opts[:form_params] || {}
|
|
70
|
-
|
|
71
|
-
# http body (model)
|
|
72
|
-
post_body = opts[:debug_body]
|
|
73
|
-
|
|
74
|
-
# return_type
|
|
75
|
-
return_type = opts[:debug_return_type] || 'AttributionStatsEnvelope'
|
|
76
|
-
|
|
77
|
-
# auth_names
|
|
78
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth', 'bearerAuth']
|
|
79
|
-
|
|
80
|
-
new_options = opts.merge(
|
|
81
|
-
:operation => :"AttributionApi.get_attribution_stats",
|
|
82
|
-
:header_params => header_params,
|
|
83
|
-
:query_params => query_params,
|
|
84
|
-
:form_params => form_params,
|
|
85
|
-
:body => post_body,
|
|
86
|
-
:auth_names => auth_names,
|
|
87
|
-
:return_type => return_type
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
91
|
-
if @api_client.config.debugging
|
|
92
|
-
@api_client.config.logger.debug "API called: AttributionApi#get_attribution_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
93
|
-
end
|
|
94
|
-
return data, status_code, headers
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
# List attributed investments
|
|
98
|
-
# Returns a list of attributed investments. The detail level depends on your access: **Tier 1 (Marketing Partners)** - Anonymized data: - Investor identity represented by opaque tokens (not real IDs) - Tokens are campaign-scoped (different token per campaign for same investor) - Investment amounts shown as tiers (small/medium/large), not exact values - No PII (email, name, address) is returned **Tier 2 (Founders/Employees)** - Full data with `detail_level=full`: - Real investment IDs (linkable to Wefunder admin) - Investor name, email, and username - Exact dollar amounts **Access**: Requires Tier 1+ access approval from Wefunder admin.
|
|
99
|
-
# @param campaign_id [Integer] The fundraise/campaign ID
|
|
100
|
-
# @param [Hash] opts the optional parameters
|
|
101
|
-
# @option opts [Integer] :cursor Cursor-based pagination token. Use the `next_cursor` value from the previous response's `meta` object to retrieve the next page of results. Omit this parameter to retrieve the first page.
|
|
102
|
-
# @option opts [Date] :start_date Filter results to attributions on or after this date. Format: YYYY-MM-DD. Defaults to 90 days ago if not specified.
|
|
103
|
-
# @option opts [Date] :end_date Filter results to attributions on or before this date. Format: YYYY-MM-DD. Defaults to today if not specified.
|
|
104
|
-
# @option opts [String] :utm_source Filter by UTM source (e.g., \"GoogleAds\", \"facebook\", \"Klaviyo\")
|
|
105
|
-
# @option opts [String] :utm_campaign Filter by UTM campaign name
|
|
106
|
-
# @option opts [String] :detail_level Level of detail to return: - `anonymized` (default): Opaque tokens, amount tiers - `full`: Real IDs, exact amounts, investor PII (founders only) Marketing partners always receive anonymized data regardless of this parameter. (default to 'anonymized')
|
|
107
|
-
# @return [AttributedInvestmentListEnvelope]
|
|
108
|
-
def list_attributed_investments(campaign_id, opts = {})
|
|
109
|
-
data, _status_code, _headers = list_attributed_investments_with_http_info(campaign_id, opts)
|
|
110
|
-
data
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
# List attributed investments
|
|
114
|
-
# Returns a list of attributed investments. The detail level depends on your access: **Tier 1 (Marketing Partners)** - Anonymized data: - Investor identity represented by opaque tokens (not real IDs) - Tokens are campaign-scoped (different token per campaign for same investor) - Investment amounts shown as tiers (small/medium/large), not exact values - No PII (email, name, address) is returned **Tier 2 (Founders/Employees)** - Full data with `detail_level=full`: - Real investment IDs (linkable to Wefunder admin) - Investor name, email, and username - Exact dollar amounts **Access**: Requires Tier 1+ access approval from Wefunder admin.
|
|
115
|
-
# @param campaign_id [Integer] The fundraise/campaign ID
|
|
116
|
-
# @param [Hash] opts the optional parameters
|
|
117
|
-
# @option opts [Integer] :cursor Cursor-based pagination token. Use the `next_cursor` value from the previous response's `meta` object to retrieve the next page of results. Omit this parameter to retrieve the first page.
|
|
118
|
-
# @option opts [Date] :start_date Filter results to attributions on or after this date. Format: YYYY-MM-DD. Defaults to 90 days ago if not specified.
|
|
119
|
-
# @option opts [Date] :end_date Filter results to attributions on or before this date. Format: YYYY-MM-DD. Defaults to today if not specified.
|
|
120
|
-
# @option opts [String] :utm_source Filter by UTM source (e.g., \"GoogleAds\", \"facebook\", \"Klaviyo\")
|
|
121
|
-
# @option opts [String] :utm_campaign Filter by UTM campaign name
|
|
122
|
-
# @option opts [String] :detail_level Level of detail to return: - `anonymized` (default): Opaque tokens, amount tiers - `full`: Real IDs, exact amounts, investor PII (founders only) Marketing partners always receive anonymized data regardless of this parameter. (default to 'anonymized')
|
|
123
|
-
# @return [Array<(AttributedInvestmentListEnvelope, Integer, Hash)>] AttributedInvestmentListEnvelope data, response status code and response headers
|
|
124
|
-
def list_attributed_investments_with_http_info(campaign_id, opts = {})
|
|
125
|
-
if @api_client.config.debugging
|
|
126
|
-
@api_client.config.logger.debug 'Calling API: AttributionApi.list_attributed_investments ...'
|
|
127
|
-
end
|
|
128
|
-
# verify the required parameter 'campaign_id' is set
|
|
129
|
-
if @api_client.config.client_side_validation && campaign_id.nil?
|
|
130
|
-
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling AttributionApi.list_attributed_investments"
|
|
131
|
-
end
|
|
132
|
-
allowable_values = ["anonymized", "full"]
|
|
133
|
-
if @api_client.config.client_side_validation && opts[:'detail_level'] && !allowable_values.include?(opts[:'detail_level'])
|
|
134
|
-
fail ArgumentError, "invalid value for \"detail_level\", must be one of #{allowable_values}"
|
|
135
|
-
end
|
|
136
|
-
# resource path
|
|
137
|
-
local_var_path = '/campaigns/{campaign_id}/attribution/investments'.sub('{' + 'campaign_id' + '}', CGI.escape(campaign_id.to_s))
|
|
138
|
-
|
|
139
|
-
# query parameters
|
|
140
|
-
query_params = opts[:query_params] || {}
|
|
141
|
-
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
142
|
-
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
|
143
|
-
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
|
144
|
-
query_params[:'utm_source'] = opts[:'utm_source'] if !opts[:'utm_source'].nil?
|
|
145
|
-
query_params[:'utm_campaign'] = opts[:'utm_campaign'] if !opts[:'utm_campaign'].nil?
|
|
146
|
-
query_params[:'detail_level'] = opts[:'detail_level'] if !opts[:'detail_level'].nil?
|
|
147
|
-
|
|
148
|
-
# header parameters
|
|
149
|
-
header_params = opts[:header_params] || {}
|
|
150
|
-
# HTTP header 'Accept' (if needed)
|
|
151
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
152
|
-
|
|
153
|
-
# form parameters
|
|
154
|
-
form_params = opts[:form_params] || {}
|
|
155
|
-
|
|
156
|
-
# http body (model)
|
|
157
|
-
post_body = opts[:debug_body]
|
|
158
|
-
|
|
159
|
-
# return_type
|
|
160
|
-
return_type = opts[:debug_return_type] || 'AttributedInvestmentListEnvelope'
|
|
161
|
-
|
|
162
|
-
# auth_names
|
|
163
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth', 'bearerAuth']
|
|
164
|
-
|
|
165
|
-
new_options = opts.merge(
|
|
166
|
-
:operation => :"AttributionApi.list_attributed_investments",
|
|
167
|
-
:header_params => header_params,
|
|
168
|
-
:query_params => query_params,
|
|
169
|
-
:form_params => form_params,
|
|
170
|
-
:body => post_body,
|
|
171
|
-
:auth_names => auth_names,
|
|
172
|
-
:return_type => return_type
|
|
173
|
-
)
|
|
174
|
-
|
|
175
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
176
|
-
if @api_client.config.debugging
|
|
177
|
-
@api_client.config.logger.debug "API called: AttributionApi#list_attributed_investments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
178
|
-
end
|
|
179
|
-
return data, status_code, headers
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
|
-
end
|
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Wefunder API v2
|
|
3
|
-
|
|
4
|
-
#OAuth 2.0 API for accessing Wefunder data programmatically. ## Authentication This API uses OAuth 2.0 for authentication. To get started: 1. Create an OAuth application at `/oauth/applications` 2. Get your Client ID and Client Secret 3. Implement the OAuth 2.0 Authorization Code flow 4. Use the access token to make API requests ## Versioning The API is versioned by the dated `Wefunder-Version` request header (`YYYY-MM-DD`), never by the URL. Resolution is header → your application's pinned version → latest; every response carries `Wefunder-Version` (the version that handled it) and `Wefunder-Version-Latest`. An unknown value returns `400 invalid_request` naming the valid versions. Current: `2026-10-01`. ## Rate Limits - Standard API: 1,000 requests/hour per token - Admin API: 10,000 requests/hour per token ## Base URL All API requests should be made to: `https://api.wefunder.com` (no version in the path).
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
|
7
|
-
Contact: api@wefunder.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.10.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'cgi'
|
|
14
|
-
|
|
15
|
-
module WefunderGenerated
|
|
16
|
-
class AttributionPartnersApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# Create a partner invite
|
|
23
|
-
# Creates an invite to establish a partner-company connection. **Directions**: - `partner_to_founder`: Marketing partner invites a founder to grant access - `founder_to_partner`: Founder invites a marketing partner to access their campaign For `partner_to_founder`: Creates a shareable invite link. For `founder_to_partner`: Sends an email to the partner.
|
|
24
|
-
# @param create_partner_invite_request [CreatePartnerInviteRequest]
|
|
25
|
-
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [PartnerInviteEnvelope]
|
|
27
|
-
def create_partner_invite(create_partner_invite_request, opts = {})
|
|
28
|
-
data, _status_code, _headers = create_partner_invite_with_http_info(create_partner_invite_request, opts)
|
|
29
|
-
data
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Create a partner invite
|
|
33
|
-
# Creates an invite to establish a partner-company connection. **Directions**: - `partner_to_founder`: Marketing partner invites a founder to grant access - `founder_to_partner`: Founder invites a marketing partner to access their campaign For `partner_to_founder`: Creates a shareable invite link. For `founder_to_partner`: Sends an email to the partner.
|
|
34
|
-
# @param create_partner_invite_request [CreatePartnerInviteRequest]
|
|
35
|
-
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(PartnerInviteEnvelope, Integer, Hash)>] PartnerInviteEnvelope data, response status code and response headers
|
|
37
|
-
def create_partner_invite_with_http_info(create_partner_invite_request, opts = {})
|
|
38
|
-
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: AttributionPartnersApi.create_partner_invite ...'
|
|
40
|
-
end
|
|
41
|
-
# verify the required parameter 'create_partner_invite_request' is set
|
|
42
|
-
if @api_client.config.client_side_validation && create_partner_invite_request.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'create_partner_invite_request' when calling AttributionPartnersApi.create_partner_invite"
|
|
44
|
-
end
|
|
45
|
-
# resource path
|
|
46
|
-
local_var_path = '/attribution/invites'
|
|
47
|
-
|
|
48
|
-
# query parameters
|
|
49
|
-
query_params = opts[:query_params] || {}
|
|
50
|
-
|
|
51
|
-
# header parameters
|
|
52
|
-
header_params = opts[:header_params] || {}
|
|
53
|
-
# HTTP header 'Accept' (if needed)
|
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
-
# HTTP header 'Content-Type'
|
|
56
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
-
if !content_type.nil?
|
|
58
|
-
header_params['Content-Type'] = content_type
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# form parameters
|
|
62
|
-
form_params = opts[:form_params] || {}
|
|
63
|
-
|
|
64
|
-
# http body (model)
|
|
65
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_partner_invite_request)
|
|
66
|
-
|
|
67
|
-
# return_type
|
|
68
|
-
return_type = opts[:debug_return_type] || 'PartnerInviteEnvelope'
|
|
69
|
-
|
|
70
|
-
# auth_names
|
|
71
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth', 'bearerAuth']
|
|
72
|
-
|
|
73
|
-
new_options = opts.merge(
|
|
74
|
-
:operation => :"AttributionPartnersApi.create_partner_invite",
|
|
75
|
-
:header_params => header_params,
|
|
76
|
-
:query_params => query_params,
|
|
77
|
-
:form_params => form_params,
|
|
78
|
-
:body => post_body,
|
|
79
|
-
:auth_names => auth_names,
|
|
80
|
-
:return_type => return_type
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
-
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: AttributionPartnersApi#create_partner_invite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
-
end
|
|
87
|
-
return data, status_code, headers
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# Get current user's attribution profile
|
|
91
|
-
# Returns the authenticated user's marketing partner profile and connected campaigns. If the user is not registered as a marketing partner, returns partner info as null.
|
|
92
|
-
# @param [Hash] opts the optional parameters
|
|
93
|
-
# @return [AttributionMeEnvelope]
|
|
94
|
-
def get_attribution_me(opts = {})
|
|
95
|
-
data, _status_code, _headers = get_attribution_me_with_http_info(opts)
|
|
96
|
-
data
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
# Get current user's attribution profile
|
|
100
|
-
# Returns the authenticated user's marketing partner profile and connected campaigns. If the user is not registered as a marketing partner, returns partner info as null.
|
|
101
|
-
# @param [Hash] opts the optional parameters
|
|
102
|
-
# @return [Array<(AttributionMeEnvelope, Integer, Hash)>] AttributionMeEnvelope data, response status code and response headers
|
|
103
|
-
def get_attribution_me_with_http_info(opts = {})
|
|
104
|
-
if @api_client.config.debugging
|
|
105
|
-
@api_client.config.logger.debug 'Calling API: AttributionPartnersApi.get_attribution_me ...'
|
|
106
|
-
end
|
|
107
|
-
# resource path
|
|
108
|
-
local_var_path = '/attribution/me'
|
|
109
|
-
|
|
110
|
-
# query parameters
|
|
111
|
-
query_params = opts[:query_params] || {}
|
|
112
|
-
|
|
113
|
-
# header parameters
|
|
114
|
-
header_params = opts[:header_params] || {}
|
|
115
|
-
# HTTP header 'Accept' (if needed)
|
|
116
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
117
|
-
|
|
118
|
-
# form parameters
|
|
119
|
-
form_params = opts[:form_params] || {}
|
|
120
|
-
|
|
121
|
-
# http body (model)
|
|
122
|
-
post_body = opts[:debug_body]
|
|
123
|
-
|
|
124
|
-
# return_type
|
|
125
|
-
return_type = opts[:debug_return_type] || 'AttributionMeEnvelope'
|
|
126
|
-
|
|
127
|
-
# auth_names
|
|
128
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth', 'bearerAuth']
|
|
129
|
-
|
|
130
|
-
new_options = opts.merge(
|
|
131
|
-
:operation => :"AttributionPartnersApi.get_attribution_me",
|
|
132
|
-
:header_params => header_params,
|
|
133
|
-
:query_params => query_params,
|
|
134
|
-
:form_params => form_params,
|
|
135
|
-
:body => post_body,
|
|
136
|
-
:auth_names => auth_names,
|
|
137
|
-
:return_type => return_type
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
141
|
-
if @api_client.config.debugging
|
|
142
|
-
@api_client.config.logger.debug "API called: AttributionPartnersApi#get_attribution_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
143
|
-
end
|
|
144
|
-
return data, status_code, headers
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
# List campaigns accessible to the current user
|
|
148
|
-
# Returns all campaigns the authenticated user can access for attribution data. For founders, this includes their own campaigns. For marketing partners, this includes campaigns they've been granted access to.
|
|
149
|
-
# @param [Hash] opts the optional parameters
|
|
150
|
-
# @return [AttributionCampaignSummaryListEnvelope]
|
|
151
|
-
def list_attribution_campaigns(opts = {})
|
|
152
|
-
data, _status_code, _headers = list_attribution_campaigns_with_http_info(opts)
|
|
153
|
-
data
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
# List campaigns accessible to the current user
|
|
157
|
-
# Returns all campaigns the authenticated user can access for attribution data. For founders, this includes their own campaigns. For marketing partners, this includes campaigns they've been granted access to.
|
|
158
|
-
# @param [Hash] opts the optional parameters
|
|
159
|
-
# @return [Array<(AttributionCampaignSummaryListEnvelope, Integer, Hash)>] AttributionCampaignSummaryListEnvelope data, response status code and response headers
|
|
160
|
-
def list_attribution_campaigns_with_http_info(opts = {})
|
|
161
|
-
if @api_client.config.debugging
|
|
162
|
-
@api_client.config.logger.debug 'Calling API: AttributionPartnersApi.list_attribution_campaigns ...'
|
|
163
|
-
end
|
|
164
|
-
# resource path
|
|
165
|
-
local_var_path = '/attribution/campaigns'
|
|
166
|
-
|
|
167
|
-
# query parameters
|
|
168
|
-
query_params = opts[:query_params] || {}
|
|
169
|
-
|
|
170
|
-
# header parameters
|
|
171
|
-
header_params = opts[:header_params] || {}
|
|
172
|
-
# HTTP header 'Accept' (if needed)
|
|
173
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
174
|
-
|
|
175
|
-
# form parameters
|
|
176
|
-
form_params = opts[:form_params] || {}
|
|
177
|
-
|
|
178
|
-
# http body (model)
|
|
179
|
-
post_body = opts[:debug_body]
|
|
180
|
-
|
|
181
|
-
# return_type
|
|
182
|
-
return_type = opts[:debug_return_type] || 'AttributionCampaignSummaryListEnvelope'
|
|
183
|
-
|
|
184
|
-
# auth_names
|
|
185
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth', 'bearerAuth']
|
|
186
|
-
|
|
187
|
-
new_options = opts.merge(
|
|
188
|
-
:operation => :"AttributionPartnersApi.list_attribution_campaigns",
|
|
189
|
-
:header_params => header_params,
|
|
190
|
-
:query_params => query_params,
|
|
191
|
-
:form_params => form_params,
|
|
192
|
-
:body => post_body,
|
|
193
|
-
:auth_names => auth_names,
|
|
194
|
-
:return_type => return_type
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
198
|
-
if @api_client.config.debugging
|
|
199
|
-
@api_client.config.logger.debug "API called: AttributionPartnersApi#list_attribution_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
200
|
-
end
|
|
201
|
-
return data, status_code, headers
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
# List partner invites
|
|
205
|
-
# Returns all invites created by or sent to the authenticated user. Includes both pending and accepted invites.
|
|
206
|
-
# @param [Hash] opts the optional parameters
|
|
207
|
-
# @return [PartnerInviteListEnvelope]
|
|
208
|
-
def list_partner_invites(opts = {})
|
|
209
|
-
data, _status_code, _headers = list_partner_invites_with_http_info(opts)
|
|
210
|
-
data
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
# List partner invites
|
|
214
|
-
# Returns all invites created by or sent to the authenticated user. Includes both pending and accepted invites.
|
|
215
|
-
# @param [Hash] opts the optional parameters
|
|
216
|
-
# @return [Array<(PartnerInviteListEnvelope, Integer, Hash)>] PartnerInviteListEnvelope data, response status code and response headers
|
|
217
|
-
def list_partner_invites_with_http_info(opts = {})
|
|
218
|
-
if @api_client.config.debugging
|
|
219
|
-
@api_client.config.logger.debug 'Calling API: AttributionPartnersApi.list_partner_invites ...'
|
|
220
|
-
end
|
|
221
|
-
# resource path
|
|
222
|
-
local_var_path = '/attribution/invites'
|
|
223
|
-
|
|
224
|
-
# query parameters
|
|
225
|
-
query_params = opts[:query_params] || {}
|
|
226
|
-
|
|
227
|
-
# header parameters
|
|
228
|
-
header_params = opts[:header_params] || {}
|
|
229
|
-
# HTTP header 'Accept' (if needed)
|
|
230
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
231
|
-
|
|
232
|
-
# form parameters
|
|
233
|
-
form_params = opts[:form_params] || {}
|
|
234
|
-
|
|
235
|
-
# http body (model)
|
|
236
|
-
post_body = opts[:debug_body]
|
|
237
|
-
|
|
238
|
-
# return_type
|
|
239
|
-
return_type = opts[:debug_return_type] || 'PartnerInviteListEnvelope'
|
|
240
|
-
|
|
241
|
-
# auth_names
|
|
242
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth', 'bearerAuth']
|
|
243
|
-
|
|
244
|
-
new_options = opts.merge(
|
|
245
|
-
:operation => :"AttributionPartnersApi.list_partner_invites",
|
|
246
|
-
:header_params => header_params,
|
|
247
|
-
:query_params => query_params,
|
|
248
|
-
:form_params => form_params,
|
|
249
|
-
:body => post_body,
|
|
250
|
-
:auth_names => auth_names,
|
|
251
|
-
:return_type => return_type
|
|
252
|
-
)
|
|
253
|
-
|
|
254
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
255
|
-
if @api_client.config.debugging
|
|
256
|
-
@api_client.config.logger.debug "API called: AttributionPartnersApi#list_partner_invites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
257
|
-
end
|
|
258
|
-
return data, status_code, headers
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
# Register as a marketing partner
|
|
262
|
-
# Registers the authenticated user as a marketing partner. After registration, the partner can create invites to request access to campaigns.
|
|
263
|
-
# @param register_as_partner_request [RegisterAsPartnerRequest]
|
|
264
|
-
# @param [Hash] opts the optional parameters
|
|
265
|
-
# @return [MarketingPartnerEnvelope]
|
|
266
|
-
def register_as_partner(register_as_partner_request, opts = {})
|
|
267
|
-
data, _status_code, _headers = register_as_partner_with_http_info(register_as_partner_request, opts)
|
|
268
|
-
data
|
|
269
|
-
end
|
|
270
|
-
|
|
271
|
-
# Register as a marketing partner
|
|
272
|
-
# Registers the authenticated user as a marketing partner. After registration, the partner can create invites to request access to campaigns.
|
|
273
|
-
# @param register_as_partner_request [RegisterAsPartnerRequest]
|
|
274
|
-
# @param [Hash] opts the optional parameters
|
|
275
|
-
# @return [Array<(MarketingPartnerEnvelope, Integer, Hash)>] MarketingPartnerEnvelope data, response status code and response headers
|
|
276
|
-
def register_as_partner_with_http_info(register_as_partner_request, opts = {})
|
|
277
|
-
if @api_client.config.debugging
|
|
278
|
-
@api_client.config.logger.debug 'Calling API: AttributionPartnersApi.register_as_partner ...'
|
|
279
|
-
end
|
|
280
|
-
# verify the required parameter 'register_as_partner_request' is set
|
|
281
|
-
if @api_client.config.client_side_validation && register_as_partner_request.nil?
|
|
282
|
-
fail ArgumentError, "Missing the required parameter 'register_as_partner_request' when calling AttributionPartnersApi.register_as_partner"
|
|
283
|
-
end
|
|
284
|
-
# resource path
|
|
285
|
-
local_var_path = '/attribution/partners/register'
|
|
286
|
-
|
|
287
|
-
# query parameters
|
|
288
|
-
query_params = opts[:query_params] || {}
|
|
289
|
-
|
|
290
|
-
# header parameters
|
|
291
|
-
header_params = opts[:header_params] || {}
|
|
292
|
-
# HTTP header 'Accept' (if needed)
|
|
293
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
294
|
-
# HTTP header 'Content-Type'
|
|
295
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
296
|
-
if !content_type.nil?
|
|
297
|
-
header_params['Content-Type'] = content_type
|
|
298
|
-
end
|
|
299
|
-
|
|
300
|
-
# form parameters
|
|
301
|
-
form_params = opts[:form_params] || {}
|
|
302
|
-
|
|
303
|
-
# http body (model)
|
|
304
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(register_as_partner_request)
|
|
305
|
-
|
|
306
|
-
# return_type
|
|
307
|
-
return_type = opts[:debug_return_type] || 'MarketingPartnerEnvelope'
|
|
308
|
-
|
|
309
|
-
# auth_names
|
|
310
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth', 'bearerAuth']
|
|
311
|
-
|
|
312
|
-
new_options = opts.merge(
|
|
313
|
-
:operation => :"AttributionPartnersApi.register_as_partner",
|
|
314
|
-
:header_params => header_params,
|
|
315
|
-
:query_params => query_params,
|
|
316
|
-
:form_params => form_params,
|
|
317
|
-
:body => post_body,
|
|
318
|
-
:auth_names => auth_names,
|
|
319
|
-
:return_type => return_type
|
|
320
|
-
)
|
|
321
|
-
|
|
322
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
323
|
-
if @api_client.config.debugging
|
|
324
|
-
@api_client.config.logger.debug "API called: AttributionPartnersApi#register_as_partner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
325
|
-
end
|
|
326
|
-
return data, status_code, headers
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
# Revoke a partner invite
|
|
330
|
-
# Revokes a pending invite. Only the creator can revoke an invite. Accepted invites cannot be revoked (delete the connection instead).
|
|
331
|
-
# @param token [String] The invite token
|
|
332
|
-
# @param [Hash] opts the optional parameters
|
|
333
|
-
# @return [nil]
|
|
334
|
-
def revoke_partner_invite(token, opts = {})
|
|
335
|
-
revoke_partner_invite_with_http_info(token, opts)
|
|
336
|
-
nil
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
# Revoke a partner invite
|
|
340
|
-
# Revokes a pending invite. Only the creator can revoke an invite. Accepted invites cannot be revoked (delete the connection instead).
|
|
341
|
-
# @param token [String] The invite token
|
|
342
|
-
# @param [Hash] opts the optional parameters
|
|
343
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
344
|
-
def revoke_partner_invite_with_http_info(token, opts = {})
|
|
345
|
-
if @api_client.config.debugging
|
|
346
|
-
@api_client.config.logger.debug 'Calling API: AttributionPartnersApi.revoke_partner_invite ...'
|
|
347
|
-
end
|
|
348
|
-
# verify the required parameter 'token' is set
|
|
349
|
-
if @api_client.config.client_side_validation && token.nil?
|
|
350
|
-
fail ArgumentError, "Missing the required parameter 'token' when calling AttributionPartnersApi.revoke_partner_invite"
|
|
351
|
-
end
|
|
352
|
-
# resource path
|
|
353
|
-
local_var_path = '/attribution/invites/{token}'.sub('{' + 'token' + '}', CGI.escape(token.to_s))
|
|
354
|
-
|
|
355
|
-
# query parameters
|
|
356
|
-
query_params = opts[:query_params] || {}
|
|
357
|
-
|
|
358
|
-
# header parameters
|
|
359
|
-
header_params = opts[:header_params] || {}
|
|
360
|
-
# HTTP header 'Accept' (if needed)
|
|
361
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
362
|
-
|
|
363
|
-
# form parameters
|
|
364
|
-
form_params = opts[:form_params] || {}
|
|
365
|
-
|
|
366
|
-
# http body (model)
|
|
367
|
-
post_body = opts[:debug_body]
|
|
368
|
-
|
|
369
|
-
# return_type
|
|
370
|
-
return_type = opts[:debug_return_type]
|
|
371
|
-
|
|
372
|
-
# auth_names
|
|
373
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth', 'bearerAuth']
|
|
374
|
-
|
|
375
|
-
new_options = opts.merge(
|
|
376
|
-
:operation => :"AttributionPartnersApi.revoke_partner_invite",
|
|
377
|
-
:header_params => header_params,
|
|
378
|
-
:query_params => query_params,
|
|
379
|
-
:form_params => form_params,
|
|
380
|
-
:body => post_body,
|
|
381
|
-
:auth_names => auth_names,
|
|
382
|
-
:return_type => return_type
|
|
383
|
-
)
|
|
384
|
-
|
|
385
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
386
|
-
if @api_client.config.debugging
|
|
387
|
-
@api_client.config.logger.debug "API called: AttributionPartnersApi#revoke_partner_invite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
388
|
-
end
|
|
389
|
-
return data, status_code, headers
|
|
390
|
-
end
|
|
391
|
-
end
|
|
392
|
-
end
|