File tree Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -672,20 +672,31 @@ export class Qiita extends Gateway {
672672 * アクセストークンに紐付いたユーザを返します。
673673 * @return 認証中のユーザ
674674 */
675- public fetchMe = ( ) => {
675+ public fetchAuthenticatedUser = ( ) => {
676676 return this . get < AuthenticatedUser > ( `${ this . url } ${ this . version } /authenticated_user` ) ;
677677 }
678678
679679 /**
680680 * 認証中のユーザの投稿の一覧を作成日時の降順で返します。
681- * @param page ページ番号 (1から100まで)
682- * @param perPage 1ページあたりに含まれる要素数 (1から100まで)
681+ * @param options. page ページ番号 (1から100まで)
682+ * @param options.per_page 1ページあたりに含まれる要素数 (1から100まで)
683683 * @return 投稿一覧を返す非同期反復可能オブジェクト
684684 */
685- public fetchMyItems = ( page : string , perPage : string ) => {
686- return this . paginationGenerator < Item [ ] > ( `${ this . url } ${ this . version } /authenticated_user/items` , {
687- page,
688- per_page : perPage ,
689- } ) ;
685+ public fetchAuthenticatedUserItems = ( options ?: options . PaginationOptions ) => {
686+ return this . paginationGenerator < Item [ ] > ( `${ this . url } ${ this . version } /authenticated_user/items` , options ) ;
690687 }
688+
689+ /**
690+ * `Qiita.fetchAuthenticatedUser` のシノニムです
691+ * @return 認証中のユーザ
692+ */
693+ public fetchMe = ( ) => this . fetchAuthenticatedUser ( ) ;
694+
695+ /**
696+ * `Qiita.fetchAuthenticatedUserItems` のシノニムです
697+ * @param options.page ページ番号 (1から100まで)
698+ * @param options.per_page 1ページあたりに含まれる要素数 (1から100まで)
699+ * @return 投稿一覧を返す非同期反復可能オブジェクト
700+ */
701+ public fetchMyItems = ( options ?: options . PaginationOptions ) => this . fetchAuthenticatedUserItems ( options ) ;
691702}
You can’t perform that action at this time.
0 commit comments