# URI-G-08 註冊帳號啟用 > [name=Tony Fan] ###### tags: `URI-G` `API規格` - 驗證token並啟用帳號 - 需要先取得 dynamic key(時效為5分) - 參考 [URI062](https://docs.google.com/spreadsheets/d/12U90GlZtqTFVemxzp5lFCv5l_eAZchVlOJN6xbRxDLI/edit#gid=0&range=A84) ## 網址 - path : `${TT-API網址}/domains/front/register-confirm` ## Input JSON Path - path : `${TT-API網址}/domains/front/register-confirm` - method : POST - query : 無 - body : ```=json { dynamicKey: <dynamicKey>, usid: <usid>, tokenValue: <tokenValue> } ``` ### 輸入參數說明 | 欄位名稱 | 欄位說明 | 型態 | 是否必要欄位 | | -------- | -------- | -------- | -------- | | dynamicKey | dynamic key| string | Y | | usid | 註冊會員的USID | String | Y | | tokenValue | 註冊時所發出的啟用碼 | String | Y | ## Output JSON Path ```=json { "code" : <code> , // 代碼,0:ok、 < 0: error 使用 "errorMsg" : <errorMsg> // 錯誤訊息 } ``` ### 輸出參數說明 - 回傳成功或是失敗 標準I/O結果輸出 | 欄位名稱 | 欄位說明 | 型態 | 是否可為空值 | | -------- | -------- | -------- | -------- | | code | 代碼 | number | N | | errorMsg | 錯誤訊息 | String | Y | * code : 0:ok、 < 0: error 使用 * 在此API, 0: ok 代表 啟用成功 / -1 : 啟用失敗 ## API 邏輯 參考 [URI-G-08 API邏輯](https://hackmd.io/tRabwWSfS62ikaDBM675Dw) (需有權限才能瀏覽) ## 範例 參考 [URI-G-08 測試案例](https://docs.google.com/spreadsheets/d/1Uf3sCngRTEi_VwhGliH-gGaT-By5c2I5qbwVFgEMpyc/edit#gid=1426594997)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up