Skip to content

Commit

Permalink
proxy_ticket is now an optional argument
Browse files Browse the repository at this point in the history
  • Loading branch information
grallewellyn committed Feb 6, 2025
1 parent 47053c2 commit e667d0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions maap/Profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ def __init__(self, profile_endpoint, api_header):
self._profile_endpoint = profile_endpoint
self._logger = logging.getLogger(__name__)

def account_info(self):
def account_info(self, proxy_ticket = None):
headers = self._api_header
headers['Accept'] = 'application/json'
if 'proxy-ticket' not in headers and proxy_ticket:
headers['proxy-ticket'] = proxy_ticket

response = requests.get(
url=self._profile_endpoint,
headers=self._api_header
headers=headers
)

if response:
Expand Down

0 comments on commit e667d0d

Please sign in to comment.