feat: add app connections w/ testing and deleting functions

This commit is contained in:
Ali BARIN
2021-10-18 23:58:40 +02:00
parent 672cc4c60c
commit 2293c939e7
27 changed files with 349 additions and 34 deletions

View File

@@ -1,6 +1,7 @@
import TwitterApi from 'twitter-api-v2';
import App from '../../models/app';
import Field from '../../types/field';
import appData from './info';
export default class Twitter {
client: any
@@ -16,7 +17,7 @@ export default class Twitter {
});
this.connectionData = connectionData;
this.appData = App.findOneByKey('twitter');
this.appData = appData;
}
async createAuthLink() {