* DO NOT CALL THIS METHOD. * This method is used internally to connect to staging environment. * * @internal
(
apiKey: string,
config: IterableConfig = new IterableConfig(),
apiEndPoint: string
)
| 172 | * @internal |
| 173 | */ |
| 174 | static initialize2( |
| 175 | apiKey: string, |
| 176 | config: IterableConfig = new IterableConfig(), |
| 177 | apiEndPoint: string |
| 178 | ): Promise<boolean> { |
| 179 | this.setupIterable(config); |
| 180 | |
| 181 | const version = this.getVersionFromPackageJson(); |
| 182 | |
| 183 | return IterableApi.initialize2WithApiKey(apiKey, { |
| 184 | config, |
| 185 | version, |
| 186 | apiEndPoint, |
| 187 | }); |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * @internal |
no test coverage detected