---
# System prepended metadata

title: 金曲動漫之夜 API

---

---
title : 金曲動漫之夜 API
---

apiRoot: https://script.google.com/macros/s/AKfycbw05andx9kwURPaS_MTfpPxknZWigGtAtrIJXEFX-TJjbDBhKiYIRae2fu_sEtue-eJ/exec

# 查詢 by email
```
$ Get  apiRoot?{email}
```
## example
https://script.google.com/macros/s/AKfycbw05andx9kwURPaS_MTfpPxknZWigGtAtrIJXEFX-TJjbDBhKiYIRae2fu_sEtue-eJ/exec?mike_test

## return 

``` json
{
   "email":"mike_test",
   "uuid":"2163561725376125367123",
   "check_tag":"",
   "is_send":"",
   "have_mail":true
}
```

# 將is_send 改為1 (代表已經傳過了)
``` json
$ Post apiRoot
```
```
package :{
        'email': 'mike_test',
        'action':'send',
        }
```

# 設定uuid
``` json
$ Post apiRoot
```
```
package {
        'email': 'mike_test',
        'action':'setUUID',
        'uuid':'2163561725376125367123'}
```

# Check In
```
$ Post apiRoot
```

```json
{
        
        'action':'checkIn',
        'uuid':'c9aa1b32-3cd5-4c4e-8cbc-a2ce311dec01'
}
```
## return 
### Success

有此QRCode 且還未進場
```json
{
    "action":"checkIn",
    "message":"successful"
}
```
### duplicate
有此QRCode 但已經使用過了
```json
{
    "action":"checkIn",
    "message":"is duplicate"}
```
### Can not find
查無此QRCode

```json
{
    "action":"checkIn",
    "message":"Can not find uuid c9aa1b32-3cd5-4c4e-8cbc-a2ce311d\\c01"
}
```

