This repository was archived by the owner on Mar 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 286
286
(format nil " user_timeline/~A .json" target)
287
287
" user_timeline.json" )))
288
288
289
- (defun url-friends_timeline (&optional target)
289
+ (defun url-friends_timeline (&optional target count )
290
290
(concat *api-url-root*
291
291
" statuses/"
292
292
(if target
293
- (format nil " friends_timeline/~A .json" target)
294
- " friends_timeline.json" )))
293
+ (format nil " friends_timeline/~A .json?count= ~A " target count )
294
+ ( format nil " friends_timeline.json?count= ~A " count ) )))
295
295
(defun url-replies_timeline ()
296
296
(concat *api-url-root*
297
297
" statuses/"
Original file line number Diff line number Diff line change 223
223
(format nil " user_timeline/~A .xml" target)
224
224
" user_timeline.xml" )))
225
225
226
- (defun url-friends_timeline (&optional target)
226
+ (defun url-friends_timeline (&optional target count )
227
227
(concat *api-url-root*
228
228
" statuses/"
229
229
(if target
230
- (format nil " friends_timeline/~A .xml" target)
231
- " friends_timeline.xml" )))
230
+ (format nil " friends_timeline/~A .xml?count= ~A " target count )
231
+ ( format nil " friends_timeline.xml?count= ~A " count ) )))
232
232
233
233
(defun url-replies_timeline ()
234
234
(concat *api-url-root*
Original file line number Diff line number Diff line change 127
127
(junk ::junk-http-add-header " X-Twitter-Client" *client-name* headers)
128
128
(junk ::junk-http-add-header " X-Twitter-Client-Version" *client-version* headers)
129
129
(when *client-url*
130
- (junk ::junk-http-add-header " X-Twitter-Client-Url " *client-url* headers))
130
+ (junk ::junk-http-add-header " X-Twitter-Client-URL " *client-url* headers))
131
131
(when (and username password)
132
132
(junk ::junk-http-add-header " Authorization"
133
133
(concat " Basic "
245
245
(fetch-statuses url tmpfile headers force)))
246
246
247
247
(defun statuses-friends_timeline (username password &optional force target)
248
- (let* ((url (url-friends_timeline target))
248
+ (let* ((url (url-friends_timeline target *summary-friends-timeline-count* ))
249
249
(tmpfile (local-file url username))
250
250
(headers (create-request-headers username password)))
251
251
(fetch-statuses url tmpfile headers force)))
Original file line number Diff line number Diff line change 52
52
; (setq *summary-search-max* 20)
53
53
; ; 検索時の言語指定
54
54
; (setq *search-lang* "ja")
55
+ ; ; friends-timeline で取得する件数
56
+ ; (setq *summary-friends-timeline-count* 20)
Original file line number Diff line number Diff line change 27
27
; (defvar *summary-search-history* nil)
28
28
; (defvar *summary-search-histroy-max* 10)
29
29
30
+ (defvar *summary-friends-timeline-count* 20 )
31
+
30
32
(defvar *summary-regexp-keyword-list*
31
33
(compile-regexp-keyword-list
32
34
' (
You can’t perform that action at this time.
0 commit comments