Skip to content
Permalink
Browse files

Understand the entire response

dunno if this is necessary but it’s more complete
  • Loading branch information...
Reuven V. Gonzales
Reuven V. Gonzales committed Oct 23, 2014
1 parent 33a555d commit 0a81e101dfc92bd884fa66f1847defab3bc9c35e
Showing with 9 additions and 3 deletions.
  1. +9 −3 onepass/response.go
@@ -13,15 +13,21 @@ type Response struct {
}

type ResponsePayload struct {
Item ItemResponsePayload `json:"item"`
Item ItemResponsePayload `json:"item"`
Options map[string]interface{} `json:"options"`
OpenInTabMode string `json:"openInTabMode"`
}

type ItemResponsePayload struct {
SecureContents SecureContents `json:"secureContents"`
Uuid string `json:"uuid"`
NakedDomains []string `json:"nakedDomains"`
Overview map[string]interface{} `json:"overview"`
SecureContents SecureContents `json:"secureContents"`
}

type SecureContents struct {
Fields []map[string]string `json:"fields"`
HtmlForm map[string]interface{} `json:"htmlForm"`
Fields []map[string]string `json:"fields"`
}

func LoadResponse(rawResponseStr string) (*Response, error) {

0 comments on commit 0a81e10

Please sign in to comment.
You can’t perform that action at this time.