MCPcopy Create free account
hub / github.com/fa0311/TwitterInternalAPIDocument / get_dispatch_list

Function get_dispatch_list

lib/legacy.py:10–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def get_dispatch_list():
11 method_list = ["get", "post", "delete", "put"]
12 url_list = [
13 ("", "https://api.twitter.com/1.1/{queryId}.json"),
14 ("I", "https://twitter.com/i/api/1.1/{queryId}.json"),
15 ("URT", "https://twitter.com/i/api/2/{queryId}.json"),
16 ("Unversioned", "Unversioned"),
17 ]
18
19 output = {}
20 for m in method_list:
21 for u in url_list:
22 output.update({m + u[0]: (m, u[0], u[1])})
23 return output
24
25
26def get_dispatch(parsed_list: js_data) -> dict:

Callers 2

get_dispatchFunction · 0.85
split_dispatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected