Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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