replace deprecated method in sample

This commit is contained in:
tiagosiebler
2021-02-22 11:15:02 +00:00
parent ca05ca0eb2
commit 63f3de9670
5 changed files with 34 additions and 18 deletions

View File

@@ -12,22 +12,22 @@ export class LinearClient extends SharedEndpoints {
* @param {string} key - your API key
* @param {string} secret - your API secret
* @param {boolean} [useLivenet=false]
* @param {RestClientOptions} [restInverseOptions={}] options to configure REST API connectivity
* @param {RestClientOptions} [restClientOptions={}] options to configure REST API connectivity
* @param {AxiosRequestConfig} [requestOptions={}] HTTP networking options for axios
*/
constructor(
key?: string | undefined,
secret?: string | undefined,
useLivenet?: boolean,
restInverseOptions: RestClientOptions = {},
restClientOptions: RestClientOptions = {},
requestOptions: AxiosRequestConfig = {}
) {
super()
this.requestWrapper = new RequestWrapper(
key,
secret,
getRestBaseUrl(useLivenet, restInverseOptions),
restInverseOptions,
getRestBaseUrl(useLivenet, restClientOptions),
restClientOptions,
requestOptions
);
return this;