1
+ <!doctype html>
2
+ < html class ="default no-js ">
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
+ < title > qiita-js-2</ title >
7
+ < meta name ="description " content ="">
8
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9
+ < link rel ="stylesheet " href ="assets/css/main.css ">
10
+ </ head >
11
+ < body >
12
+ < header >
13
+ < div class ="tsd-page-toolbar ">
14
+ < div class ="container ">
15
+ < div class ="table-wrap ">
16
+ < div class ="table-cell " id ="tsd-search " data-index ="assets/js/search.js " data-base =". ">
17
+ < div class ="field ">
18
+ < label for ="tsd-search-field " class ="tsd-widget search no-caption "> Search</ label >
19
+ < input id ="tsd-search-field " type ="text " />
20
+ </ div >
21
+ < ul class ="results ">
22
+ < li class ="state loading "> Preparing search index...</ li >
23
+ < li class ="state failure "> The search index is not available</ li >
24
+ </ ul >
25
+ < a href ="index.html " class ="title "> qiita-js-2</ a >
26
+ </ div >
27
+ < div class ="table-cell " id ="tsd-widgets ">
28
+ < div id ="tsd-filter ">
29
+ < a href ="# " class ="tsd-widget options no-caption " data-toggle ="options "> Options</ a >
30
+ < div class ="tsd-filter-group ">
31
+ < div class ="tsd-select " id ="tsd-filter-visibility ">
32
+ < span class ="tsd-select-label "> All</ span >
33
+ < ul class ="tsd-select-list ">
34
+ < li data-value ="public "> Public</ li >
35
+ < li data-value ="protected "> Public/Protected</ li >
36
+ < li data-value ="private " class ="selected "> All</ li >
37
+ </ ul >
38
+ </ div >
39
+ < input type ="checkbox " id ="tsd-filter-inherited " checked />
40
+ < label class ="tsd-widget " for ="tsd-filter-inherited "> Inherited</ label >
41
+ < input type ="checkbox " id ="tsd-filter-externals " checked />
42
+ < label class ="tsd-widget " for ="tsd-filter-externals "> Externals</ label >
43
+ </ div >
44
+ </ div >
45
+ < a href ="# " class ="tsd-widget menu no-caption " data-toggle ="menu "> Menu</ a >
46
+ </ div >
47
+ </ div >
48
+ </ div >
49
+ </ div >
50
+ < div class ="tsd-page-title ">
51
+ < div class ="container ">
52
+ < ul class ="tsd-breadcrumb ">
53
+ < li >
54
+ < a href ="globals.html "> Globals</ a >
55
+ </ li >
56
+ </ ul >
57
+ < h1 > qiita-js-2</ h1 >
58
+ </ div >
59
+ </ div >
60
+ </ header >
61
+ < div class ="container container-main ">
62
+ < div class ="row ">
63
+ < div class ="col-8 col-content ">
64
+ < div class ="tsd-panel tsd-typography ">
65
+ < h1 id ="qiita-js-2 "> qiita-js-2</ h1 >
66
+ < p > Modern Qiita v2 API client for Node/Browser</ p >
67
+ < h2 id ="usage "> Usage</ h2 >
68
+ < p > < code > qiita-js-2</ code > をインストールする</ p >
69
+ < pre > < code > yarn < span class ="hljs-keyword "> add</ span > < span class ="bash "> qiita-js-2</ span >
70
+ </ code > </ pre > < p > 例: 新規投稿をする</ p >
71
+ < pre > < code class ="lang-ts "> < span class ="hljs-keyword "> import</ span > * < span class ="hljs-keyword "> as</ span > Qiita < span class ="hljs-keyword "> from</ span > < span class ="hljs-string "> 'qiita-js-2'</ span > ;
72
+
73
+ < span class ="hljs-keyword "> const</ span > client = < span class ="hljs-keyword "> new</ span > Qiita();
74
+
75
+ client.setToken(< span class ="hljs-string "> 'your-token-here'</ span > );
76
+
77
+ client.createItem({
78
+ title: < span class ="hljs-string "> '新しい投稿'</ span > ,
79
+ body: < span class ="hljs-string "> 'これは新しい投稿です'</ span > ,
80
+ tags: [{ name: < span class ="hljs-string "> 'Test'</ span > , version: < span class ="hljs-string "> '0.0.1'</ span > }],
81
+ gist: < span class ="hljs-literal "> false</ span > ,
82
+ twitter: < span class ="hljs-literal "> false</ span > ,
83
+ < span class ="hljs-keyword "> private</ span > : < span class ="hljs-literal "> false</ span > ,
84
+ })
85
+ </ code > </ pre >
86
+ </ div >
87
+ </ div >
88
+ < div class ="col-4 col-menu menu-sticky-wrap menu-highlight ">
89
+ < nav class ="tsd-navigation primary ">
90
+ < ul >
91
+ < li class ="globals ">
92
+ < a href ="globals.html "> < em > Globals</ em > </ a >
93
+ </ li >
94
+ < li class =" tsd-kind-external-module ">
95
+ < a href ="modules/_index_.html "> "index"</ a >
96
+ </ li >
97
+ < li class =" tsd-kind-external-module ">
98
+ < a href ="modules/_qiita_.html "> "qiita"</ a >
99
+ </ li >
100
+ </ ul >
101
+ </ nav >
102
+ < nav class ="tsd-navigation secondary menu-sticky ">
103
+ < ul class ="before-current ">
104
+ </ ul >
105
+ </ nav >
106
+ </ div >
107
+ </ div >
108
+ </ div >
109
+ < footer class ="with-border-bottom ">
110
+ < div class ="container ">
111
+ < h2 > Legend</ h2 >
112
+ < div class ="tsd-legend-group ">
113
+ < ul class ="tsd-legend ">
114
+ < li class ="tsd-kind-module "> < span class ="tsd-kind-icon "> Module</ span > </ li >
115
+ < li class ="tsd-kind-object-literal "> < span class ="tsd-kind-icon "> Object literal</ span > </ li >
116
+ < li class ="tsd-kind-variable "> < span class ="tsd-kind-icon "> Variable</ span > </ li >
117
+ < li class ="tsd-kind-function "> < span class ="tsd-kind-icon "> Function</ span > </ li >
118
+ < li class ="tsd-kind-function tsd-has-type-parameter "> < span class ="tsd-kind-icon "> Function with type parameter</ span > </ li >
119
+ < li class ="tsd-kind-index-signature "> < span class ="tsd-kind-icon "> Index signature</ span > </ li >
120
+ < li class ="tsd-kind-type-alias "> < span class ="tsd-kind-icon "> Type alias</ span > </ li >
121
+ </ ul >
122
+ < ul class ="tsd-legend ">
123
+ < li class ="tsd-kind-enum "> < span class ="tsd-kind-icon "> Enumeration</ span > </ li >
124
+ < li class ="tsd-kind-enum-member "> < span class ="tsd-kind-icon "> Enumeration member</ span > </ li >
125
+ < li class ="tsd-kind-property tsd-parent-kind-enum "> < span class ="tsd-kind-icon "> Property</ span > </ li >
126
+ < li class ="tsd-kind-method tsd-parent-kind-enum "> < span class ="tsd-kind-icon "> Method</ span > </ li >
127
+ </ ul >
128
+ < ul class ="tsd-legend ">
129
+ < li class ="tsd-kind-interface "> < span class ="tsd-kind-icon "> Interface</ span > </ li >
130
+ < li class ="tsd-kind-interface tsd-has-type-parameter "> < span class ="tsd-kind-icon "> Interface with type parameter</ span > </ li >
131
+ < li class ="tsd-kind-constructor tsd-parent-kind-interface "> < span class ="tsd-kind-icon "> Constructor</ span > </ li >
132
+ < li class ="tsd-kind-property tsd-parent-kind-interface "> < span class ="tsd-kind-icon "> Property</ span > </ li >
133
+ < li class ="tsd-kind-method tsd-parent-kind-interface "> < span class ="tsd-kind-icon "> Method</ span > </ li >
134
+ < li class ="tsd-kind-index-signature tsd-parent-kind-interface "> < span class ="tsd-kind-icon "> Index signature</ span > </ li >
135
+ </ ul >
136
+ < ul class ="tsd-legend ">
137
+ < li class ="tsd-kind-class "> < span class ="tsd-kind-icon "> Class</ span > </ li >
138
+ < li class ="tsd-kind-class tsd-has-type-parameter "> < span class ="tsd-kind-icon "> Class with type parameter</ span > </ li >
139
+ < li class ="tsd-kind-constructor tsd-parent-kind-class "> < span class ="tsd-kind-icon "> Constructor</ span > </ li >
140
+ < li class ="tsd-kind-property tsd-parent-kind-class "> < span class ="tsd-kind-icon "> Property</ span > </ li >
141
+ < li class ="tsd-kind-method tsd-parent-kind-class "> < span class ="tsd-kind-icon "> Method</ span > </ li >
142
+ < li class ="tsd-kind-accessor tsd-parent-kind-class "> < span class ="tsd-kind-icon "> Accessor</ span > </ li >
143
+ < li class ="tsd-kind-index-signature tsd-parent-kind-class "> < span class ="tsd-kind-icon "> Index signature</ span > </ li >
144
+ </ ul >
145
+ < ul class ="tsd-legend ">
146
+ < li class ="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited "> < span class ="tsd-kind-icon "> Inherited constructor</ span > </ li >
147
+ < li class ="tsd-kind-property tsd-parent-kind-class tsd-is-inherited "> < span class ="tsd-kind-icon "> Inherited property</ span > </ li >
148
+ < li class ="tsd-kind-method tsd-parent-kind-class tsd-is-inherited "> < span class ="tsd-kind-icon "> Inherited method</ span > </ li >
149
+ < li class ="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited "> < span class ="tsd-kind-icon "> Inherited accessor</ span > </ li >
150
+ </ ul >
151
+ < ul class ="tsd-legend ">
152
+ < li class ="tsd-kind-property tsd-parent-kind-class tsd-is-protected "> < span class ="tsd-kind-icon "> Protected property</ span > </ li >
153
+ < li class ="tsd-kind-method tsd-parent-kind-class tsd-is-protected "> < span class ="tsd-kind-icon "> Protected method</ span > </ li >
154
+ < li class ="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected "> < span class ="tsd-kind-icon "> Protected accessor</ span > </ li >
155
+ </ ul >
156
+ < ul class ="tsd-legend ">
157
+ < li class ="tsd-kind-property tsd-parent-kind-class tsd-is-private "> < span class ="tsd-kind-icon "> Private property</ span > </ li >
158
+ < li class ="tsd-kind-method tsd-parent-kind-class tsd-is-private "> < span class ="tsd-kind-icon "> Private method</ span > </ li >
159
+ < li class ="tsd-kind-accessor tsd-parent-kind-class tsd-is-private "> < span class ="tsd-kind-icon "> Private accessor</ span > </ li >
160
+ </ ul >
161
+ < ul class ="tsd-legend ">
162
+ < li class ="tsd-kind-property tsd-parent-kind-class tsd-is-static "> < span class ="tsd-kind-icon "> Static property</ span > </ li >
163
+ < li class ="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static "> < span class ="tsd-kind-icon "> Static method</ span > </ li >
164
+ </ ul >
165
+ </ div >
166
+ </ div >
167
+ </ footer >
168
+ < div class ="container tsd-generator ">
169
+ < p > Generated using < a href ="http://typedoc.org/ " target ="_blank "> TypeDoc</ a > </ p >
170
+ </ div >
171
+ < div class ="overlay "> </ div >
172
+ < script src ="assets/js/main.js "> </ script >
173
+ < script > if ( location . protocol == 'file:' ) document . write ( '<script src="assets/js/search.js"><' + '/script>' ) ; </ script >
174
+ </ body >
175
+ </ html >
0 commit comments