File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ class Client:
24
24
"""<%= format_comment_line(method.Comment) %>"""
25
25
url = "{}/<%= service.Name %>.<%= method.Name %>".format(self.client.endpoint)
26
26
headers = {
27
- 'Accept': 'application/json; charset=utf8',
27
+ 'Accept': 'application/json; charset=utf8',
28
28
'Content-Type': 'application/json; charset=utf8',
29
- 'X-API-Key': self.client.apiKey,
29
+ 'X-API-Key': self.client.apiKey,
30
30
}
31
31
r = requests.post(url, json=<%= method.InputObject.ObjectNameLowerCamel %>, headers=headers)
32
32
if r.status_code != 200:
@@ -54,7 +54,7 @@ class <%= object.Name %>:
54
54
<% } %>
55
55
def json():
56
56
""""get a JSON representation of this object"""
57
- return json.puts (self)
57
+ return json.dumps (self)
58
58
59
59
<% } %>
60
60
@@ -82,4 +82,4 @@ class FieldError(Error):
82
82
83
83
def __init__(self, field, message):
84
84
self.field = field
85
- self.message = message
85
+ self.message = message
You can’t perform that action at this time.
0 commit comments