Comments (4)
The response from the API is returning:
{
"list": {
"access_level": "readonly",
"address": "[email protected]",
//...
}
But the model you're trying to json serialise it into is mailingListResponse
, which uses member
:
type mailingListResponse struct {
MailingList MailingList `json:"member"`
}
var resp mailingListResponse
err = response.parseFromJSON(&resp)
return resp.MailingList, err
Which is probably why resp.MailingList is not being set.
from mailgun-go.
Is no one monitoring or maintaining this library? You'd expect someone to be doing this given it's an official repo.
Does that mean this code is not being security patched and Dependabot patches aren't being applied?
from mailgun-go.
Looks like I introduced this error when I converted the library to local testing. I'll have a PR up in a few moments.
from mailgun-go.
New Release https://github.com/mailgun/mailgun-go/releases/tag/v4.12.0
from mailgun-go.
Related Issues (20)
- ListMembers: vars duplicated on subsequent pages HOT 1
- Remove dependancy on Chi
- Make fields public in struct `mailgun.Message`. HOT 3
- SetDeliveryTime Ignored HOT 1
- Change response for `VerifyDomain` method from (string, error) to (DomainResponse, error) HOT 2
- How to convert json stored messages to url.Values HOT 1
- Make properties on Message struct publicly accessible HOT 2
- missing `result` in email validation response HOT 4
- VerifyAndReturnDomain is missing from the Mailgun interface
- Validate domain in mg.Send()
- Allow to use : in domain for testing HOT 2
- Inline image example should have img tag in html input HOT 1
- events.ClientInfo is missing the `bot` field HOT 2
- Add 'web_scheme' as a primary attribute to Domain HOT 3
- Set preferred reply method for mailing lists missing HOT 1
- [Feature Request] Add Send Time Optimization (STO) Feature HOT 3
- Ability to add multiple webhooks for same events.
- panic: runtime error: invalid memory address or nil pointer dereference On GetStoredAttachment
- SDK doesn't return errors for email send failures
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailgun-go.