File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 11import {
2+ ICredentialTestRequest ,
23 ICredentialType ,
34 INodeProperties ,
45} from 'n8n-workflow' ;
@@ -22,4 +23,20 @@ export class TwitchApi implements ICredentialType {
2223 default : '' ,
2324 } ,
2425 ] ;
26+
27+ test : ICredentialTestRequest = {
28+ request : {
29+ baseURL : 'https://id.twitch.tv' ,
30+ url : '/oauth2/token' ,
31+ method : 'POST' ,
32+ headers : {
33+ 'Content-Type' : 'application/json' ,
34+ } ,
35+ qs : {
36+ client_id : '={{$credentials.clientId}}' ,
37+ client_secret : '={{$credentials.clientSecret}}' ,
38+ grant_type : 'client_credentials' ,
39+ } ,
40+ } ,
41+ } ;
2542}
Original file line number Diff line number Diff line change 11{
2+ "$schema" : " https://json.schemastore.org/tsconfig" ,
23 "compilerOptions" : {
34 "strict" : true ,
45 "module" : " es2020" ,
You can’t perform that action at this time.
0 commit comments