Skip to content

Commit

Permalink
feat: geolocation setter in sendgrid-python for GDPR compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 committed Nov 14, 2023
1 parent 30b1ca6 commit 1e1299d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sendgrid/base_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class BaseInterface(object):
def __init__(self, auth, host, region, impersonate_subuser):
def __init__(self, auth, host, impersonate_subuser, region='global'):
"""
Construct the Twilio SendGrid v3 API object.
Note that the underlying client is being set up during initialization,
Expand Down
2 changes: 1 addition & 1 deletion sendgrid/sendgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ def __init__(
self.api_key = api_key or os.environ.get('SENDGRID_API_KEY')
auth = 'Bearer {}'.format(self.api_key)

super(SendGridAPIClient, self).__init__(auth, host, region, impersonate_subuser)
super(SendGridAPIClient, self).__init__(auth, host, impersonate_subuser,region)

0 comments on commit 1e1299d

Please sign in to comment.