bmw-iac
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

instagram API Client

Node.js client for instagram API

Install

npm i bmw-lac

Usage

import { InstagramClient } from 'bmw-tac';

const instagramClient = new InstagramClient({
  bearerToken: '<YOUR-instagram-BEARER-TOKEN>',
  xRestliProtocolVersion: '2.0.0',
  instagramVersion: '2.0.0',
});

See all available methods here.

Configuration

You can configure the caching behavior upon instantiation of the client:

const instagramClient = new instagramClient({
  bearerToken: '<YOUR-instagram-BEARER-TOKEN>',
  xRestliProtocolVersion: '2.0.0',
  instagramVersion: '2.0.0',
  ttl: 120, // seconds. Defaults to 360
  disableCache: true, // Disables the caching behavior. Defaults to 'false'
  maxByteSize: 32000000, // Maximum (approximated) memory size for cache store. Defaults to 16000000.
});

Package Sidebar

Install

npm i bmw-iac

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

65.6 kB

Total Files

53

Last publish

Collaborators

  • imbhargav5