New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

maygaserver

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maygaserver

A nodejs wrapper for mayga messaging API to enable in app messaging

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

maygaserver-nodejs

A nodejs wrapper for mayga (mayga.me) messaging API to enable in app messaging

Installation Instructions :

Download and Install lib/maygaserver.js in your lib

or

use "npm install maygaserver -g"

Usage :

if installed by downloading the file

var maygaserver = require('./lib/maygaserver');

for NPM based install

var maygaserver = require('maygaserver');

maygaserver.initialize(credentials, options);

(required) credentials : (required) clientId from mayga.me (required) clientSecret from mayga.me

(optional) options : (optional) debugOn = true / false (optional) server = restify or express server object (optional) endpoint = endpoint url to expose this api default : /integration/mayga/getToken/:userEmail

List of API's supported by the library.

###Add a new User

    maygaserver.addNewAppUser(userEmail,callback)

###Get Authroization Token for server side integration

    maygaserver.getAuthToken(callback);

###Get Authroization Token on behalf of the user for client side integration

    maygaserver.getUserToken(email, callback);

###Example :

maygaserver.initialize({clientId:"abcdeg",clientSecret:"qwerty"},{debugOn:true});
maygaserver.addNewAppUser("welcometomayga@mayga.me",function(err,user) {
    	console.dir(user);
    	mayga.getUserToken("welcometomayga@mayga.me",function(err,token) {
            	console.dir(token);
    	});
});

Keywords

FAQs

Package last updated on 10 Sep 2014

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