You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calls to allowed_email_address_get return a string object which is not nice to evaluate the API response afterwards.
I used the following workaround to get a dictionary object for the response:
api_response=api_instance.allowed_email_address_get()
allowed=eval(api_response)
# now allowed.get('data') works
Would be best to get the dictionary object directly from allowed_email_address_get and not rely on being able to use eval for the returned string.
Activity
naxxfish commentedon Dec 6, 2020
So does
account_get. Why isn't a dict being returned? Or anything that's not a string that needs to be eval'd?molnarbence commentedon Sep 18, 2023
Same for
ContactApi.lists_contacts_by_list_id_get. And the reason for that is because theresponse_typeparameter is hard coded tostrhere:clicksend-python/clicksend_client/api/contact_api.py
Line 468 in d8290b7
when I change this from
strtoobject, it returns andict.alext commentedon May 9, 2024
Same for
UploadApi.uploads_post- also has theresponse_typeparameter hard-coded tostr.