joel-plutio #1

Merged
Joel merged 5 commits from joel-plutio into master 2022-09-14 18:02:41 +02:00
1 changed files with 8 additions and 0 deletions
Showing only changes of commit 4fc96b39ca - Show all commits

View File

@ -17,7 +17,11 @@ async function plutioApiRequestToken(this: IExecuteFunctions | ILoadOptionsFunct
const clientId = `${credentials.clientId}`;
const clientSecret = `${credentials.clientSecret}`;
const business = `${credentials.business}`;
<<<<<<< HEAD
const endpoint = 'api.plutio.com/v1.10';
=======
const endpoint = 'api.plutio.com/v1.9';
>>>>>>> master
const returnData: IDataObject[] = [];
let responseData;
@ -58,7 +62,11 @@ async function plutioApiRequestToken(this: IExecuteFunctions | ILoadOptionsFunct
// Rest API function for plutio node.
export async function plutioApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions, method: string, resource: string, body: any = {}, query: IDataObject = {}, uri?: string, option: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
<<<<<<< HEAD
const endpoint = 'api.plutio.com/v1.10';
=======
const endpoint = 'api.plutio.com/v1.9';
>>>>>>> master
const credentials = await this.getCredentials('plutioApi');
const plutioApiToken = await plutioApiRequestToken.call(this);
const business = `${credentials.business}`;