refactor: Redesign twitter trigger and actions

This commit is contained in:
Faruk AYDIN
2022-10-06 10:46:22 +03:00
parent 63ffd1f720
commit 77624acc01
18 changed files with 332 additions and 50 deletions

View File

@@ -1,7 +1,7 @@
import { IGlobalVariableForConnection } from '@automatisch/types';
import { IGlobalVariable } from '@automatisch/types';
import { URLSearchParams } from 'url';
const verifyCredentials = async ($: IGlobalVariableForConnection) => {
const verifyCredentials = async ($: IGlobalVariable) => {
try {
const response = await $.http.post(
`/oauth/access_token?oauth_verifier=${$.auth.data.oauthVerifier}&oauth_token=${$.auth.data.accessToken}`,