|
|
|
Mendapatkan seluruh daftar pertanyaan
|
|
|
|
**(GET)** Mendapatkan seluruh daftar pertanyaan
|
|
|
|
|
|
|
|
## URI
|
|
|
|
```
|
| ... | ... | @@ -6,6 +6,7 @@ Mendapatkan seluruh daftar pertanyaan |
|
|
|
```
|
|
|
|
|
|
|
|
## Contoh
|
|
|
|
### Request
|
|
|
|
```
|
|
|
|
import requests
|
|
|
|
|
| ... | ... | @@ -15,3 +16,47 @@ response = requests.request("GET", url) |
|
|
|
|
|
|
|
print(response.text)
|
|
|
|
```
|
|
|
|
### Hasil
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"message": "sucessfully retrieve question list",
|
|
|
|
"questionList": {
|
|
|
|
"1": {
|
|
|
|
"is_active": 1,
|
|
|
|
"sender": "+62 856-4256-6090: ",
|
|
|
|
"answerer": null,
|
|
|
|
"answer": null,
|
|
|
|
"dup_with": null,
|
|
|
|
"is_queued": 0,
|
|
|
|
"tokenized_question": "eh;kenapa;ya;gagal;kembali;sampel;stlh;aku;ambil;sampel",
|
|
|
|
"question": "Eh kenapa ya gagal mengembalikan sampel stlh aku ambil sampel?",
|
|
|
|
"is_target": 0,
|
|
|
|
"timestamp": "15/02/2017 00:58"
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"is_active": 1,
|
|
|
|
"sender": "+62 856-4256-6090: ",
|
|
|
|
"answerer": null,
|
|
|
|
"answer": null,
|
|
|
|
"dup_with": null,
|
|
|
|
"is_queued": 0,
|
|
|
|
"tokenized_question": "trs;aku;unduh;es;jg;ga;bisa;has;stopped;gtu;padahal;tadi;pagi;sama;siang;sama;malem;sblm;malem;bgt;masih;bisa",
|
|
|
|
"question": "Trs aku unduh kues jg ga bisa has stopped gtu padahal tadi pagi sama siang sama malem sblm malem bgt masih bisa.",
|
|
|
|
"is_target": 0,
|
|
|
|
"timestamp": "15/02/2017 01:14"
|
|
|
|
},
|
|
|
|
"682": {
|
|
|
|
"is_active": 1,
|
|
|
|
"sender": "Panca Dwi Prabawa: ",
|
|
|
|
"answerer": null,
|
|
|
|
"answer": null,
|
|
|
|
"dup_with": null,
|
|
|
|
"is_queued": 0,
|
|
|
|
"tokenized_question": "dia;tinggal;di;rumah;kakak;listrik;air;ga;bayar;terus;dia;punya;toko;gas;tinggal;ambil;nah;di;keluar;tetap;isi",
|
|
|
|
"question": "dia tinggal di rumah kakaknya (listrik air ga bayar), terus dia punya toko (gas tinggal ambil), nah di pengeluaran tetap diisi?",
|
|
|
|
"is_target": 0,
|
|
|
|
"timestamp": "31/03/2017 17:12"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
``` |
|
|
\ No newline at end of file |