🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

rackspace-email-api-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

rackspace-email-api-wrapper

Lambda Helpers that are completely Async / Await capable

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Rackspace Email API Wrapper

npm pack age

Version Build Status

Maintainability Test Coverage Greenkeeper badge

Weekly Downloads Monthly Downloads Yearly Downloads

Issues Pull Requests

Dependencies Dev Dependencies

Rackspace Email API Wrapper is a wrapper for making calls to Rackspace's Email API

Rackspace Documentation

Installation

yarn install rackspace-email-api-wrapper

Getting Started

const rackspace = require('rackspace-email-api-wrapper');

rackspace.init(YOUR_USER_KEY, YOUR_SECRET_KEY);

const getCustomer = async () => {
	const response = await rackspace.api('GET', `/customers?startswith=UserName`);

	console.log(response);

	// OR

	rackspace.api('GET', `/customers?startswith=UserName`).then((response) => {
		console.log(repsonse);
	});
};

const createCustomer = async () => {
	const response = await rackspace.api('POST', '/customers', {
		name: 'UserName',
	});

	console.log(response);

	// OR

	rackspace
		.api('POST', '/customers', {
			name: 'UserName',
		})
		.then((response) => {
			console.log(repsonse);
		});
};

API

init - init(key, secret)

The init method sets the key and secret used for authenticating the API calls

api - api(method, url, payload)

The api method creates a signed request and parses the response. It returns a promise that can be awaited if you are using asycn / await

FAQs

Package last updated on 28 Feb 2019

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