api_helper.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:apimatic-cli 作者: apimatic 项目源码 文件源码
def form_encode_parameters(form_parameters,
                               array_serialization="indexed"):
        """Form encodes a dictionary of form parameters

        Args:
            form_parameters (dictionary): The given dictionary which has
            atleast one model to form encode.
            array_serialization (str): The format of array parameter serialization.

        Returns:
            dict: A dictionary of form encoded properties of the model.

        """
        encoded = []

        for key, value in form_parameters.items():
            encoded += APIHelper.form_encode(value, key, array_serialization)

        return encoded
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号