Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added header to user_accounts request #2

Open
qtmspin opened this issue Nov 17, 2020 · 2 comments
Open

Added header to user_accounts request #2

qtmspin opened this issue Nov 17, 2020 · 2 comments

Comments

@qtmspin
Copy link

qtmspin commented Nov 17, 2020

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
    )
@MonkeymanCoder
Copy link

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.

@svh02
Copy link

svh02 commented Apr 16, 2021

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants