0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Nuxt3を用いてqiitaAPIを取得する

Posted at

Qiita APIを用いてポートフォリオ用のブログページを作る

Nuxt3 を用いてホームページを作成する

フレームワークは現状使用しない

Blog PageをQiitaに投稿した記事を取得して表示させていく

useFetch()を使用して、Qiita APIを取得する
Qiitaの設定ぺージからbearer tokenを取得する

const { data, error } = (await useFetch(
  "https://qiita.com/api/v2/authenticated_user/items",
  {
    method: "get",
    headers: {
      Authorization: "Bearer //ここに取得したBearer Token",
    },
  }
)) as any;

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?