Skip to content

Commit dba7cea

Browse files
authored
Merge pull request #27 from nexmo-community/notify-building-block
Add Notify building block
2 parents 2cdcdc2 + 98a0f5c commit dba7cea

File tree

4 files changed

+399
-0
lines changed

4 files changed

+399
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Usage
2+
3+
* Run `composer install`
4+
* Start the web server `php -t . -S 127.0.0.1:3000`
5+
* Test your code with the following `curl` requests:
6+
- `GET` + Query
7+
```sh
8+
curl "http://127.0.0.1:3000/webhooks/answer?from=447700900000"
9+
```
10+
- `POST` + Query
11+
```sh
12+
curl -X "POST" "http://127.0.0.1:3000/webhooks/answer?from=447700900000"
13+
```
14+
- `POST` + JSON
15+
```sh
16+
curl -X "POST" "http://127.0.0.1:3000/webhooks/answer" \
17+
-H 'Content-Type: application/json; charset=utf-8' \
18+
-d $'{ "from": "447700900000" }'
19+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"slim/slim": "^3.8"
4+
}
5+
}

voice/trigger-notify-action/composer.lock

Lines changed: 312 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)