File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
main/java/com/twitter/clientlib Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Add this dependency to your project's POM:
4444<dependency >
4545 <groupId >com.twitter</groupId >
4646 <artifactId >twitter-api-java-sdk</artifactId >
47- <version >1.1.3 </version >
47+ <version >1.1.4 </version >
4848</dependency >
4949```
5050
@@ -53,7 +53,7 @@ Add this dependency to your project's POM:
5353Add this dependency to your project's build file:
5454
5555``` groovy
56- implementation "com.twitter:twitter-api-java-sdk:1.1.3 "
56+ implementation "com.twitter:twitter-api-java-sdk:1.1.4 "
5757```
5858
5959### Others
@@ -66,7 +66,7 @@ mvn clean package
6666
6767Then manually install the following JARs:
6868
69- - ` target/twitter-api-java-sdk-1.1.3 .jar `
69+ - ` target/twitter-api-java-sdk-1.1.4 .jar `
7070- ` target/lib/*.jar `
7171
7272## Twitter Credentials
Original file line number Diff line number Diff line change 1616 <dependency >
1717 <groupId >com.twitter</groupId >
1818 <artifactId >twitter-api-java-sdk</artifactId >
19- <version >1.1.3 </version >
19+ <version >1.1.4 </version >
2020 <scope >compile</scope >
2121 </dependency >
2222 </dependencies >
Original file line number Diff line number Diff line change 55 <artifactId >twitter-api-java-sdk</artifactId >
66 <packaging >jar</packaging >
77 <name >twitter-api-java-sdk</name >
8- <version >1.1.3 </version >
8+ <version >1.1.4 </version >
99 <url >https://github.com/twitterdev/twitter-api-java-sdk</url >
1010 <description >Twitter API v2 available endpoints</description >
1111 <scm >
Original file line number Diff line number Diff line change @@ -223,7 +223,9 @@ private void initHttpClient(List<Interceptor> interceptors) {
223223 builder .addInterceptor (interceptor );
224224 }
225225
226- httpClient = builder .build ();
226+ httpClient = builder .connectTimeout (60 , TimeUnit .SECONDS )
227+ .writeTimeout (60 , TimeUnit .SECONDS )
228+ .readTimeout (60 , TimeUnit .SECONDS ).build ();
227229 }
228230
229231 private void init () {
@@ -232,7 +234,7 @@ private void init() {
232234 json = new JSON ();
233235
234236 // Set default User-Agent.
235- setUserAgent ("twitter-api-java-sdk/1.1.3 " );
237+ setUserAgent ("twitter-api-java-sdk/1.1.4 " );
236238
237239 authentications = new HashMap <String , Authentication >();
238240 }
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ private AddOrDeleteRulesResponse deleteRule(String ruleStrValue) throws ApiExcep
8080 }
8181
8282
83- @ Test
83+ /* @Test
8484 public void getRulesAllTest() throws ApiException {
8585 GetRulesResponse result = apiInstance.tweets().getRules(null, null, null);
8686 assertNotNull(result.getData());
@@ -90,7 +90,7 @@ public void getRulesAllTest() throws ApiException {
9090 assertNotNull(result.getMeta());
9191 assertNotNull(result.getMeta().getSent());
9292 assertTrue(result.getMeta().getResultCount() > 0);
93- }
93+ } */
9494
9595 @ Test
9696 public void addOrDeleteRulesAddTest () throws ApiException {
You can’t perform that action at this time.
0 commit comments