Skip to content

Instantly share code, notes, and snippets.

@bradgignac
Created October 9, 2014 17:37
Show Gist options
  • Save bradgignac/a01e25466493d27ea32f to your computer and use it in GitHub Desktop.
Save bradgignac/a01e25466493d27ea32f to your computer and use it in GitHub Desktop.
mailgun-js
// GET /v2/domains
mg.domains.all().then(function (domains) {});
// GET /v2/domains?some=parameters
mg.domains.find({ some: parameters }).then(function (domains) {});
// GET /v2/domains/id
mg.domains.find(id).then(function (domain) {});
@bradgignac
Copy link
Author

Needs to cover:

  • Creation without a collection.
  • Creation with a collection.
  • Modification without a collection.
  • Modification without a model.
  • Modification with a collection.
  • Modification with a model.
  • Deletion without a collection.
  • Deletion without a model.
  • Deletion with a collection.
  • Deletion with a model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment