documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Example response for NodeJS

Open MrSwitch opened this issue 4 years ago • 0 comments

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
        },
]

MrSwitch avatar Dec 10 '21 10:12 MrSwitch