MCPcopy Create free account
hub / github.com/EdupageAPI/edupage-api / encode_form_data

Method encode_form_data

edupage_api/utils.py:95–102  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

93
94 @staticmethod
95 def encode_form_data(data):
96 output = ""
97 for i, key in enumerate(data.keys(), start=0):
98 value = data[key]
99 entry = f"{RequestUtil.urlencode(key)}={RequestUtil.urlencode(value)}"
100
101 output += f"&{entry}" if i != 0 else entry
102 return output
103
104 @staticmethod
105 def encode_attachments(attachments):

Callers 3

encode_request_bodyMethod · 0.45
__get_date_planMethod · 0.45

Calls 1

urlencodeMethod · 0.45

Tested by

no test coverage detected