Need help with basic api integration -- do we have api keys? #1746
-
Hey there! I am a backend dev with senior level experience looking to help make an automated boarding process at the rescue i volunteer at. They are a paid Shelter Manager user and use the ASM hosting for their env. Currently, im interesting in understanding the process for connecting an external service to the ASM backend. When i log into the admin instance of shelter manager I see only accounts/users, i dont really see any API offerings. So a few questions:
Thanks so much in advance! ~Tatiana |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Good luck. |
Beta Was this translation helpful? Give feedback.
-
Hey Bob, Thanks for your response. I would love your input on how to best achieve the following: Our idea is to pull the boarding book each morning to get a list of boarders the shelter expects to check in and display it on our wordpress website. we want to pull the following fields: Ideally we want a workflow where a user can select their rabbit from the boarding book list for check in and upon selecting it generates a cage card (ideally via ASM). We use ASM Hosted so we dont have the luxury of cross site origin calls and we have found a way to generate cage card using the report feature and service api. I thought I could make a html template for the boarding book but none of the fields are exposed from the table. please help! Best, |
Beta Was this translation helpful? Give feedback.
-
You could use the csv_report and html_report service calls to run any report and get the result either as CSV data or as a printable HTML report. I'd use the csv_report to retrieve the boarding info that you want and html_report for printing your cage card. There are already cage card reports, which you can install and modify to suit. You could use the existing report "Boarded animals between two dates" to pull the boarding book for a period as CSV (or JSON if you prefer with json_report). You would have to modify it to add any fields you want that aren't already on there. https://sheltermanager.com/repo/asm3_help/service.html#html-report Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Thank you a bunch! i was able to take the template from the repo and run it. I have been able to iterate on it using the existing examples to pull reports to my liking. It was extra helpful to know i can pull it as a json_report. Thank you!! |
Beta Was this translation helpful? Give feedback.
Good luck.