Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Reformatted with black.
Browse files Browse the repository at this point in the history
  • Loading branch information
judy2k committed Sep 20, 2018
1 parent 6e7afc7 commit 880601b
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions nexmo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,20 @@ class AuthenticationError(ClientError):


class Client:
def __init__(self,
key=None, secret=None,
signature_secret=None, signature_method=None,
application_id=None, private_key=None,
app_name=None, app_version=None):
def __init__(
self,
key=None,
secret=None,
signature_secret=None,
signature_method=None,
application_id=None,
private_key=None,
app_name=None,
app_version=None,
):
self.api_key = key or os.environ.get("NEXMO_API_KEY", None)

self.api_secret = secret or os.environ.get(
"NEXMO_API_SECRET", None
)
self.api_secret = secret or os.environ.get("NEXMO_API_SECRET", None)

self.signature_secret = signature_secret or os.environ.get(
"NEXMO_SIGNATURE_SECRET", None
Expand Down Expand Up @@ -386,7 +390,9 @@ def _post_json(self, host, request_uri, json):
uri = "https://" + host + request_uri
params = dict(api_key=self.api_key, api_secret=self.api_secret)
logger.debug("POST to %r with params: %r, body: %r", request_uri, params, json)
return self.parse(host, requests.post(uri, params=params, headers=self.headers, json=json))
return self.parse(
host, requests.post(uri, params=params, headers=self.headers, json=json)
)

def put(self, host, request_uri, params):
uri = "https://" + host + request_uri
Expand Down

0 comments on commit 880601b

Please sign in to comment.