Skip to content

Commit 1e285b3

Browse files
authored
Merge pull request #10 from FreeClimbAPI/hgoscenski_logging
Adding logging of request on inboundsms route
2 parents 81d859f + 7e7fd5d commit 1e285b3

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@
3232
**/values.dev.yaml
3333
LICENSE
3434
README.md
35+
36+
build/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Tools:
5151
1. Start your voice quickstart application
5252

5353
```bash
54-
gradle build && java -Dserver.port=3000 -jar build/libs/Java-SMS-Quickstart-plain.jar
54+
gradle build && java -Dserver.port=3000 -jar build/libs/Java-Messaging-Quickstart-plain.jar
5555
```
5656

5757
2. Call the FreeClimb number assigned to the application you've configured for this tutorial

src/main/java/receive_a_message/SmsHelloWorld.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ public class SmsHelloWorld {
6262

6363
@RequestMapping(value = { "/incomingSms" }, method = RequestMethod.POST)
6464
public void inboundSms(@RequestBody IncomingSmsRequest request) {
65+
System.out.println("Received request: " + request);
66+
System.out.println(" From: " + request.from);
67+
System.out.println(" To: " + request.to);
68+
System.out.println(" Account ID: " + request.accountId);
69+
System.out.println(" Application ID: " + request.applicationId);
70+
System.out.println(" Message ID: " + request.messageId);
71+
System.out.println(" Direction: " + request.direction);
72+
System.out.println(" Status: " + request.status);
73+
System.out.println(" Text: " + request.text);
74+
6575
Dotenv dotenv = Dotenv.configure().ignoreIfMissing().load();
6676
String accountId = dotenv.get("ACCOUNT_ID");
6777
String apiKey = dotenv.get("API_KEY");

0 commit comments

Comments
 (0)