This is a work in progress so don't a expect a full support for Dev API(beta).
- Devto a cli for dev.to
- Table of contents
- Build
- Install
- Manpage
- Bash autocompletion
- Operations that can be performed
- Commands
- Valid aclaration
- TODO
make build
or
go build -o devto
NOTE:
First make sure you have golang installed
make install
This is just optional
sudo make manpage
Also optional
make bash_autocompletion
source $HOME/.bashrc
- Get articles
- Get articles by username
- Get articles with queries
- Get articles by ID
- Get articles with videos
- Get articles of authenticated user
- Get all articles of authenticated user
- Get published articles of authenticated user
- Get unpublished articles of authenticated user
- Create article
- Update article
- Retrieve comments on an article or a podcast.
- Retrieve comments with its children comments.
- Retrieve all the availables tags. An api_key is required, so make sure you provide one with
auth
command. - Retrieve tags that I follow. An api_key is required, so make sure you provide one with
auth
command.
- Retrieve my followers. An api_key is required, so make sure you provide one with
auth
command.
- Retrieve listing availables.
- Create a listing.
- Update a listing.
- Reading a given listing by its id.
- Retrieve organization by username.
- Retrieve users on an organization.
- Retrieve listing on an organization.
- Retrieve articles belonging to an organization.
- Retrieve podcast availables.
- Retrieve reading lists availables.
- Retrieve webhooks they have previously registered.
- Retrieve webhooks by id
- Create webhooks
- Delete webhook
- Retrieve retrieve a user or organization profile image information by its corresponding username
- Store api_key
./devto auth <api_key>
- Retrieve articles
./devto articles
- Retrieve articles with queries
./devto articles -q
- Retrieve articles by username
./devto articles gealber
- Retrieve articles by username with queries
./devto articles gealber -q
- Retrieve articles by id
./devto articles <id>
- Retrieve body of an article
./devto articles <id> -b
- Get articles of authenticated user
./devto articles me
- Get published articles of authenticated user
./devto articles me -p
- Get unpublished articles of authenticated user
./devto articles me -up
- Get all articles of authenticated user
./devto articles me -all
- Retrieve articles with videos
./devto articles videos
- Create an article
./devto articles create
- Update a given article
./devto articles update <id>
- Retrieve comments on article and podcast
./devto comments -a_id <id>
./devto comments -p_id <id>
- Retrieve comments given an id.
./devto comments -id <id>
- Retrieve all tags. An api_key is required, so make sure you provide one with
auth
command../devto tags
- Retrieve tags that I follows. An api_key is required, so make sure you provide one with
auth
command../devto tags follows
- Retrieve my followers. An api_key is required, so make sure you provide one with
auth
command../devto followers
- Retrieve listing availables.
./devto listings
- Create a listing.
./devto listings create
- Update a listing.
./devto listings update <id>
- Reading a given listing by its id.
./devto listings retrieve <id>
- Retrieve organization by username.
./devto organizations <username>
- Retrieve users on an organization.
./devto organizations <username> -u
- Retrieve listing on an organization.
./devto organizations <username> -l
- Retrieve articles belonging to an organization.
./devto organizations <username> -a
- Retrieve podcast availables.
./devto podcasts
- Retrieve podcast availables.
./devto reading_lists
NOTE: Need to be authenticated
- Retrieve webhooks they have previously registered.
./devto webhooks
- Retrieve webhooks by id
./devto webhooks <id>
- Create webhooks
./devto webhooks create
- Delete webhook
./devto webhooks delete <id>
- Retrieve retrieve a user or organization profile image information by its corresponding username
./devto profile_images <username>
The field body_markdown
on operations like the creation of an article, expect a path to a markdown file.
With the content of the article you want to published.
From now on, I need to refactor.
- REFACTOR, REFACTOR AND REFACTOR.