File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ You can create in https://qiita.com/settings/applications"
76
76
" Cache a result of `helm-qiita-get-url' .
77
77
DO NOT SET VALUE MANUALLY." )
78
78
79
+ (defvar helm-qiita-api-per-page 20
80
+ " Page size of Qiita API.
81
+ See https://qiita.com/api/v2/docs" )
82
+
79
83
(defvar helm-qiita-curl-program nil
80
84
" Cache a result of `helm-qiita-find-curl-program' .
81
85
DO NOT SET VALUE MANUALLY." )
@@ -298,11 +302,12 @@ PROCESS is a http-request process."
298
302
" Return Qiita URL or error if `helm-qiita-username' is nil."
299
303
(unless helm-qiita-username
300
304
(error " Variable `helm-qiita-username' is nil " ))
301
- (format " https://%s /api/v2/users/%s /stocks?page=1&per_page=20 "
305
+ (format " https://%s /api/v2/users/%s /stocks?page=1&per_page=%d "
302
306
(if (stringp helm-qiita-organization)
303
307
(concat helm-qiita-organization " .qiita.com" )
304
308
" qiita.com" )
305
- helm-qiita-username))
309
+ helm-qiita-username
310
+ helm-qiita-api-per-page))
306
311
307
312
(defun helm-qiita-find-curl-program ()
308
313
" Return an appropriate `curl' program pathname or error if not found."
You can’t perform that action at this time.
0 commit comments