Skip to content

Improvement in code sample - rename variable #14

@albert-rz

Description

@albert-rz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions