Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

スタンプを取得できるようにする #249

Open
mehm8128 opened this issue Sep 17, 2023 · 0 comments
Open

スタンプを取得できるようにする #249

mehm8128 opened this issue Sep 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mehm8128
Copy link
Contributor

以下のような感じに書いて、stampImgSrcをimgタグのsrc属性に入れれば表示できた

onMounted(async () => {
  const res = await fetch(
    `https://q.trap.jp/api/v3/stamps/${stampId}/image`,
    {
      headers: {
        Authorization: 'Bearer なんたら'
      }
    }
  )
  const blob = await res.blob()
  const stampImgSrc = URL.createObjectURL(blob)
})
@mehm8128 mehm8128 added the enhancement New feature or request label Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant