Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mailinabox-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailinabox-api

Client SDK for the Mail-in-a-Box API

  • 0.47.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mailinabox-api

Build & Publish

JavaScript/TypeScript client SDK for the Mail-in-a-Box API.

  • API version: 0.47.0
  • Package version: 0.47.0

https://www.npmjs.com/package/mailinabox-api

NOTE: This package is auto-generated from the Mail-In-A-Box OpenAPI spec.

Installing

npm install mailinabox-api --save

Usage

import {
  AliasesApi,
  Configuration,
  ConfigurationParameters,
  DnsApi,
  MailUsersResponseFormat,
  SslApi,
  SystemApi,
  UserApi,
  UsersApi,
  WebApi,
} from 'mailinabox-api';

const apiConfigParams: ConfigurationParameters = {
  basePath: '/admin',
  username: 'YOUR_USERNAME',
  password: 'YOUR_PASSWORD'
};

const apiConfig = new Configuration(apiConfigParams);

const userApi = new UserApi(apiConfig);
const systemApi = new SystemApi(apiConfig);
const sslApi = new SslApi(apiConfig);
const dnsApi = new DnsApi(apiConfig);
const mailApi = new MailApi(apiConfig);
const webApi = new WebApi(apiConfig);

// example request
const users = await usersApi.getMailUsers({
  format: MailUsersResponseFormat.Json,
});

License

MIT License

Copyright (c) 2020 Richard Willis

Keywords

FAQs

Package last updated on 06 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc