@@ -97,6 +97,8 @@ After saving your configuration changes please restart the Apache webserver.
9797#### Step 3: Using this setup
9898
9999``` js
100+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
101+ /* eslint-disable @typescript-eslint/no-var-requires */
100102async function main () {
101103 const apiconnector = require (' @hexonet/ispapi-apiconnector' )
102104 const cl = new apiconnector.APIClient ()
@@ -125,6 +127,8 @@ When having the debug mode activated \HEXONET\Logger will be used for doing outp
125127Of course it could be of interest for integrators to look for a way of getting this replaced by a custom mechanism like forwarding things to a 3rd-party software, logging into file or whatever.
126128
127129``` js
130+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
131+ /* eslint-disable @typescript-eslint/no-var-requires */
128132async function main () {
129133 const logger = require (' mycustomlogger' ) // has to extend our logger
130134 const apiconnector = require (' @hexonet/ispapi-apiconnector' )
@@ -185,6 +189,8 @@ The logout can be done at any time separetely triggered. After logout no further
185189Note: you have to first finish your requests before doing logout. Running queued requests may fail after logout.
186190
187191``` js
192+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
193+ /* eslint-disable @typescript-eslint/no-var-requires */
188194async function main () {
189195 const apiconnector = require (' @hexonet/ispapi-apiconnector' )
190196 const cl = new apiconnector.APIClient ()
@@ -248,6 +254,8 @@ But in that case you always have to provide user and password accordingly.
248254If you want to build your frontend based on this library, we suggest to base it on the above example.
249255
250256``` js
257+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
258+ /* eslint-disable @typescript-eslint/no-var-requires */
251259async function main () {
252260 const apiconnector = require (' @hexonet/ispapi-apiconnector' )
253261 const cl = new apiconnector.APIClient ()
@@ -275,6 +283,8 @@ main()
275283No need to play with async / await.
276284
277285``` js
286+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
287+ /* eslint-disable @typescript-eslint/no-var-requires */
278288const apiconnector = require (' @hexonet/ispapi-apiconnector' )
279289const cl = new apiconnector.APIClient ()
280290// Use OT&E system, omitting this points by default to the LIVE system
@@ -300,6 +310,8 @@ cl.request({
300310Shorten your code by using method chaining
301311
302312``` js
313+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
314+ /* eslint-disable @typescript-eslint/no-var-requires */
303315const apiconnector = require (' @hexonet/ispapi-apiconnector' )
304316const cl = new apiconnector.APIClient ()
305317cl .useOTESystem ()
@@ -320,6 +332,8 @@ cl.request({
320332Improve your code by using the below
321333
322334``` js
335+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
336+ /* eslint-disable @typescript-eslint/no-var-requires */
323337const apiconnector = require (' @hexonet/ispapi-apiconnector' )
324338const cl = new apiconnector.APIClient ()
325339cl .useOTESystem ()
@@ -339,6 +353,8 @@ cl.request({
339353instead of
340354
341355``` js
356+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
357+ /* eslint-disable @typescript-eslint/no-var-requires */
342358const apiconnector = require (' @hexonet/ispapi-apiconnector' )
343359const cl = new apiconnector.APIClient ()
344360cl .useOTESystem ()
0 commit comments