Created
May 2, 2016 09:45
-
-
Save IndianGuru/1a640a740fd869059b6ac0df435cd0cf to your computer and use it in GitHub Desktop.
Sample Response Struct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type QResponse struct { | |
ID string `json:"id"` | |
Timestamp time.Time `json:"timestamp"` | |
Result struct { | |
Source string `json:"source"` | |
ResolvedQuery string `json:"resolvedQuery"` | |
Action string `json:"action"` | |
ActionIncomplete bool `json:"actionIncomplete"` | |
Parameters struct { | |
Name string `json:"name"` | |
} `json:"parameters"` | |
Contexts []struct { | |
Name string `json:"name"` | |
Parameters struct { | |
Name string `json:"name"` | |
} `json:"parameters"` | |
Lifespan int `json:"lifespan"` | |
} `json:"contexts"` | |
Metadata struct { | |
IntentID string `json:"intentId"` | |
IntentName string `json:"intentName"` | |
} `json:"metadata"` | |
Fulfillment struct { | |
Speech string `json:"speech"` | |
} `json:"fulfillment"` | |
} `json:"result"` | |
Status struct { | |
Code int `json:"code"` | |
ErrorType string `json:"errorType"` | |
} `json:"status"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment