Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter API Endpoints #217

Open
cyri113 opened this issue Sep 14, 2023 · 0 comments · Fixed by #220
Open

Twitter API Endpoints #217

cyri113 opened this issue Sep 14, 2023 · 0 comments · Fixed by #220
Assignees

Comments

@cyri113
Copy link
Contributor

cyri113 commented Sep 14, 2023

Twitter API Endpoints

/metrics/twitter/activity

Ciphers

TogetherCrew/twitter-analytics#9

Response Interface:

interface TwitterActivity {
  posts: number
  replies: number
  retweets: number
  likes: number
  mentions: number
}

/metrics/twitter/audience

Ciphers

TogetherCrew/twitter-analytics#10

Response Interface:

interface TwitterAudience {
  replies: number
  retweets: number
  likes: number
  mentions: number
}

/metrics/twitter/engagement

Ciphers

TogetherCrew/twitter-analytics#5

Response Interface:

Option 1

enum QualityType {
  High,
  Low,
}

enum EngagementType {
  High,
  Low,
}

interface TwitterEngagement {
  quality: QualityType
  engagement: EngagementType,
  amount: number
}

interface TwitterEngagementArray extends Array<TwitterEngagement> {}

Option 2

interface TwitterEngagement {
  hl: number
  hh: number
  ll: number
  lh: number
}

To be discussed with @Zueis

/metrics/twitter/refresh

Should trigger the TWITTER_REFRESH choreography.

Response

interface Saga {
  sagaId: string,
  // ...
}
@scientiststwin scientiststwin linked a pull request Sep 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants