@@ -51,6 +51,7 @@ public class Contentstack {
51
51
protected final Boolean retryOnFailure ;
52
52
protected final Proxy proxy ;
53
53
protected AuthInterceptor interceptor ;
54
+ protected String [] earlyAccess ;
54
55
protected User user ;
55
56
56
57
/**
@@ -80,8 +81,8 @@ public class Contentstack {
80
81
* @return User
81
82
* @author ***REMOVED***
82
83
* @see <a href=
83
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#users">User
84
- * </a>
84
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#users">User
85
+ * </a>
85
86
* @since 2022-05-19
86
87
*/
87
88
public User user () {
@@ -130,8 +131,8 @@ public User user() {
130
131
* @throws IOException the IOException
131
132
* @author ***REMOVED***
132
133
* @see <a href=
133
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#users">User
134
- * </a>
134
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#users">User
135
+ * </a>
135
136
*/
136
137
public Response <LoginDetails > login (String emailId , String password ) throws IOException {
137
138
if (this .authtoken != null )
@@ -183,10 +184,10 @@ public Response<LoginDetails> login(String emailId, String password) throws IOEx
183
184
* @throws IOException the IOException
184
185
* @author ***REMOVED***
185
186
* @see <a
186
- * href=
187
- * "https://www.contentstack.com/docs/developers/apis/content-management-api/#log-in-to-your-account">Login
188
- * your account
189
- * </a>
187
+ * href=
188
+ * "https://www.contentstack.com/docs/developers/apis/content-management-api/#log-in-to-your-account">Login
189
+ * your account
190
+ * </a>
190
191
*/
191
192
public Response <LoginDetails > login (String emailId , String password , String tfaToken ) throws IOException {
192
193
if (this .authtoken != null )
@@ -287,11 +288,12 @@ public Organization organization() {
287
288
*
288
289
* @param organizationUid The UID of the organization that you want to retrieve
289
290
* @return the organization
290
- * <br>
291
- * <b>Example</b>
291
+ * <br>
292
+ * <b>Example</b>
292
293
*
293
- * <pre>
294
+ * <pre>
294
295
* Contentstack contentstack = new Contentstack.Builder().build();
296
+ * <br>
295
297
* Organization org = contentstack.organization();
296
298
* </pre>
297
299
*/
@@ -447,6 +449,7 @@ public Contentstack(Builder builder) {
447
449
this .retryOnFailure = builder .retry ;
448
450
this .proxy = builder .proxy ;
449
451
this .interceptor = builder .authInterceptor ;
452
+ this .earlyAccess = builder .earlyAccess ;
450
453
}
451
454
452
455
/**
@@ -461,6 +464,7 @@ public static class Builder {
461
464
private AuthInterceptor authInterceptor ;
462
465
463
466
private String authtoken ; // authtoken for client
467
+ private String [] earlyAccess ;
464
468
private Retrofit instance ; // client instance
465
469
private String hostname = Util .HOST ; // Default Host for Contentstack API (default: api.contentstack.io)
466
470
private String port = Util .PORT ; // Default PORT for Contentstack API
@@ -488,14 +492,14 @@ public Builder() {
488
492
* <br>
489
493
* <p>
490
494
* {@code
491
- *
492
- <p>
495
+ *
496
+ * <p>
493
497
* Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("hostname", 433));
494
498
* Contentstack contentstack = new Contentstack.Builder().setProxy(proxy).build();
495
- *
496
- <p>
499
+ *
500
+ * <p>
497
501
* }
498
- *
502
+ *
499
503
* @param proxy the proxy
500
504
* @return the Builder instance
501
505
*/
@@ -578,9 +582,9 @@ public Builder setTimeout(int timeout) {
578
582
* unit of granularity and provides utility methods to
579
583
* convert across units
580
584
* @return instance of Builder
581
- * <p>
582
- * Example:
583
- * {@code
585
+ * <p>
586
+ * Example:
587
+ * {@code
584
588
* Contentstack cs = new Contentstack.Builder()
585
589
* .setAuthtoken(AUTHTOKEN)
586
590
* .setConnectionPool(5, 400, TimeUnit.MILLISECONDS)
@@ -604,6 +608,12 @@ public Builder setAuthtoken(String authtoken) {
604
608
return this ;
605
609
}
606
610
611
+
612
+ public Builder earlyAccess (String [] earlyAccess ) {
613
+ this .earlyAccess = earlyAccess ;
614
+ return this ;
615
+ }
616
+
607
617
/**
608
618
* Build contentstack.
609
619
*
0 commit comments