var data []resources.Sender
mr := &mailjet.Request{
Resource: "sender",
ID: int64(18642),
}
err := mjClient.Get(mr, &data)
And I get empty data[0].DNS despite the DNS is visible when I'm using Postman, but the field is called DNSID there.
The problem might be in unmarshaling of json response since DNS field in a struct doesn't match DNSID field in json.
I'm trying to fetch a sender
And I get empty data[0].DNS despite the DNS is visible when I'm using Postman, but the field is called DNSID there. The problem might be in unmarshaling of json response since DNS field in a struct doesn't match DNSID field in json.