Verify the stored X/Twitter credentials work by asking the API who they belong to, without posting anything.
Inputs
Name
Type
Required / default
Values and notes
profile
profile
optional, default twitter
Outputs
Name
Type
Notes
ok
bool
username
string
user_id
string
Post a tweet
post_textDestructive
Post a plain text tweet.
Inputs
Name
Type
Required / default
Values and notes
text
text
required
profile
profile
optional, default twitter
Outputs
Name
Type
Notes
tweet_id
string
url
string
Post an image
post_imageDestructive
Post a single image (or short video/GIF) with optional accompanying text.
Inputs
Name
Type
Required / default
Values and notes
image
path
required
text
text
optional, default ""
profile
profile
optional, default twitter
Outputs
Name
Type
Notes
tweet_id
string
url
string
media_id
string
Post a folder
post_from_folderDestructive
Post every new image in a folder as its own tweet, skipping files already posted. Each file's text comes from a same-named .txt file next to it if present, else a template, else the filename.
Inputs
Name
Type
Required / default
Values and notes
folder
path
required
text_template
text
optional, default ""
recursive
bool
optional, default false
skip_posted
bool
optional, default true
shuffle
bool
optional, default false
limit
int
optional, default 0
profile
profile
optional, default twitter
Outputs
Name
Type
Notes
count
int
failed
int
posted
json
Use it
Check login
Command line
shell
python app.py --action check_login --params '{}'
Run from the app’s own folder. Single quotes work in bash and PowerShell; in cmd.exe use double quotes and escape the inner ones.