# api ### API server url: https://charitypapago.org/ ### getStatisticAndApplicantsTime(獲得統計資料) - input - eventType - eventID - sid (沒有時填 0) - return - 年齡 age(0-17,18-24,25-34,35-44,45-54,55-64,65-) - 性別比 gender(男, 女, 其他) - 得知管道 source(公益趴趴GO App 首頁活動列表", "公益趴趴GO App 官方粉絲團 (FB, IG)", "合作公益單位官網", "合作公益單位廣告文宣", "搜尋引擎 (Google, Yahoo, Bing, ...)", "學校推廣", "親朋好友告知", "其他") - 平均評分 avg_score(0~5)(可以有.5輸入 e.g. 3.5) - 實際報名人數 registration_num - 實際報到率 registration_rate(%) - 參加者資訊與個別服務時數 applicants - 時數是否發送 sendTimeStatus ```python { age: [10, 49, 72, 60, 30, 7, 12], gender: [40, 50, 10], source: [12, 19, 3, 3, 5, 3, 5, 3], avg_score: 4.5, registration_num: 40, registration_rate:86, applicants: [ { 'uid':uid,'name': '鮭魚湯', 'gender': '其他', 'birth': '4月12日', 'phone': '0923123123', 'email': 'w01@gmail.com', "time": "10" }, { 'uid':uid,'name': '鮭魚生魚片', 'gender': '男', 'birth': '4月12日', 'phone': '0923123123', 'email': 'wwqerq01@gmail.com', "time": "0" } ] sendTimeStatus: 0 # 0: 尚未發送時數 1: 已發送時數 } ``` ### sendApplicantsTime(更改服務時數) - input - eventType - eventID - changedTimeList #(STRING, {uid: time}) (e.g. {"34": 1, "88": 5}) - sid (沒有時填 0) - return - 成功:0 - 失敗:else ```python {"status",0} ```