Skip to content

Commit e002e22

Browse files
committed
fix: add credential test request for ScrappeyApi with balance endpoint
1 parent c5df802 commit e002e22

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

credentials/ScrappeyApi.credentials.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ICredentialType, INodeProperties } from 'n8n-workflow';
1+
import { ICredentialType, INodeProperties, ICredentialTestRequest } from 'n8n-workflow';
22

33
export class ScrappeyApi implements ICredentialType {
44
name = 'scrappeyApi';
@@ -53,4 +53,15 @@ export class ScrappeyApi implements ICredentialType {
5353
hint: "Optional. List of domains that are allowed to be scraped. If isn't set, all domains are allowed",
5454
},
5555
];
56+
57+
test: ICredentialTestRequest = {
58+
request: {
59+
baseURL: 'https://publisher.scrappey.com/api/v1',
60+
url: '/balance',
61+
method: 'GET',
62+
qs: {
63+
key: '={{$credentials.apiKey}}'
64+
},
65+
},
66+
};
5667
}

0 commit comments

Comments
 (0)