2020-06-01 17:42:38 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2020-06-01 17:42:38 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class TwitterOAuth1Api implements ICredentialType {
|
|
|
|
name = 'twitterOAuth1Api';
|
|
|
|
extends = [
|
|
|
|
'oAuth1Api',
|
|
|
|
];
|
|
|
|
displayName = 'Twitter OAuth API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'twitter';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-06-01 17:42:38 -07:00
|
|
|
{
|
|
|
|
displayName: 'Request Token URL',
|
|
|
|
name: 'requestTokenUrl',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2020-06-01 17:42:38 -07:00
|
|
|
default: 'https://api.twitter.com/oauth/request_token',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Authorization URL',
|
|
|
|
name: 'authUrl',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2020-06-01 17:42:38 -07:00
|
|
|
default: 'https://api.twitter.com/oauth/authorize',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Access Token URL',
|
|
|
|
name: 'accessTokenUrl',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2020-06-01 17:42:38 -07:00
|
|
|
default: 'https://api.twitter.com/oauth/access_token',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Signature Method',
|
|
|
|
name: 'signatureMethod',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2020-06-01 17:42:38 -07:00
|
|
|
default: 'HMAC-SHA1',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|