> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 開発者トークン

export const MultiRelatedLinks = ({sections = []}) => {
  if (!sections || sections.length === 0) {
    return null;
  }
  return <div className="space-y-8">
      {sections.map((section, index) => <RelatedLinks key={index} title={section.title} items={section.items} />)}
    </div>;
};

export const RelatedLinks = ({title, items = []}) => {
  const getBadgeClass = badge => {
    if (!badge) return "badge-default";
    const badgeType = badge.toLowerCase().replace(/\s+/g, "-");
    return `badge-${badge === "ガイド" ? "guide" : badgeType}`;
  };
  if (!items || items.length === 0) {
    return null;
  }
  return <div className="my-8">
      {}
      <h3 className="text-sm font-bold uppercase tracking-wider mb-4">{title}</h3>

      {}
      <div className="flex flex-col gap-3">
        {items.map((item, index) => <a key={index} href={item.href} className="py-2 px-3 rounded related_link hover:bg-[#f2f2f2] dark:hover:bg-[#111827] flex items-center gap-3 group no-underline hover:no-underline border-b-0">
            {}
            <span className={`px-2 py-1 rounded-full text-xs font-semibold uppercase tracking-wide flex-shrink-0 ${getBadgeClass(item.badge)}`}>
              {item.badge}
            </span>

            {}
            <span className="text-base">{item.label}</span>
          </a>)}
      </div>
    </div>;
};

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

<RelatedLinks
  title="必須のガイド"
  items={[
{ label: translate("Platform App"), href: "/guides/applications/platform-apps/index", badge: "GUIDE" }
]}
/>

開発者トークンは、開発およびテスト中に開発者が利用できるアクセストークンです。これらのトークンは60分後に期限切れになる有効期間の短いトークンであり、プログラムによって更新することはできません。

## 開発者トークンの作成

アプリケーション用に開発者トークンを作成するには:

* Box[開発者コンソール][devconsole]に移動し、開発者トークンの作成対象となるアプリケーションを選択します。
* \[**構成**] タブを選択します。
* \[開発者トークン] で、\[**開発者トークンを生成**] を選択します。

<Info>
  \[<Link href="/guides/applications">Platformアプリ</Link>] ビューから直接、各アプリに用意されているメニューを使用して、開発者トークンを生成することもできます。
</Info>

<Frame border center shadow>
  <img src="https://mintcdn.com/box/KBEcg4yicgc_HMRY/images/guides/authentication/developer-token.png?fit=max&auto=format&n=KBEcg4yicgc_HMRY&q=85&s=f4fcdb2d4e4595c846319baf92d024bf" alt="開発者トークンの生成" width="2329" height="950" data-path="images/guides/authentication/developer-token.png" />
</Frame>

## 開発者トークンの使用

開発者トークンは、さまざまなアクセストークンと同様、APIコールの`Authorization`ヘッダーで使用できます。

```sh theme={null}
curl https://api.box.com/2.0/users/me \
    -H "authorization: Bearer [DEVELOPER_TOKEN]"
```

<Warning>
  開発者トークンは、トークンの生成時に開発者コンソールにログインしているユーザーに関連付けられます。
</Warning>

Box SDKは、基本のAPIクライアントを作成する際に、開発者トークンを使用して初期化することができます。

```sh theme={null}
curl https://api.box.com/2.0/users/me \
    -H "authorization: Bearer [DEVELOPER_TOKEN]"
```

<Danger>
  **開発者トークンは実稼働環境で使用しないでください**

  開発者トークンは、開発またはテストのためだけに使用してください。
</Danger>

<Warning>
  開発者コンソールで特定のアプリの開発者トークンを明示的に取り消すと、そのアプリケーションによって作成されたすべてのWebhookが削除されます。
</Warning>

[devconsole]: https://app.box.com/developers/console

## SDKと開発者トークンの使用

各SDKの開発者トークンの詳細については、以下を参照してください。

* [.Net][.Net]

* [Java][Java]

* [Python][Python]

* [Node][Node]

* [IOS][IOS]

[.Net]: https://github.com/box/box-windows-sdk-v2/blob/legacy/docs/authentication.md#developer-token

[Java]: https://github.com/box/box-java-sdk/blob/legacy/doc/authentication.md#developer-token

[Python]: https://github.com/box/box-python-sdk/blob/legacy/docs/usage/authentication.md#developer-token

[Node]: https://github.com/box/box-node-sdk/blob/legacy/docs/authentication.md#developer-token

[IOS]: https://github.com/box/box-ios-sdk/blob/legacy/BoxSDK/docs/usage/authentication.md#developer-token

<RelatedLinks
  title="関連するガイド"
  items={[
{ label: translate("Select Auth Method"), href: "/guides/authentication/select", badge: "GUIDE" }
]}
/>
