Text-Translation-API-V3-Python icon indicating copy to clipboard operation
Text-Translation-API-V3-Python copied to clipboard

Improvement in code sample - rename variable

Open albert-rz opened this issue 5 years ago • 0 comments

Hello,

In some of the examples there is:

request = requests.post(constructed_url, headers=headers, json=body)
response = request.json()

Would it be possible to rename request for response (for example):

response = requests.post(constructed_url, headers=headers, json=body)
response = response.json()

I'm just mentioning it because post() returns a requests.models.Response object.

Regards

albert-rz avatar Feb 14 '20 11:02 albert-rz