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

@cimpress/node-looker

Package Overview
Dependencies
Maintainers
9
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cimpress/node-looker

API wrapper for Looker API3 - OAuth2

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

node-looker

Introduction

This package is being developed since belt (v4.3) endpoints will not work with Looker.

Getting Started


var looker = require('@cimpress/node-looker')({
  clientId: 'yourclientid',
  clientSecret: 'yourclientsecret',
  // the rest are optional
  baseUrl: 'https://api.looker.cimba.cimpress.io:19999/api/3.0/', // default
  ttlOffset: 60, // expires the cached access token 60 seconds before it actually expires (default = 60)
  timeout: 60000, // number of milliseconds before timing out a looker query
  loginTimeout: 60000 // number of milliseconds before timing out a looker login request
});

looker({
  uri: '/user'
})
.then(res => {
  console.log(res.body);
});

Testing

Install dependencies yarn install, then run yarn run gulp.


➜  ct-node-looker git:(master) ✗ yarn run gulp
[14:15:57] Using gulpfile ~/git/ct-node-looker/gulpfile.js
[14:15:57] Starting 'test'...
[14:15:57] Finished 'test' after 7.78 ms
[14:15:57] Starting 'default'...
[14:15:57] Finished 'default' after 9.56 μs


  LookerClient
    ✓ should login only once


  1 passing (48ms)

➜  ct-node-looker git:(master) ✗

FAQs

Package last updated on 18 Jan 2018

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