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
I am not sure whether it is a future plan to change the email send respons type, however, the python sdk response type and the real RESTful api response type is a bit misleading.
@tim-hub yeah I think returning the type Email for all methods ended up not being the best typing UI since the Email object will not be entirely populated depending on the response. Will update that
I am not sure whether it is a future plan to change the email send respons type, however, the python sdk response type and the real RESTful api response type is a bit misleading.
At
batch
send response.resend-python/resend/emails/_batch.py
Line 11 in 752fe35
resend-python/resend/emails/_batch.py
Lines 20 to 25 in 752fe35
resend-python/resend/emails/_email.py
Lines 57 to 65 in 752fe35
It is useding
List[Email]
as response, however, that is not the real structure of what the response is.The real response has
id
onlyhttps://resend.com/docs/api-reference/emails/send-email
Suggestion:
Created a different response type class like
The text was updated successfully, but these errors were encountered: