1.2.0 • Published 1 year ago
bmw-iac v1.2.0
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.
});