Skip to content

Added header to user_accounts request #2

Open

Description

@qtmspin

Line 640
# grab the response.
response = self._handle_requests(
url=url_endpoint,
method='get',
args=params
)

    return response

Changed to:
headers = self.headers()

    # grab the response.
    response = self._handle_requests(
        url=url_endpoint,
        method='get',
        headers=headers,
        args=params
    )

Activity

  1. MonkeymanCoder commented on Jan 29, 2021

    @MonkeymanCoder

    Thanks for this fix. Not only line 640, three or four more places needed the same change. I added two lines headers = self.headers() and headers=headers to make it run without debud errors.

  2. svh02 commented on Apr 16, 2021

    @svh02

    Hello @MonkeymanCoder and @qtmspin

    Thanks for tips, but it is not clear for me where did you add the headers = self.headers()
    Could you please expand specify.
    Thanks a lot!

    Also, I noted a lot of places following the same structure... should we put the same headers=headers line everywhere?

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions