This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
Add support for tenant-specific endpoints #129
Open
JadeDickinson
wants to merge
8
commits into
salesforce-marketingcloud:master
Choose a base branch
from
JadeDickinson:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3e99fbf
refactor: create ET endpoints class for shared config
JadeDickinson d93ff6e
refactor: use base api url from config
JadeDickinson 2d18f7e
refactor: use request token URL from shared config
JadeDickinson 9e2f2c1
refactor: use soap wsdl endpoint from shared config
JadeDickinson e8e93f9
refactor: use soap service endpoint from config
JadeDickinson 96e98fa
Bump version from 1.3.1 to 2.0.0 - major version since APIs 1.3.1 use…
JadeDickinson 4c26ffd
docs: add instructions on how to use tenant-specific endpoints
JadeDickinson c52d673
fix: remove stray apostrophes
JadeDickinson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
base_api_url: 'https://placeholder.rest.marketingcloudapis.com' | ||
request_token_url: 'https://placeholder.rest.marketingcloudapis.com/v1/requestToken' | ||
soap_wsdl_endpoint: 'https://placeholder.soap.marketingcloudapis.com/etframework.wsdl' | ||
soap_service_endpoint: 'https://placeholder.soap.marketingcloudapis.com/Service.asmx' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module MarketingCloudSDK | ||
class ExactTargetEndpoints | ||
def self.config | ||
YAML.load_file( | ||
File.join('config', 'endpoints.yml') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe consider naming this |
||
) | ||
end | ||
|
||
def self.base_api_url | ||
@base_api_url ||= config['base_api_url'] | ||
end | ||
|
||
def self.request_token_url | ||
@request_token_url ||= config['request_token_url'] | ||
end | ||
|
||
def self.soap_wsdl_endpoint | ||
@soap_wsdl_endpoint ||= config['soap_wsdl_endpoint'] | ||
end | ||
|
||
def self.soap_service_endpoint | ||
@soap_service_endpoint ||= config['soap_service_endpoint'] | ||
end | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,5 @@ | |
=end | ||
|
||
module MarketingCloudSDK | ||
VERSION = "1.3.1" | ||
VERSION = "2.0.0" | ||
end |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't
Exact target
name "deprecated"?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, think I'll rename TenantSpecificEndpoints