---
title: "Discussion on \"When to use __call__\" | Hashnode"
description: "Discussion on \"When to use __call__\". Requests\n\nrequest.get(url, auth: AuthBase=obj, **kwargs)\n\naccepts a obj: requests.auth.AuthBase to attach a user’s credentials required for a custom authentication flow.\nIt mutate's the request object to generate an “Authorization” Header using the c..."
url: "https://hashnode.com/posts/when-to-use-call/6826235a3a232e8db83e9337"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [When to use \_\_call\_\_](https://blog.danwald.me/when-to-use-call?utm_source=hashnode&utm_medium=feed)

Requests request.get(url, auth: AuthBase=obj, \*\*kwargs) accepts a obj: requests.auth.AuthBase to attach a user’s credentials required for a custom authentication flow. It mutate's the request object to generate an “Authorization” Header using the c...

May 15, 2025 · 1 min read · blog.danwald.me  
Updated May 28, 2025  
Read the article

-   [#oauth](https://hashnode.com/tag/oauth)
-   [#oauth2](https://hashnode.com/tag/oauth2)
-   [#python](https://hashnode.com/tag/python)
-   [#requestly](https://hashnode.com/tag/requestly)
-   [#pycon](https://hashnode.com/tag/pycon)
-   [#metaprogramming](https://hashnode.com/tag/metaprogramming)

## Written by

[Danny Crasto](https://hashnode.com/@danwald)

@danwald · dubai, uae

  
[View profile](https://hashnode.com/@danwald)

backend/cloud engineer | mentor | pythonista

I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
