Skip to content

Commit 933333b

Browse files
authored
Update README.md
1 parent f790a66 commit 933333b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You get access to different helpers for each API:
5151
- pimNextApi
5252
- shopCartApi
5353

54-
First, you need to create the _Client_:
54+
First, you need to create the _Client:_
5555

5656
```javascript
5757
import { createClient } from '@crystallize/js-api-client';
@@ -72,7 +72,7 @@ export async function fetchSomething(): Promise<Something[]> {
7272

7373
There is a live demo: https://crystallizeapi.github.io/libraries/js-api-client/call-api
7474

75-
When it comes to API that requires Authentication you can provide more to _createClient_.
75+
When it comes to APIs that require [authentication](https://crystallize.com/learn/developer-guides/api-overview/authentication), you can provide more to _createClient_.
7676

7777
```javascript
7878
const pimApiClient = createClient({
@@ -89,8 +89,8 @@ const catalogueApiClient = createClient({
8989
await catalogueApiClient.catalogueApi(query)
9090
```
9191
92-
There is even more about the Shop Cart API that requires a specific token.
93-
If you fetched the Token yourself you can pass it directly and enjoy the Shop Cart API
92+
There is even more about the [Shop Cart API](https://crystallize.com/learn/developer-guides/shop-api) that requires a specific token.
93+
If you've already fetched the token yourself, you can pass it directly:
9494
9595
```javascript
9696
const cartApiClient = createClient({
@@ -100,8 +100,8 @@ const cartApiClient = createClient({
100100
await cartApiClient.shopCartApi(query);
101101
```
102102
103-
But you can let the JS API Client do the heavy-lifting for you. Shop Cart API requires proof of access to PIM in order to get such Token.
104-
Based on your situation, most likely you are using Shop Cart API server-side:
103+
Or, you can let the JS API Client do the heavy-lifting for you. The Shop Cart API requires proof of access to the PIM API in order to get such a token.
104+
Based on your situation, you're most likely using the Shop Cart API server-side:
105105
106106
```javascript
107107
const cartApiClient = createClient(
@@ -121,7 +121,7 @@ const cartApiClient = createClient(
121121
await cartApiClient.shopCartApi(query);
122122
```
123123
124-
JS API Client will grab the Token for you (once) and use it within the following calls to Shop Cart API.
124+
The JS API Client will grab the token for you (once) and use it within subsequent calls to the Shop Cart API.
125125
126126
## Catalogue Fetcher
127127

0 commit comments

Comments
 (0)