Skip to content

郵便番号・デジタルアドレスAPIのサーバーサイドのコードです。 レンタルサーバーやVPSやe2-microなどのクラウドサーバーで動作します。

License

Notifications You must be signed in to change notification settings

GitHub30/digital-address.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

その他実装:Vercel Functions Cloudflare Workers Deno Deploy

郵便番号・デジタルアドレスAPI

郵便番号・デジタルアドレスAPIのサーバーサイドのコードです。

セットアップ

0. システム登録

IPアドレス 127.0.0.1 を設定してください

image

1. index.phpと.htaccessをアップロード

2. credentials.jsonの作成

credentials.json

{
    "grant_type": "client_credentials",
    "client_id": "your-client_id",
    "secret_key": "your-secret_key"
}

Important

公開ディレクトリに置かないように、credentials.jsonaccess_token.jsonのパスを変更できます。

3. 動作確認

# .htaccessが有効な場合
curl http://example.com/1000001
# .htaccessが無効な場合
curl http://example.com/index.php?search_code=1000001

About

郵便番号・デジタルアドレスAPIのサーバーサイドのコードです。 レンタルサーバーやVPSやe2-microなどのクラウドサーバーで動作します。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages