Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
risicle committed Sep 16, 2024
1 parent 3f8f030 commit ae535eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/notify_client/service_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ def generate_headers(self, api_token):
class ServiceApiClient:
def __init__(self, app):
self.api_client = OnwardsRequestNotificationsAPIClient(
f"ddf-{app.config['ADMIN_CLIENT_USER_NAME']}-{app.config['ADMIN_CLIENT_SECRET']}",
"x" * 100,
base_url=app.config["API_HOST_NAME"],
)
# our credential lengths aren't what NotificationsAPIClient's __init__ will expect
# given it's designed for destructuring end-user api keys
self.api_client.service_id = app.config['ADMIN_CLIENT_USER_NAME']
self.api_client.api_key = app.config['ADMIN_CLIENT_SECRET']

def get_service(self, service_id):
"""
Expand Down

0 comments on commit ae535eb

Please sign in to comment.