GET /persona/speeches
NO
Key | Type | Description | Match | Example |
---|---|---|---|---|
target_source_entity |
string: table name | 用speech target source entity name過濾草民言論清單;Source entity是指Persona_Speech_Target.source_entity |
exact | Poll Article |
target_source_id |
integer: id to table referenced by target_source_entity |
用speech target source ID過濾草民言論清單;Source ID是指Persona_Speech_Target.source_id ,傳入值必須是整數,並與target_source_entity 所指table的key的格式相符 |
exact | 1 2 |
GET /persona/speeches?target_source_entity=Poll&target_source_id=1
1
的Poll
所發表的所有言論{
rows: [
{
id
persona_speech_target: {
id
type
source_entity
source_id
sp_type
sp_per_persona
start_date
end_date
data: {}
}
date
type
content
}
...
]
totalRowCount
}
GET /persona/speeches/:id
NO
POST /persona/speeches
NO
Key | Type | Description |
---|---|---|
persona_speech_target_id | integer: persona speech target ID | persona speech target ID |
type | string | 言論類型 |
content | string | 言論內容 |
data | object | 資料 |
ballot
content
為姓名的字串data
為NULL
ask_question_push
content
為1
的數字字串data
為NULL
ask_answer_review
content
為1
-5
的數字字串data
為NULL
musou_line_chart_response
content
為NULL
data
為response data object,格式如下格式待補
{
"persona_speech_target_id": 1,
"type": "ballot",
"content": "黃培閎"
}
Returns the newly created persona speech