https://github.com/ehanlin/zongzi106
https://github.com/ehanlin/zongzi106
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ehanlin/zongzi106
- Owner: eHanlin
- Created: 2018-03-22T06:40:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T08:39:24.000Z (about 8 years ago)
- Last Synced: 2025-10-24T09:36:25.874Z (8 months ago)
- Size: 16.6 MB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zongzi106
## 考運活動簡訊 API
1. 僅支援 HTTP POST 方法
2. 參數
- name (姓名)
- mobile (手機)
- gift (禮物序號)
使用 jQuery 範例如下
```javascript
var url = "https://wa74g5em51.execute-api.ap-northeast-1.amazonaws.com/prod/ms-zongzi"
var body = {name: "R", gift: 1, mobile: "0952716990"}
$.post(url, JSON.stringify(body), function(resp) {console.log(resp)})
/* console output:
{
"data":{
"name":"rodick",
"mobile":"0952716990",
"gift":5
},
"message-request":"d3e2ba3c-4875-480c-ad36-4a297be45eff"
}
*/