Skip to content

Commit 199a0e7

Browse files
Update gitignore
1 parent 543a4dd commit 199a0e7

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎.env‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ build
2121
# Mobile Tools for Java (J2ME)
2222
.mtj.tmp/
2323

24+
#Ignore .env file
25+
.env
26+
2427
# Package Files #
2528
*.jar
2629
*.war

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repositories {
2929
dependencies {
3030
implementation("org.springframework.boot:spring-boot-starter-web")
3131
testImplementation("junit:junit")
32-
implementation 'com.github.freeclimbapi:java-sdk:5.2.0'
32+
implementation 'com.github.freeclimbapi:java-sdk:5.3.0'
3333
}
3434

3535
mainClassName = 'main.java.hello.Application'

‎src/main/java/receive_a_message/SmsHelloWorld.java‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ public void inboundSms(@RequestBody String body) {
2525
ApiClient defaultClient = Configuration.getDefaultApiClient();
2626
defaultClient.setBasePath("https://www.freeclimb.com/apiserver");
2727

28+
// defaultClient.setAccountId("MY_ACCOUNT_ID");
29+
// defaultClient.setApiKey("MY_API_KEY");
2830
// Configure HTTP basic authorization: fc
2931
HttpBasicAuth fc = (HttpBasicAuth) defaultClient.getAuthentication("fc");
30-
fc.setUsername(System.getenv("ACCOUNT_ID"));
31-
fc.setPassword(System.getenv("API_KEY"));
32+
fc.setUsername("");
33+
fc.setPassword("");
34+
System.out.println(fc.getUsername());
35+
System.out.println(fc.getPassword());
3236

3337
DefaultApi apiInstance = new DefaultApi(defaultClient);
3438

0 commit comments

Comments
 (0)