@edirect/dynamics
TypeScript icon, indicating that this package has built-in type declarations

9.0.3 • Public • Published

@edirect/dynamics

The EDirectInsure Dynamics Module.

Installation

$ npm i --save @edirect/dynamics

Usage

# .YOUR_ENVIRONMENT.env
DYNAMICS_TOKEN_URL="https://login.windows.net/YOUR_TENANT/oauth2/token"
DYNAMICS_CLIENT_ID="YOUR_CLIENT_ID"
DYNAMICS_USER_NAME="YOUR_USER_NAME"
DYNAMICS_PASSWORD="YOUR_DYNAMICS_PASSWORD"
DYNAMICS_RESOURCE="YOUR_RESOURCE_URL"
DYNAMICS_ENABLED="true/false"
// app.module.ts
import { Module } from '@nestjs/common';
import { DynamicsModule } from '@edirect/dynamics';

@Module({
  imports: [DynamicsModule],
  ...
})
export class AppModule {}
// cats.controller.ts
import { Controller } from '@nestjs/common';
import { DynamicsService } from '@edirect/dynamics';

@Controller('cats')
export class CatsController {
    constructor(private readonly dynamicsService: DynamicsService) {}

    postSomethingToDynamics(): Promise<any> {
      return this.dynamicsService
        .post('YOUR_URL', { YOUR_ATTRIBUTE: 'YOUR_VALUE' })
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @edirect/dynamics

Weekly Downloads

48

Version

9.0.3

License

ISC

Unpacked Size

90.8 kB

Total Files

18

Last publish

Collaborators

  • rodrigo.prado
  • diogo.bolttech
  • mathais
  • robertoakang
  • samuelbolttech
  • gcmercante
  • herberts.fortuna
  • bruno.gomes
  • danielkhalebbatista
  • andsfranbolt
  • guilherme_benedeti
  • pauloazevedo-ed
  • rafael.jourdan
  • joaoferreirabolttech
  • iquirino.bolttech
  • lukaspiccinibt
  • adailson.bolttech
  • palvares_bolttech
  • plinio.altoe
  • edirectamorim
  • ricardo.coelho
  • layunne-bolttech
  • mayko.calazans
  • david.pereira
  • paulomarchi