-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add subaccount support #150
Comments
Right you are. I'd like to better understand the way you use the library so we can implement this properly. I see a couple of ways subaccounts could be used:
from sparkpost import SparkPost
sp = SparkPost(subaccount=123)
response = sp.transmissions.send(
...
)
from sparkpost import SparkPost
sp = SparkPost()
response = sp.transmissions.send(
subaccount=123,
...
) Any thoughts on which approach would best suit your use case? Is instantiating multiple instances of |
Hi, Thanks for your help. |
Yeah all good points - thanks for the feedback @cisarpavel. I'm going to extract this in the base resource's |
@jgzamora Preeeety sure this can be closed now |
Master account can pretend be subaccount using extra header. This feature is not implemented or I did not find it.
Thanks
Pavel Cisar
The text was updated successfully, but these errors were encountered: