MCPcopy Create free account
hub / github.com/openai/plugins / encode_query

Function encode_query

plugins/box/skills/box/scripts/box_rest.py:68–77  ·  view source on GitHub ↗
(params: dict[str, Any])

Source from the content-addressed store, hash-verified

66
67
68def encode_query(params: dict[str, Any]) -> str:
69 filtered = {}
70 for key, value in params.items():
71 if value is None:
72 continue
73 if isinstance(value, list):
74 filtered[key] = ",".join(str(item) for item in value)
75 else:
76 filtered[key] = value
77 return parse.urlencode(filtered)
78
79
80def get_token(cli_token: str | None) -> str:

Callers 6

handle_get_itemFunction · 0.85
handle_get_folder_itemsFunction · 0.85
handle_searchFunction · 0.85
handle_create_folderFunction · 0.85
handle_upload_fileFunction · 0.85
handle_move_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected