How to access a Connector (Device Params) from Analysis.

How to access a Connector (Device Params) from Analysis.

Hi,

I am trying to access a connector's Device Parameters from an analysis but I can't seem to figure out how to get access to a connector. 

The API suggests an Integration constructor but when I use that in

      const integration = new account.Integration(connector_id);




I get an error:



      TypeError: account.Integration is not a constructor


I tried some different mutations of that constructor but I always end up with some error or exception. So I am clearly missing something :-)

Any suggestions will be greatly appreciated.

Cheers,

Erwin