Skip to content

Commit e50fc5b

Browse files
authored
Bugfixing parenthesis error
1 parent 71aa6f5 commit e50fc5b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/nexmo/voice.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,54 +64,54 @@ def stop_speech(self, uuid):
6464
# Deprecated section
6565
# This methods are deprecated, to use them a definition of client with key and secret parameters is mandatory
6666
def initiate_call(self, params=None, **kwargs):
67-
return self._client.post(self._client.host, "/call/json", params or kwargs)
67+
return self._client.post(self._client.host(), "/call/json", params or kwargs)
6868

6969
def initiate_tts_call(self, params=None, **kwargs):
70-
return self._client.post(self._client.api_host, "/tts/json", params or kwargs)
70+
return self._client.post(self._client.api_host(), "/tts/json", params or kwargs)
7171

7272
def initiate_tts_prompt_call(self, params=None, **kwargs):
73-
return self._client.post(self._client.api_host, "/tts-prompt/json", params or kwargs)
73+
return self._client.post(self._client.api_host(), "/tts-prompt/json", params or kwargs)
7474
# End deprecated section
7575

7676
# Utils methods
7777
# _jwt_signed_post private method that Allows developer perform signed post request
7878
def _jwt_signed_post(self, request_uri, params):
7979
uri = "https://{api_host}{request_uri}".format(
80-
api_host=self._client.api_host, request_uri=request_uri
80+
api_host=self._client.api_host(), request_uri=request_uri
8181
)
8282

8383
# Uses the client session to perform the call action with api
8484
return self._client.parse(
85-
self._client.api_host, self._client.session.post(uri, json=params, headers=self._client._headers())
85+
self._client.api_host(), self._client.session.post(uri, json=params, headers=self._client._headers())
8686
)
8787

8888
# _jwt_signed_post private method that Allows developer perform signed get request
8989
def _jwt_signed_get(self, request_uri, params=None):
9090
uri = "https://{api_host}{request_uri}".format(
91-
api_host=self._client.api_host, request_uri=request_uri
91+
api_host=self._client.api_host(), request_uri=request_uri
9292
)
9393

9494
return self._client.parse(
95-
self._client.api_host,
95+
self._client.api_host(),
9696
self._client.session.get(uri, params=params or {}, headers=self._client._headers()),
9797
)
9898

9999
# _jwt_signed_put private method that Allows developer perform signed put request
100100
def _jwt_signed_put(self, request_uri, params):
101101
uri = "https://{api_host}{request_uri}".format(
102-
api_host=self._client.api_host, request_uri=request_uri
102+
api_host=self._client.api_host(), request_uri=request_uri
103103
)
104104

105105
return self._client.parse(
106-
self._client.api_host, self._client.session.put(uri, json=params, headers=self._client._headers())
106+
self._client.api_host(), self._client.session.put(uri, json=params, headers=self._client._headers())
107107
)
108108

109109
# _jwt_signed_put private method that Allows developer perform signed put request
110110
def _jwt_signed_delete(self, request_uri):
111111
uri = "https://{api_host}{request_uri}".format(
112-
api_host=self._client.api_host, request_uri=request_uri
112+
api_host=self._client.api_host(), request_uri=request_uri
113113
)
114114

115115
return self._client.parse(
116-
self._client.api_host, self._client.session.delete(uri, headers=self._client._headers())
116+
self._client.api_host(), self._client.session.delete(uri, headers=self._client._headers())
117117
)

0 commit comments

Comments
 (0)