userinfo
web 呼叫範例
{
"name": "userinfo",
"data": null
}
app 回傳
Account
id: 使用者唯一序號
stringaccount: 使用者帳號
stringusername: 使用者名稱
stringrealName: 真實姓名
stringidNo: 身分證字號
stringemail: 電子郵件
stringphoneNo: 手機號碼
stringbirthday: 生日
stringmemberType: 會員類別
string"personal": 一般會員
"organization": 組織會員 "foreigner": 外籍人士 "employee": 北市府機關員工
verifyLevel: 會員驗證等級
string0: 未驗證
> 大於 0: 已實名addresses: 通訊地址
array[Address]Address:
zip3: 郵遞區號
intcity: 鄉鎮市
stringtown: 市區
stringvillage: 鄰里
stringstreet: 街道
stringusageType: 標記型態
string0: 其他
> 1: 住家
> 2: 公司seq: 序號
intpriority: 是否為預設地址
bool
residentAddress: 戶籍地址
stringcitizen: 是否為台北市民
boolnativePeople: 是否為原住民
boolcityInternetUid: 舊網路市民 ID
string
app 回傳範例
{
"name": "userinfo",
"data": {
"id": "7f3562f4-bb3f-4ec7-89b9-da3b4b5ff250",
"account": "wz7786",
"username": "Wesley",
"realName": "金大森",
"idNo": "A123456789",
"email": "ist83903@bcaoo.com",
"phoneNo": "0932166777",
"birthday": "1988/12/12",
"memberType": "personal",
"verifyLevel": "3",
"addresses": [
{
"zip3": 104,
"city": "臺北市",
"town": "中山區",
"village": "正得里",
"street": "吉林路",
"usageType": "0",
"seq": 1,
"priority": true
}
],
"residentAddress": "臺北市中山區吉林路 69 號 4 樓",
"citizen": true,
"nativePeople": false,
"cityInternetUid": ""
}
}
launch_map
web 呼叫範例
{
"name": "launch_map",
"data": "https://maps.app.goo.gl/sQKx4n3WctXuS5Bw8"
}
app 回傳
- bool: 可否開啟地圖功能
app 回傳範例
{
"name": "launch_map",
"data": true
}
phone_call
web 呼叫範例
{
"name": "phone_call",
"data": "02-1234-5678"
}
app 回傳
- bool: 可否開啟電話功能
app 回傳範例
{
"name": "phone_call",
"data": bool
}
location
web 呼叫範例
{
"name": "location",
"data": null
}
app 回傳
Position 詳見 GeoLocator - Position
accuracy: 水平精準度(公尺)
doublealtitude: 高度(公尺)
doublealtitudeaccuracy: 高度精準度(公尺)
_doublefloor: 樓層
int, nullableheading: 移動中的朝向方向
doubleheadingaccuracy: 移動中的朝向方向精準度(度)
_doubleismocked: 是否為模擬定位數據(Android API lvl 18 後版本)
_boollatitude: 緯度(-90.0(含) ~ +90.0(含))
doublelongitude: 經度(-180.0(不含) ~ +180.0(含))
doublespeed: 移動速度(公尺/秒)
doublespeedaccuracy: 移動速度精準度(公尺/秒)
_doubletimestamp: 當前數據取得時間(ms)
int
app 回傳範例
{
"name": "location",
"data": {
"longitude": -121.406417,
"latitude": 38.785834,
"timestamp": 1724466344054,
"accuracy": 5.0,
"altitude": 0.0,
"altitude_accuracy": 0.0,
"floor": null,
"heading": -1.0,
"heading_accuracy": -1.0,
"speed": 0.0,
"speed_accuracy": 0.0,
"is_mocked": true
}
}
deviceinfo
web 呼叫範例
{
"name": "deviceinfo",
"data": null
}
app 回傳範例
ios
{
"systemName": "iOS",
"isPhysicalDevice": false,
"utsname": {
"release": "23.6.0",
"sysname": "Darwin",
"nodename": "xxx-MBP",
"machine": "iPhone16,1",
"version": "Darwin Kernel Version xxx: ..."
},
"model": "iPhone",
"localizedModel": "iPhone",
"systemVersion": "17.x",
"name": "iPhone xxx",
"identifierForVendor": "xxx-xxx-xxxx-..."
}
android
可參考:android.os.Build
{
"product": "sdk_gphone64_arm64",
"supportedAbis": [
"arm64-v8a"
],
"serialNumber": "unknown",
"supported32BitAbis": [],
"display": "AP31.xxxx.xxx",
"type": "user",
"isPhysicalDevice": false,
"version": {
"baseOS": "",
"securityPatch": "2024-xx-xx",
"sdkInt": 34,
"release": "14",
"codename": "VanillaIceCream",
"previewSdkInt": 1,
"incremental": "11566045"
},
"systemFeatures": [
"android.hardware.sensor.proximity",
"android.software.adoptable_storage",
...
],
"manufacturer": "Google",
"tags": "release-keys",
"supported64BitAbis": [
"arm64-v8a"
],
"bootloader": "unknown",
"fingerprint": "google/sdk_gphone64_arm64/...",
"host": "x-xxx-...",
"isLowRamDevice": false,
"model": "sdk_gphone64_arm64",
"id": "AP31.xxxx.xxx",
"brand": "google",
"device": "emu64a",
"board": "goldfish_arm64",
"hardware": "xxxxxx"
}