We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 940b191 commit e251eb5Copy full SHA for e251eb5
README.md
@@ -1,2 +1,26 @@
1
# qiita-js-2
2
Modern Qiita v2 API client for Node/Browser
3
+
4
+## Usage
5
+`qiita-js-2`をインストールする
6
+```
7
+yarn add qiita-js-2
8
9
10
+例: 新規投稿をする
11
+```ts
12
+import * as Qiita from 'qiita-js-2';
13
14
+const client = new Qiita();
15
16
+client.setToken('your-token-here');
17
18
+client.createItem({
19
+ title: '新しい投稿',
20
+ body: 'これは新しい投稿です',
21
+ tags: [{ name: 'Test', version: '0.0.1' }],
22
+ gist: false,
23
+ twitter: false,
24
+ private: false,
25
+})
26
0 commit comments