Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

membrane-io/membrane-driver-twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Driver

A Membrane.io driver for Twitter.

Setup

Get Oauth2 Client key and secret from twitter dev portal and setup your Callback URI by appending /callback to the program Endpoint URL.

$~~~~$mctl action "twitter:configure(CLIENT_ID:'<string>',CLIENT_SECRET:'<string>')"

Create a tweet

$~~~~$mctl action "twitter:tweet(text:'Hi!')"

Create a poll tweet

$~~~~$mctl action "twitter:tweet(poll_duration_minutes:60,poll_options:"I’m fine, Not so good",text:"How are you?")"

Schema

Types

<Root>
    - Fields
        user(id | username) -> Ref <User>
        status() -> String
        tweets(search) -> Ref <TweetCollection>
    - Actions
        configure(token) -> Void
        tweet() -> Void
<User>
    - Fields
        id -> String
        username -> String
        name -> String
        tweets -> <TweetCollection>
        followers -> <FollowersCollection>
        mentions -> <MentionsCollection>
        liked -> <LikedCollection>
<TweetCollection>
    - Fields
       one(id) -> Ref <Tweet>
       page(pagination_token, max_results) -> Ref <TweetPage>
<TweetPage>
    - Fields
        items -> List[] <Tweet>
        next -> Ref <TweetPage>
<FollowersCollection>
    - Fields
       one(id) -> Ref <Tweet>
       page(pagination_token, max_results) -> Ref <FollowersPage>
<FollowersPage>
    - Fields
        items -> List[] <User>
        next -> Ref <FollowersPage>
<MentionsCollection>
    - Fields
       one(id) -> Ref <Tweet>
       page(pagination_token, max_results) -> Ref <MentionsPage>
<MentionsPage>
    - Fields
        items -> List[] <Tweet>
        next -> Ref <MentionsPage>
<LikedCollection>
    - Fields
       one(id) -> Ref <Tweet>
       page(pagination_token, max_results) -> Ref <LikedPage>
<LikedPage>
    - Fields
        items -> List[] <Tweet>
        next -> Ref <LikedPage>
<Tweet>
    - Fields
        id -> String
        text -> String
        likingUsers -> <LikingCollection>
<LikingCollection>
    - Fields
       one(id) -> Ref <Tweet>
       page(pagination_token, max_results) -> Ref <LikingPage>
<LikingPage>
    - Fields
        items -> List[] <User>
        next -> Ref <LikingPage>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •