その他実装:Vercel Functions Cloudflare Workers Deno Deploy
郵便番号・デジタルアドレスAPIのサーバーサイドのコードです。
IPアドレス 127.0.0.1 を設定してください
credentials.json
{
"grant_type": "client_credentials",
"client_id": "your-client_id",
"secret_key": "your-secret_key"
}
Important
公開ディレクトリに置かないように、credentials.json
やaccess_token.json
のパスを変更できます。
# .htaccessが有効な場合
curl http://example.com/1000001
# .htaccessが無効な場合
curl http://example.com/index.php?search_code=1000001