Skip to content
๐Ÿ’ต Digitech coin, called dcoin is an open-api that aims to secure the confidential transactions made in SDHS.
PHP ApacheConf
Branch: master
Clone or download
Fetching latest commitโ€ฆ
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
application
public/images
.env.example
.gitignore
.htaccess
LICENSE
PITCHME.md
README.md
composer.json
index.php

README.md

Warning!

๊ณ ๋“ฑํ•™๊ต ์žฌํ•™ ์‹œ์ ˆ ์ง„ํ–‰ํ•œ ํ”„๋กœ์ ํŠธ์ด๊ธฐ ๋•Œ๋ฌธ์—, ์ฝ”๋“œ๊ฐ€ ๊ต‰์žฅํžˆ ๋‚œํ•ดํ•ฉ๋‹ˆ๋‹ค. ์ดํ•ด ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

dcoin-API

๋””์ง€ํ…์ฝ”์ธ (์ดํ•˜ D์ฝ”์ธ)์˜ ์˜คํ”ˆ API์ž…๋‹ˆ๋‹ค.

๊ธฐ๋Šฅ

๊ฑฐ๋ž˜๋‚ด์—ญ ํ™•์ธ, ์†ก๊ธˆ, ๋Œ€์ถœ, ๋Œ€์ถœ๋‚ด์—ญ ํ™•์ธ, ์œ ์ € ์ธ์ฆ ๋ฐ ํ† ํฐ ๋ฐœ๊ธ‰

์—๋Ÿฌ์ฝ”๋“œ

  • 001 ํ† ํฐ ๋ถˆ์ผ์น˜
  • 002 ID/PW ๋ถˆ์ผ์น˜

์ƒ˜ํ”Œ ์‚ฌ์ดํŠธ

http://bet.kimminseok.info

ID 01012341234 PW 1234

ID 01012345678 PW 1234

flow

Get Code (Auth)

GET https://coin.digitech.wiki/auth/login
  app_idx={app_idx},
  redirect_url={redirect_url}

returns {redirect_url}?code={CODE}

Get AccessToken

GET/POST https://coin.digitech.wiki/auth/access_token
  app_idx={app_idx},
  client_secret={app_secret_code},
  code={code},
  expires=60*60*24

returns

access_token=Y89uJjP-PRQCFs1Q7jOmde03XK77ms45o2qNiPBJqsmGbgelYSKKGUPvdYlSKsTMwYDoebNrPdK6WX...

Get AccessToken info

GET https://coin.digitech.wiki/api/token/info
  access_token={access_token}

returns

{
    "user_idx": "1000000001",
    "scopes": [
        "public_info",
        "transfer_history"
    ],
    "created_at": "1475809152",
    "expires_at": "1477809152"
}

Transfer

Create Transfer

GET https://coin.digitech.wiki/api/transfer/create
  user_idx={user_idx},
  access_token={access_token},
  user_to_account_number={user_to_account_number},
  money={money},
  redirect_url={redirect_url}

returns

{
  "hash": "s1Q7jOmde03XPRQCFs1Q7jOmde03XK77ms45o2qNiPBJqsmGbgelYSKKGUPvdYlSKsTMwYDoebNrPdK6WX.."
}

Auth Transfer

GET https://coin.digitech.wiki/auth/transfer
  hash={hash},
  redirect_url={redirect_url}

returns {redirect_url}?hash={hash}

Get Transfer History

GET https://coin.digitech.wiki/api/me/transfer_history
  from={from[MIN=0]},
  limit={limit[MAX=10]},
  user_idx={user_idx},
  access_token={access_token}

returns

[
  {
    "idx": "1",
    "transfer_idx": "114",
    "income": "false",
    "money": "123",
    "balance": "6617",
    "type": "๊ณ„์ขŒ์ด์ฒด",
    "type_memo": "ํ™๊ธธ๋™",
    "memo": "",
    "created_at": "1476667158",
    "from": {
      "name": "๊ธธ์‘จ์ด",
      "account_number": "01012341234"
    },
    "to": {
      "name": "ํ™๊ธธ๋™",
      "account_number": "01012345678"
    }
  },
  {
    "idx": "2",
    "transfer_idx": "113",
    "income": "false",
    "money": "123",
    "balance": "6740",
    "type": "๊ณ„์ขŒ์ด์ฒด",
    "type_memo": "ํ™๊ธธ๋™",
    "memo": "",
    "created_at": "1476666666",
    "from": {
      "name": "๊ธธ์‘จ์ด",
      "account_number": "01012341234"
    },
    "to": {
      "name": "ํ™๊ธธ๋™",
      "account_number": "01012345678"
    }
  }
]

On Error

{
  "error": {
    "type": "error_type",
    "message": "Error message"
  }
}
You canโ€™t perform that action at this time.