File tree Expand file tree Collapse file tree 5 files changed +5
-4
lines changed
src/main/java/com/vonage/quickstart Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ public static String envVar(String key) {
7878 VONAGE_APPLICATION_ID = envVar ("VONAGE_APPLICATION_ID" ),
7979 VONAGE_PRIVATE_KEY_PATH = envVar ("VONAGE_PRIVATE_KEY_PATH" ),
8080 VONAGE_VIRTUAL_NUMBER = envVar ("VONAGE_VIRTUAL_NUMBER" ),
81+ ACCOUNT_ID = envVar ("ACCOUNT_ID" ),
8182 ACCOUNT_SECRET = envVar ("ACCOUNT_SECRET" ),
8283 ACCOUNT_SECRET_ID = envVar ("ACCOUNT_SECRET_ID" ),
8384 ACCOUNT_SMS_CALLBACK_URL = envVar ("ACCOUNT_SMS_CALLBACK_URL" ),
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public static void main(String[] args) {
3232 .apiSecret (VONAGE_API_SECRET )
3333 .build ();
3434
35- SecretResponse response = client .getAccountClient ().createSecret (VONAGE_API_KEY , ACCOUNT_SECRET );
35+ SecretResponse response = client .getAccountClient ().createSecret (ACCOUNT_ID , ACCOUNT_SECRET );
3636 System .out .println (response .getId () + " created at " + response .getCreated ());
3737 }
3838}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public static void main(String[] args) {
3232 .apiSecret (VONAGE_API_SECRET )
3333 .build ();
3434
35- SecretResponse response = client .getAccountClient ().getSecret (VONAGE_API_KEY , ACCOUNT_SECRET_ID );
35+ SecretResponse response = client .getAccountClient ().getSecret (ACCOUNT_ID , ACCOUNT_SECRET_ID );
3636 System .out .println (response .getId () + " created at " + response .getCreated ());
3737 }
3838}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public static void main(String[] args) {
3333 .apiSecret (VONAGE_API_SECRET )
3434 .build ();
3535
36- ListSecretsResponse response = client .getAccountClient ().listSecrets (VONAGE_API_KEY );
36+ ListSecretsResponse response = client .getAccountClient ().listSecrets (ACCOUNT_ID );
3737
3838 for (SecretResponse secret : response .getSecrets ()) {
3939 System .out .println (secret .getId () + " created at " + secret .getCreated ());
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ public static void main(String[] args) throws Exception {
3131 .apiSecret (VONAGE_API_SECRET )
3232 .build ();
3333
34- client .getAccountClient ().revokeSecret (VONAGE_API_KEY , ACCOUNT_SECRET_ID );
34+ client .getAccountClient ().revokeSecret (ACCOUNT_ID , ACCOUNT_SECRET_ID );
3535 }
3636}
You can’t perform that action at this time.
0 commit comments