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

appygram

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

appygram

appygram module to talk to @appygram messaging service

  • 0.1.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Appygram-node

An Appygram connector

##Build Status

Build
Status

##Usage

Express

  var appygram = require('appygram');
  ...
  //Make sure to use app.router; otherwise this middleware will not work
  app.use(app.router);
  appygram.setApiKey('your_api_key');
  app.use(appygram.errorHandler);

appygram lets you add a user object to the trace it sends. It defaults to not sending a user object. To enable do

appygram.include_user = true;

It defaults to the location of req['user']. To change this do

appygram.user_location = "user_session_obj"

Note appygram only will support the user location if it is in the req object.

To change the 'software' set with a trace object do

appygram.app_name = "my awesome express app"

Otherwise it will default to "node application"

If you need to reset the appygram object for some reason a method is exposed to handle this for you.

appygram.reset_to_default();

You can see some basic examples here.

Example app

###Basic sendFeedback Method

  var appygram = require('appygram');
  appygram.setApiKey('api_key');
  appygram.sendFeedback({
   name:'Will',
   topic:'Feedback',
   message:'I am sending an appygram!',
   email:'w.laurance@gmail.com'
  }, function(){
    //done sending feedback
  });

Most of the options for the express route are available to this method with the exception of the include user option.

FAQs

Package last updated on 15 Sep 2013

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