You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serviceDomain:"YOUR_DOMAIN", // YOUR_DOMAIN is the XXXX part of XXXX.microcms.io
45
-
apiKey:"YOUR_API_KEY",
46
-
// retry: true // Retry attempts up to a maximum of two times.
44
+
serviceDomain:'YOUR_DOMAIN', // YOUR_DOMAIN is the XXXX part of XXXX.microcms.io
45
+
apiKey:'YOUR_API_KEY',
46
+
// retry: true // Retry attempts up to a maximum of two times.
47
47
});
48
48
```
49
49
50
50
When using with a browser.
51
51
52
52
```html
53
53
<script>
54
-
const { createClient } = microcms;
55
-
56
-
// Initialize Client SDK.
57
-
constclient=createClient({
58
-
serviceDomain:"YOUR_DOMAIN", // YOUR_DOMAIN is the XXXX part of XXXX.microcms.io
59
-
apiKey:"YOUR_API_KEY",
60
-
// retry: true // Retry attempts up to a maximum of two times.
61
-
});
54
+
const { createClient } = microcms;
55
+
56
+
// Initialize Client SDK.
57
+
constclient=createClient({
58
+
serviceDomain:'YOUR_DOMAIN', // YOUR_DOMAIN is the XXXX part of XXXX.microcms.io
59
+
apiKey:'YOUR_API_KEY',
60
+
// retry: true // Retry attempts up to a maximum of two times.
61
+
});
62
62
</script>
63
63
```
64
64
@@ -115,7 +115,7 @@ client
115
115
#### Get all content ids
116
116
117
117
This function can be used to retrieve all content IDs only.
118
-
Since `filters` and `draftKey` can also be specified, it is possible to retrieve only the content IDs for a specific category, or to include content from a specific draft. \
118
+
Since `filters` and `draftKey` can also be specified, it is possible to retrieve only the content IDs for a specific category, or to include content from a specific draft. \
119
119
The `alternateField` property can also be used to address cases where the value of a field other than content ID is used in a URL, etc.
120
120
121
121
```javascript
@@ -276,7 +276,7 @@ client
276
276
.catch((err) =>console.error(err));
277
277
```
278
278
279
-
### TypeScript
279
+
### TypeScript
280
280
281
281
If you are using TypeScript, use `getList`, `getListDetail`, `getObject`. This internally contains a common type of content.
0 commit comments