This article has 122 words.
All the CLI elements described are a layer of abstraction over the http protocol. If you go to https://github.com/okkoala/cli, you can see all references to which CLI function corresponds to which verb (e.g. GET, POST, PUT, DELETE, etc.) to which http endpoint.
There are two things needed to understand the whole thing:
- Authentication is done by a token, which is provided by a header named “Authentication”.
- Endpoints are calculated by concatenation with the value “https://api.okkoala.com”
Knowing these design assumptions, you can read the contents of the file https://github.com/okkoala/cli/blob/main/api.js.
By reading the name of the function in question, you can see how it works and write the code for your program in essentially any programming language in which you can communicate via http.