{"id":20592546,"url":"https://github.com/mskims/dcoin-api","last_synced_at":"2026-06-23T22:02:50.210Z","repository":{"id":86557066,"uuid":"69623410","full_name":"mskims/dcoin-API","owner":"mskims","description":"💵 Digitech coin, called dcoin is an open-api that aims to secure the confidential transactions made in SDHS.","archived":false,"fork":false,"pushed_at":"2017-04-24T16:00:52.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T00:13:07.715Z","etag":null,"topics":["oauth2","openapi","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mskims.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-30T01:47:08.000Z","updated_at":"2018-08-16T02:11:06.000Z","dependencies_parsed_at":"2023-03-13T19:58:24.253Z","dependency_job_id":null,"html_url":"https://github.com/mskims/dcoin-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskims%2Fdcoin-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskims%2Fdcoin-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskims%2Fdcoin-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskims%2Fdcoin-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mskims","download_url":"https://codeload.github.com/mskims/dcoin-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242224078,"owners_count":20092366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oauth2","openapi","php"],"created_at":"2024-11-16T07:44:12.818Z","updated_at":"2026-06-23T22:02:50.204Z","avatar_url":"https://github.com/mskims.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Warning!\n고등학교 재학 시절 진행한 프로젝트이기 때문에, 코드가 굉장히 난해합니다. 이해 부탁드립니다.\n\n# dcoin-API\n디지텍코인 (이하 D코인)의 오픈 API입니다.\n\n# 기능\n거래내역 확인, 송금, 대출, 대출내역 확인, 유저 인증 및 토큰 발급\n\n## 에러코드\n* 001 토큰 불일치\n* 002 ID/PW 불일치\n\n# 샘플 사이트\nhttp://bet.kimminseok.info\n\nID ``01012341234``\nPW ``1234``\n\nID ``01012345678``\nPW ``1234``\n\n# flow\n## Get Code (Auth)\n```\nGET https://coin.digitech.wiki/auth/login\n  app_idx={app_idx},\n  redirect_url={redirect_url}\n```\nreturns ``{redirect_url}?code={CODE}``\n\n## Get AccessToken\n```\nGET/POST https://coin.digitech.wiki/auth/access_token\n  app_idx={app_idx},\n  client_secret={app_secret_code},\n  code={code},\n  expires=60*60*24\n```\nreturns \n```\naccess_token=Y89uJjP-PRQCFs1Q7jOmde03XK77ms45o2qNiPBJqsmGbgelYSKKGUPvdYlSKsTMwYDoebNrPdK6WX...\n```\n\n## Get AccessToken info\n```\nGET https://coin.digitech.wiki/api/token/info\n  access_token={access_token}\n```\nreturns\n```\n{\n    \"user_idx\": \"1000000001\",\n    \"scopes\": [\n        \"public_info\",\n        \"transfer_history\"\n    ],\n    \"created_at\": \"1475809152\",\n    \"expires_at\": \"1477809152\"\n}\n```\n\n## Transfer\n### Create Transfer\n```\nGET https://coin.digitech.wiki/api/transfer/create\n  user_idx={user_idx},\n  access_token={access_token},\n  user_to_account_number={user_to_account_number},\n  money={money},\n  redirect_url={redirect_url}\n```\nreturns\n```\n{\n  \"hash\": \"s1Q7jOmde03XPRQCFs1Q7jOmde03XK77ms45o2qNiPBJqsmGbgelYSKKGUPvdYlSKsTMwYDoebNrPdK6WX..\"\n}\n```\n### Auth Transfer\n```\nGET https://coin.digitech.wiki/auth/transfer\n  hash={hash},\n  redirect_url={redirect_url}\n```\nreturns ``{redirect_url}?hash={hash}``\n\n### Get Transfer History\n```\nGET https://coin.digitech.wiki/api/me/transfer_history\n  from={from[MIN=0]},\n  limit={limit[MAX=10]},\n  user_idx={user_idx},\n  access_token={access_token}\n```\nreturns\n```\n[\n  {\n    \"idx\": \"1\",\n    \"transfer_idx\": \"114\",\n    \"income\": \"false\",\n    \"money\": \"123\",\n    \"balance\": \"6617\",\n    \"type\": \"계좌이체\",\n    \"type_memo\": \"홍길동\",\n    \"memo\": \"\",\n    \"created_at\": \"1476667158\",\n    \"from\": {\n      \"name\": \"길쑨이\",\n      \"account_number\": \"01012341234\"\n    },\n    \"to\": {\n      \"name\": \"홍길동\",\n      \"account_number\": \"01012345678\"\n    }\n  },\n  {\n    \"idx\": \"2\",\n    \"transfer_idx\": \"113\",\n    \"income\": \"false\",\n    \"money\": \"123\",\n    \"balance\": \"6740\",\n    \"type\": \"계좌이체\",\n    \"type_memo\": \"홍길동\",\n    \"memo\": \"\",\n    \"created_at\": \"1476666666\",\n    \"from\": {\n      \"name\": \"길쑨이\",\n      \"account_number\": \"01012341234\"\n    },\n    \"to\": {\n      \"name\": \"홍길동\",\n      \"account_number\": \"01012345678\"\n    }\n  }\n]\n```\n\n\n## On Error\n```\n{\n  \"error\": {\n    \"type\": \"error_type\",\n    \"message\": \"Error message\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskims%2Fdcoin-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmskims%2Fdcoin-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskims%2Fdcoin-api/lists"}