Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example response for NodeJS #562

Open
MrSwitch opened this issue Dec 10, 2021 · 0 comments
Open

Example response for NodeJS #562

MrSwitch opened this issue Dec 10, 2021 · 0 comments

Comments

@MrSwitch
Copy link

Sample response is wrong on https://documentation.mailgun.com/en/latest/api-domains.html#example when using NodeJS

The documentation says...

{
    "items": [
        {
            "created_at": "Mon, 30 Sep 2019 16:20:48 GMT",
            "id": "55a55f40803267158aa113e8",
            "is_disabled": false,
            "name": "samples.mailgun.org",
            "require_tls": false,
            "skip_verification": false,
            "smtp_login": "[email protected]",
            "spam_action": "disabled",
            "state": "active",
            "type": "sandbox",
            "web_prefix": "email",
            "web_scheme": "http",
            "wildcard": false
        }
    ],
    "total_count": 1
}

However we're getting just an array...

[
        {
            "created_at": "Mon, 30 Sep 2019 16:20:48 GMT",
            "id": "55a55f40803267158aa113e8",
            "is_disabled": false,
            "name": "samples.mailgun.org",
            "require_tls": false,
            "skip_verification": false,
            "smtp_login": "[email protected]",
            "spam_action": "disabled",
            "state": "active",
            "type": "sandbox",
            "web_prefix": "email",
            "web_scheme": "http",
            "wildcard": false
        },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant