dimaskiddo / go-whatsapp-cli

Go WhatsApp Implementation in Command-Line Interface (CLI)
8 stars 5 forks source link

not an object or array #1

Closed breadpanz closed 5 years ago

breadpanz commented 5 years ago

https://github.com/dimaskiddo/go-whatsapp-cli/blob/f6da68216c7f7374ab594987c35e0b96a8eb9dad/helper/h_cmd.go#L100

sample request

{
  "command": "request",
  "message": "Example:",
  "curl": {
    "url": "https://httpbin.org/post",
    "form": ["key1=value1","key2=value2"]
  }
},
breadpanz commented 5 years ago

Issue fixed change the line to: forms, err := cmd.Path("curl.form").Children()

dimaskiddo commented 5 years ago

Just fix it in current release, thanks for checking it 😄