🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@trd-clarkdwain/trd-box-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trd-clarkdwain/trd-box-sdk

Cloned SDK for Box Plaform APIs

latest
Source
npmnpm
Version
1.29.0
Version published
Maintainers
1
Created
Source

TRD BOX Module

Installation

npm install --save @trd-clarkdwain/trd-box-sdk

Getting Started

To get started with the SDK, get a Developer Token from the Configuration page of your app in the [Box Developer Console][dev-console]. You can use this token to make test calls for your own Box account.

var TrdBoxSDK = require('trd-box-sdk');

// Initialize the SDK with your app credentials
var sdk = new TrdBoxSDK({
  clientID: 'CLIENT_ID',
  clientSecret: 'CLIENT_SECRET'
});

// Create a basic API client, which does not automatically refresh the access token
var client = sdk.getBasicClient('DEVELOPER_TOKEN');

// Get your own user object from the Box API
// All client methods return a promise that resolves to the results of the API call,
// or rejects when an error occurs
client.users.get(client.CURRENT_USER_ID)
	.then(user => console.log('Hello', user.name, '!'))
	.catch(err => console.log('Got an error!', err));

Keywords

box

FAQs

Package last updated on 20 Jun 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