-
Notifications
You must be signed in to change notification settings - Fork 3
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
See current pinger scheduled notificactions #1
Comments
👋 It would definitely be a nice feature to have. I can try taking a look at building out the API sometime soon™️. The API is located here: https://github.com/brokalys/sls-api |
Ok, the API is now ready. brokalys/sls-api@cfbafaa Here's the staging playground you can use: https://h4iamlt72f.execute-api.eu-west-1.amazonaws.com/staging/ Example query:
HTTP headers:
Provide the pinger ID and the unsubscribe key. The result will contain an array of pingers for this specific user. Nothing will be returned if the ID/key does not match any pingers. Prod will have the same syntax. API endpoint: https://api.brokalys.com ; key: -- There is no way to perform UPDATE operations. However, you can run the |
That was quick! I got a bit swamped at work, will try to get to this! |
All good on
{
"errors": [
{
"message": "An unexpected error occurred. Please try again later."
}
],
"data": null
} Could you please check in logs what I'm doing wrong? I did set prod pingers(
id: "4a9459aa-7eb9-11eb-b2a8-663c33f40218"
unsubscribe_key: "1b27467e016c52b27d53ed06aadf1ef512bdb521"
) { ... } this returns {
"data": {
"pingers": {
"results": []
}
}
} I suspect that API-Key is Access limited perhaps?
|
You can use polygonStringToCoords to convert the string to a polygon. And then just draw the polygon on the map. |
Thanks, works! But interestingly now I receive a lot of null values and all of the pingers on prod for my email have {
"id": "<id>",
"email": "<email>",
"category": "HOUSE",
"type": "SELL",
"price_min": 1,
"price_max": 300000,
"price_type": "TOTAL",
"region": null,
"rooms_min": null,
"rooms_max": null,
"area_m2_min": null,
"area_m2_max": null,
"frequency": "DAILY",
"comments": null,
"marketing": true,
"created_at": "1679843489000",
"unsubscribed_at": null,
"unsubscribe_key": "<uns_key>"
}, I think in pinger region should be always present right? Unless user somehow selected nothing on the map and we allow that on API validation? |
You are correct! It's been a while since I worked with the pinger codebase, so I'm a bit rusty. The |
@MatissJanis I'm sorry to disturb again 🙈 I just returned to this. |
Ha.. that's quite unfortunate. I'm OOO right now. Will try to pick this up again in a few weeeks. |
The patch has been deployed. Thanks for the report! |
Lol, I brainfarted, BE returns all pingers, even unsubscribed, I can just filter using |
Would it be somehow possible to get API to acquire all scheduled pinger notifications for given user?
I am thinking that perhaps it would be possible to send a link in email through which it would be possible to access all the scheduled pinger notificaitons to review, edit and delete through some easy to use interface.
If you think it is possible I might be able to help out with coding FullStack solution or only UI if needed.
The text was updated successfully, but these errors were encountered: