-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into snyk-fix-96f4480da26ebd31d3ea49bd3c37c147
- Loading branch information
Showing
188 changed files
with
12,970 additions
and
3,805 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Bug report | ||
description: Report a bug with the twilio-java helper library. | ||
title: "[BUG] Describe the issue briefly" | ||
labels: "type: bug" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for reporting a bug in the twilio-java helper library. Please provide the details below to help us investigate and resolve the issue. | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: Provide a clear and concise description of the issue. | ||
placeholder: A clear and concise description of the bug. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Code snippet | ||
description: Provide the code snippet that reproduces the issue. | ||
placeholder: "```\n// Code snippet here\n```" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Actual behavior | ||
description: Describe what actually happened. | ||
placeholder: A description of the actual behavior. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: Describe what you expected to happen. | ||
placeholder: A description of the expected outcome. | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: twilio-java version | ||
description: Specify the version of the twilio-java helper library you are using. | ||
placeholder: e.g., 10.5.1 | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: Java version | ||
description: Specify the version of Java you are using. | ||
placeholder: e.g., OpenJDK 11.0.16 | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Logs or error messages | ||
description: Provide relevant logs or error messages (if any). | ||
placeholder: "Error: Something went wrong..." | ||
|
||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. | ||
placeholder: Any additional |
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,21 @@ | ||
``` | ||
import com.twilio.Twilio; | ||
import com.twilio.credential.ClientCredentialProvider; | ||
import com.twilio.rest.api.v2010.account.Message; | ||
public class FetchMessageUsingOAuth { | ||
public static void main(String[] args) { | ||
String clientId = "YOUR_CLIENT_ID"; | ||
String clientSecret = "YOUR_CLIENT_SECRET"; | ||
String accountSid = "YOUR_ACCOUNT_SID"; | ||
Twilio.init(new ClientCredentialProvider(clientId, clientSecret), accountSid); | ||
/* | ||
Or use the following if accountSid is not required as a path parameter for an API or when setting accountSid in the API. | ||
Twilio.init(new ClientCredentialProvider(clientId, clientSecret)); | ||
*/ | ||
String messageSid = "YOUR_MESSAGE_SID"; | ||
Message message = Message.fetcher(messageSid).fetch(); | ||
} | ||
} | ||
``` | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<artifactId>twilio</artifactId> | ||
<packaging>jar</packaging> | ||
<name>twilio</name> | ||
<version>10.4.1</version> | ||
<version>10.6.7</version> | ||
<description>Twilio Java Helper Library</description> | ||
<url>https://www.twilio.com</url> | ||
<licenses> | ||
|
@@ -19,7 +19,7 @@ | |
<url>[email protected]:twilio/twilio-java.git</url> | ||
<connection>scm:git:[email protected]:twilio/twilio-java.git</connection> | ||
<developerConnection>scm:git:[email protected]:twilio/twilio-java.git</developerConnection> | ||
<tag>10.4.1</tag> | ||
<tag>10.6.7</tag> | ||
</scm> | ||
<developers> | ||
<developer> | ||
|
@@ -193,7 +193,7 @@ | |
<dependency> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
<version>2.7</version> | ||
<version>2.14.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.jsonwebtoken</groupId> | ||
|
@@ -321,6 +321,11 @@ | |
<version>1.10.19</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.json</groupId> | ||
<artifactId>json</artifactId> | ||
<version>20240303</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.auth0</groupId> | ||
<artifactId>java-jwt</artifactId> | ||
|
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
Oops, something went wrong.