-
Notifications
You must be signed in to change notification settings - Fork 3
Getting started
The first thing you should do is installing Node and the node package manager. After installing node you should clone the repository from GitHub by using the following command:
$ git clone https://github.com/lVlrChris/IFTTT-CM
After successfully cloning the repository, make sure that you have installed the correct Node packages, by using the following command:
$ npm install
In order to run the server on the local device, it is recommended to use Nodemon, however, it is also possible to start the server via Node, but it is recommended to use Nodemon for maxmimum productivity. To run the server, make sure that you follow these instructions:
$ nodemon index.js
Or when using Node:
$ node index.js
After running the server, you can validate the use of a correct key by sending the following request:
Method: GET
Endpoint URL: localhost:3000/api/ifttt/v1/status
You will also need the following header information in order to check if the key is valid:
Content-Type: application/json
IFTTT-Service-Key: 12345
After sending the request, you should receive a status 200 OK and a body that looks exactly like this:
Valid key
Great, so now that your own server is running, it is time for the real stuff!
- 1.1 Home
- 1.2 Getting started
- 2.1 Send sms
- 2.2 Send voice message
- 2.3 Send hybrid message
- 2.4 Add contact