Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tylerjw/smartbnb_endpoint
Endpoint server for smartbnb webhooks
https://github.com/tylerjw/smartbnb_endpoint
Last synced: 4 days ago
JSON representation
Endpoint server for smartbnb webhooks
- Host: GitHub
- URL: https://github.com/tylerjw/smartbnb_endpoint
- Owner: tylerjw
- License: mit
- Created: 2019-04-20T23:36:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T16:51:34.000Z (almost 5 years ago)
- Last Synced: 2025-01-11T11:14:21.209Z (9 days ago)
- Language: Python
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smartbnb_endpoint
Endpoint server for [smartbnb webhooks](http://help.smartbnb.io/integrations-and-developers/webhooks-for-airbnb-and-homeaway).## Dependencies
1. python3
1. [flask](http://flask.pocoo.org/docs/1.0/)## Run
```$ python3 server.py```## API
* This is the url you enter in the smarbnb settings page:```http:///smartbnb```
* Get all the entries for a given listing:
```http GET http:///listing/```
* Get the entries for today (future endpoint for setting door lock codes):
```http GET http:///today/```
* Get the entry for a specific day/time:
```http GET http:///code//2019_04_27_09_10```
## Setup server
apt update
apt install python3-pip
pip3 install flask flask_sqlalchemy
loginctl enable-linger $USER
cp smartbnb-endpoint.service /etc/systemd/system/
systemctl enable smartbnb-endpoint.service
systemctl start smartbnb-endpoint.service### Server Logs
journalctl --unit smartbnb-endpoint