MCPcopy
hub / github.com/authlib/authlib / post

Method post

authlib/integrations/base_client/sync_app.py:31–38  ·  view source on GitHub ↗

Invoke POST http request. If ``api_base_url`` configured, shortcut is available:: client.post("timeline", json={"text": "Hi"})

(self, url, **kwargs)

Source from the content-addressed store, hash-verified

29 return self.request("GET", url, **kwargs)
30
31 def post(self, url, **kwargs):
32 """Invoke POST http request.
33
34 If ``api_base_url`` configured, shortcut is available::
35
36 client.post("timeline", json={"text": "Hi"})
37 """
38 return self.request("POST", url, **kwargs)
39
40 def patch(self, url, **kwargs):
41 """Invoke PATCH http request.

Callers 15

_fetch_tokenMethod · 0.80
_http_postMethod · 0.80
_fetch_tokenMethod · 0.80
_refresh_tokenMethod · 0.80
_http_postMethod · 0.80
_fetch_tokenMethod · 0.80
_fetch_tokenMethod · 0.80
test_invalid_clientFunction · 0.80
test_invalid_scopeFunction · 0.80
test_invalid_requestFunction · 0.80
test_unauthorized_clientFunction · 0.80
test_authorize_tokenFunction · 0.80

Calls 1

requestMethod · 0.95

Tested by 15

test_invalid_clientFunction · 0.64
test_invalid_scopeFunction · 0.64
test_invalid_requestFunction · 0.64
test_unauthorized_clientFunction · 0.64
test_authorize_tokenFunction · 0.64
test_invalid_clientFunction · 0.64
test_invalid_scopeFunction · 0.64
test_unauthorized_clientFunction · 0.64
test_authorize_tokenFunction · 0.64
test_invalid_clientFunction · 0.64