-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use Header auth in SmsClient (#555)
* Use Header auth in Send SMS and NI v1 Basic Insight endpoints * Remove UnsupportedEncodingException catch block * .gitignore BugRepro and use template instead * Check for package updates monthly
- Loading branch information
Showing
12 changed files
with
80 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import com.vonage.client.*; | ||
import java.util.*; | ||
|
||
/** | ||
* Convenience class for debugging / live testing. You should copy this file and remove the | ||
* `.template` extension from the filename to make it usable. | ||
*/ | ||
public class BugRepro { | ||
public static void main(String[] args) throws Throwable { | ||
String TO_NUMBER = System.getenv("TO_NUMBER"); | ||
|
||
VonageClient client = VonageClient.builder() | ||
.httpConfig(HttpConfig.builder().timeoutMillis(12_000).build()) | ||
.apiKey(System.getenv("VONAGE_API_KEY")) | ||
.apiSecret(System.getenv("VONAGE_API_SECRET")) | ||
.applicationId(System.getenv("VONAGE_APPLICATION_ID")) | ||
.privateKeyPath(System.getenv("VONAGE_PRIVATE_KEY_PATH")) | ||
.build(); | ||
|
||
try { | ||
// Debug code here | ||
|
||
System.out.println("Success"); | ||
} | ||
catch (Exception ex) { | ||
ex.printStackTrace(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters