Skip to content
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

Batching Push Sends #59

Open
vanshsehgal2001 opened this issue May 23, 2023 · 2 comments
Open

Batching Push Sends #59

vanshsehgal2001 opened this issue May 23, 2023 · 2 comments

Comments

@vanshsehgal2001
Copy link

Hey, I was looking for batching push requests and make a single request and not multiple requests. Let me explain more clearly. For eg, I have a push with certain channel ids and payload and there is another push with certain channel ids and payload. Now instead of making 2 requests, I want to make one single send that we do like push.send() . I have seen we can do this by passing array of push objects in Postman and it works fine. I am not able to replicate this behaviour in Python. Is there anyone we can do that. If yes, then can anyone help me and share a sample code snippet or if it's in working phase? Thanks!

@aschuman0
Copy link
Contributor

Hi @vanshsehgal2001 - There is not a way to queue up and batch sends with a single call to push.send() in the way that you're describing. This does seem like a somewhat unusual use case. Is there a particular reason you want or need a single push.send() call? If I know what your end goal is, I may be able to suggest another method to get what you need.

@vanshsehgal2001
Copy link
Author

Yeah, actually want I want is that instead of making 100 individual push.send() calls, I want to create json payload of 100 objects and make a single push.send() call. It is doable using their API but I guess it's not possible using Airship's python library. So is there any other way by which it can be done using its library. Its a very urgent need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants