{"id":15933707,"url":"https://github.com/neet/qiita-js-2","last_synced_at":"2026-05-10T18:53:27.432Z","repository":{"id":95247113,"uuid":"136344203","full_name":"neet/qiita-js-2","owner":"neet","description":"Modern Qiita v2 API client for Node/Browser","archived":false,"fork":false,"pushed_at":"2018-09-23T08:13:39.000Z","size":386,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T18:48:58.650Z","etag":null,"topics":["asynciterator","qiita","rest-client"],"latest_commit_sha":null,"homepage":"https://neet.github.io/qiita-js-2","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-06T14:54:46.000Z","updated_at":"2022-01-03T13:06:50.000Z","dependencies_parsed_at":"2023-04-06T15:47:03.518Z","dependency_job_id":null,"html_url":"https://github.com/neet/qiita-js-2","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neet%2Fqiita-js-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neet%2Fqiita-js-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neet%2Fqiita-js-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neet%2Fqiita-js-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neet","download_url":"https://codeload.github.com/neet/qiita-js-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605820,"owners_count":19989612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asynciterator","qiita","rest-client"],"created_at":"2024-10-07T02:41:45.437Z","updated_at":"2026-05-10T18:53:22.405Z","avatar_url":"https://github.com/neet.png","language":"TypeScript","funding_links":["https://www.patreon.com/neetshin'","https://c5.patreon.com/external/logo/become_a_patron_button.png'"],"categories":[],"sub_categories":[],"readme":"# qiita-js-2\n[![npm](https://img.shields.io/npm/v/qiita-js-2.svg)](https://www.npmjs.com/package/qiita-js-2)\n[![Build Status](https://travis-ci.com/neet/qiita-js-2.svg?branch=master)](https://travis-ci.com/neet/qiita-js-2)\n[![Maintainability](https://api.codeclimate.com/v1/badges/9eb161f2bd4b1f062c9c/maintainability)](https://codeclimate.com/github/neet/qiita-js-2/maintainability)\n\nModern Qiita v2 API client for Node/Browser\n\n## 使い方\n### パッケージををインストール\n```\nnpm i qiita-js-2 --save\n```\n\u003ca href='https://www.patreon.com/neetshin'\u003e\u003cimg src='https://c5.patreon.com/external/logo/become_a_patron_button.png' alt='Become a patron' width='140px' /\u003e\u003c/a\u003e\n\n### トークンを取得\nQiitaの[アプリケーションページ](https://qiita.com/settings/applications)を開き、新しいアクセストークンを発行します。\n\n![新しいアクセストークンを発行](https://i.imgur.com/LPtgosR.png)\n\nアクセストークンを発行します。説明と、必要に応じてスコープを付与し発行してください。\n\n![アクセストークンの発行](https://i.imgur.com/7yxJWmw.png)\n\n生成されたアクセストークンをコピーして保存してください。このトークンは以下で利用します。\n\n![アクセストークン](https://i.imgur.com/l6V6qmg.png)\n\n### 利用する\n```ts\n// Node.js\nconst { Qiita } = require('qiita-js-2');\n// TypeScript あるいは Babel\nimport { Qiita } from 'qiita-js-2';\n\nconst client = new Qiita({\n  token: 'ここにトークンを指定します',\n});\n\n// 例: ユーザーを取得する\nclient.fetchUser('neetshin').then((user) =\u003e {\n  console.log(user);\n})\n\n// 例: 新規投稿をする\nclient.createItem({\n  title: '新しい投稿',\n  body:  'これは新しい投稿です',\n  tags:  [{ name: 'Test', version: '0.0.1' }],\n  gist:    false,\n  twitter: false,\n  private: false,\n}).then((newItem) =\u003e {\n  console.log(newItem);\n});\n```\n\n利用可能なすべてのメソッドのドキュメントは[こちらからご覧いただけます](https://neet.github.io/qiita-js-2/classes/_client_qiita_.qiita.html)。\n\n\n## 開発\n開発に必要なパッケージをインストールします\n```\nyarn --pure-lockfile\n```\n\n下記のコマンドでビルドします\n```\nyarn run test       # テストを実行します\nyarn run build      # JSをビルドします\nyarn run docs:build # ドキュメントを生成します。\n```\n\n## Maintainers\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/neet\"\u003e\n          \u003cimg width=\"120\" height=\"120\" src=\"https://github.com/neet.png?size=120\"\u003e\n          \u003c/br\u003e\n          Neetshin\n        \u003c/a\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003ctbody\u003e\n\u003c/table\u003e\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneet%2Fqiita-js-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneet%2Fqiita-js-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneet%2Fqiita-js-2/lists"}