-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hubspot): Remove obsolete private app token from Hubspot
- Loading branch information
1 parent
e3c19d6
commit b5b1e25
Showing
24 changed files
with
1,408 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
app/jobs/integrations/aggregator/send_private_app_token_job.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
app/services/integrations/aggregator/custom_object_service.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# frozen_string_literal: true | ||
|
||
module Integrations | ||
module Aggregator | ||
class CustomObjectService < BaseService | ||
def initialize(integration:, name:) | ||
@name = name | ||
super(integration:) | ||
end | ||
|
||
def action_path | ||
"v1/#{provider}/custom-object" | ||
end | ||
|
||
def call | ||
response = http_client.get(headers:, params:) | ||
|
||
result.custom_object = OpenStruct.new(response) | ||
result | ||
end | ||
|
||
private | ||
|
||
attr_reader :name | ||
|
||
def headers | ||
{ | ||
'Connection-Id' => integration.connection_id, | ||
'Authorization' => "Bearer #{secret_key}", | ||
'Provider-Config-Key' => provider_key | ||
} | ||
end | ||
|
||
def params | ||
{ | ||
'name' => name | ||
} | ||
end | ||
end | ||
end | ||
end |
34 changes: 0 additions & 34 deletions
34
app/services/integrations/aggregator/send_private_app_token_service.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.