Remove name and ID from structured answer template
parent
b5ea6bc894
commit
1b9b7a61ac
|
@ -35,15 +35,6 @@ handle <: $ia_handler :> => sub {
|
|||
return "plain text response",
|
||||
structured_answer => {
|
||||
|
||||
# ID - Must be unique and match Instant Answer page
|
||||
# E.g. https://duck.co/ia/view/calculator has `id => 'calculator'``
|
||||
id => '<: $ia_id :>',
|
||||
|
||||
# Name - Used for Answer Bar Tab
|
||||
# Value should be chosen from existing Instant Answer topics
|
||||
# see http://docs.duckduckhack.com/frontend-reference/display-reference.html#name-string-required
|
||||
name => 'Answer',
|
||||
|
||||
data => {
|
||||
title => "My Instant Answer Title",
|
||||
subtitle => "My Subtitle",
|
||||
|
|
|
@ -21,15 +21,6 @@ handle <: $ia_handler :> => sub {
|
|||
return "plain text response",
|
||||
structured_answer => {
|
||||
|
||||
# ID - Must be unique and match Instant Answer page
|
||||
# E.g. https://duck.co/ia/view/calculator has `id => 'calculator'``
|
||||
id => '<: $ia_id :>',
|
||||
|
||||
# Name - Used for Answer Bar Tab
|
||||
# Value should be chosen from existing Instant Answer topics
|
||||
# see https://duck.co/duckduckhack/display_reference#codenamecode-emstringem-required
|
||||
name => 'Answer',
|
||||
|
||||
data => {
|
||||
<: $ia_handler :> => \<: $ia_handler_var :>_
|
||||
},
|
||||
|
|
|
@ -17,8 +17,6 @@ DDH.<: $ia_id :> = DDH.<: $ia_id :> || {};
|
|||
|
||||
return {
|
||||
|
||||
id: '<: $ia_id :>',
|
||||
|
||||
meta: {
|
||||
sourceName: "Source Domain",
|
||||
sourceUrl: "https://source.website.com"
|
||||
|
|
Loading…
Reference in New Issue