简体   繁体   English

Python TypeError:必须可转换为缓冲区,而不是OrderedDict

[英]Python TypeError: must be convertible to a buffer, not OrderedDict

I have used a Salesforce python package to query the API via SOAP, and it has returned me a base64 serialized ordered dict. 我使用了Salesforce python软件包通过SOAP查询API,它返回了一个base64序列化有序字典。 How would I go about decoding this to an ordered dictionary? 我如何将其解码为有序字典?

听起来像您想要b64decode ,然后是json.loads

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM