登入
login
輸入參數
| 參數 | 類別 | 說明 |
|---|---|---|
| personalID | String | 登入的ID |
| password | String | 登入的密碼 |
| certPath | String | 憑證路徑 |
| certPass | String | 憑證密碼 |
Result 回傳
| 參數 | 類別 | 說明 |
|---|---|---|
| isSuccess | bool | 是否成功 |
| data | List | 回傳帳號資訊 |
| message | string | 當isSuccess = False 回傳錯誤訊息 |
帳號資訊 Account 欄位
Return type : Object
| 參數 | 類別 | 說明 |
|---|---|---|
| name | String | 客戶姓名 |
| account | String | 客戶帳號 |
| branchNo | String | 分公司代號 |
| accountType | string | 帳號類型 回傳 stock 證券 futopt 期貨 |
請求範例
std::shared_ptr<fubon::FubonSDK> sdk = std::make_shared<fubon::FubonSDK>();
fubon::LoginResponse res = sdk->login("PersonalID", "Password", "Cert Path", "Cert Password");
回傳範例
// 搭配自定義 .cpp & hpp Output
{
isSuccess = true,
message = ,
data = [
Account{
name = 富邦Bill, // 客戶姓名 (string)
account = 28, // 客戶帳號 (string)
branchNo = 6460, // 分公司代號 (string)
accountType = stock // 帳號類型 (string)
}
]
}