Skip to content

Commit c0fdb64

Browse files
readme.md updated
1 parent ce1510b commit c0fdb64

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Note: By using CMA, you can execute GET requests for fetching content. However,
1010

1111
### Prerequisite
1212

13-
You need Node.js version 10 or above installed on your machine to use the Contentstack Java CMS SDK.
13+
You need Java 8 or above installed on your machine to use the Contentstack Management Java SDK.
1414

1515
### Installation
1616

@@ -35,7 +35,7 @@ To import the SDK, use the following command:
3535
```java
3636
package com.contentstack.cms;
3737

38-
Contentstack client = new Contentstack.Builder().build();
38+
Contentstack contentstack = new Contentstack.Builder().build();
3939
```
4040

4141
### Authentication
@@ -47,37 +47,37 @@ To use this SDK, you need to authenticate your users by using the Authtoken, cre
4747
An [Authtoken](https://www.contentstack.com/docs/developers/create-tokens/types-of-tokens/#authentication-tokens-authtokens-) is a read-write token used to make authorized CMA requests, and it is a **user-specific** token.
4848

4949
```java
50-
Contentstack client = new Contentstack.Builder().setAuthtoken("AUTHTOKEN").build();
50+
Contentstack contentstack = new Contentstack.Builder().setAuthtoken("AUTHTOKEN").build();
5151
```
5252

5353
### Login
5454

5555
To Login to Contentstack by using credentials, you can use the following lines of code:
5656

5757
```java
58-
Contentstack client = new Contentstack.Builder().build();
59-
client.login("EMAIL", "PASSWORD");
58+
Contentstack contentstack = new Contentstack.Builder().build();
59+
contentstack.login("EMAIL", "PASSWORD");
6060
```
6161

6262
### Management Token
6363

6464
[Management Tokens](https://www.contentstack.com/docs/developers/create-tokens/about-management-tokens/) are **stack-level** tokens, with no users attached to them.
6565

6666
```java
67-
Contentstack client = new Contentstack.Builder().setAuthtoken("AUTHTOKEN").build();
68-
Stack stack = client.stack("API_KEY", "MANAGEMENT_TOKEN");
67+
Contentstack contentstack = new Contentstack.Builder().setAuthtoken("AUTHTOKEN").build();
68+
Stack stack = contentstack.stack("API_KEY", "MANAGEMENT_TOKEN");
6969
```
7070

71-
### Contentstack Management JavaScript SDK: 5-minute Quickstart
71+
### Contentstack Management Java SDK: 5-minute Quickstart
7272

7373
#### Initializing Your SDK
7474

75-
To use the JavaScript CMA SDK, you need to first initialize it. To do this, use the following code:
75+
To use the Java CMA SDK, you need to first initialize it. To do this, use the following code:
7676

7777
```java
7878
package com.contentstack.cms;
7979

80-
Contentstack client = new Contentstack.Builder().setAuthtoken("AUTHTOKEN").build();
80+
Contentstack contentstack = new Contentstack.Builder().setAuthtoken("AUTHTOKEN").build();
8181
```
8282

8383
#### Fetch Stack Detail

0 commit comments

Comments
 (0)