OkHttp Kotlin command line
Switch branches/tags
Clone or download
Latest commit ad2cfc1 Dec 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci clear cache Dec 2, 2018
bash rename Jul 18, 2018
buildSrc build from source Nov 27, 2018
certificates support for Estonian services (#152) Aug 9, 2016
gradle/wrapper Updates Nov 27, 2018
src JIRA model Nov 28, 2018
zsh rename Jul 18, 2018
.cirrus.yml gradle 5 build Nov 27, 2018
.editorconfig cleanup Mar 10, 2018
.gitignore Kotlin build (#354) Oct 25, 2018
.watchmanconfig watchman Jun 15, 2016
LICENSE Initial commit Dec 20, 2015
README.md Update README.md Nov 27, 2018
build.gradle.kts fix circle ci Dec 2, 2018
create_release.sh finish release back on master Oct 28, 2018
gradle.properties updates Nov 14, 2018
gradlew builds Nov 24, 2018
gradlew.bat builds Nov 24, 2018
okapi rename Jul 18, 2018
okscript rename Jul 18, 2018
okurl Cronhub support Aug 17, 2018
okws rename Jul 18, 2018
settings.gradle.kts cache in cirrus only Dec 2, 2018
use_dev.sh zsh Mar 31, 2018

README.md

OkHttp Kotlin command line

Build Status

A curl like client based on OkHttp with tight integration for Mac OSX

$ brew install yschimke/tap/okurl

$ okurl --authorize twitter

$ twitterapi '/1.1/statuses/show.json?id=733545978398040064'
...

If bash completion is installed at the same time, consider activating it with

Add the following line to your ~/.bash_profile:
  [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion

Read the Wiki for more information

Requirements

  • Java 8+
  • Mac OSX (untested elsewhere)

Features

  • Login (token generation) support and automatic authentication for
    • Twitter
    • Facebook
    • Uber
  • Javascript scripting support
  • simple alias "twitterapi /1.1/statuses/user_timeline.json"
  • OpenSC government smartcard support e.g. Estonian ID card
  • OSX integration e.g. launch Preview for images and homebrew install
  • HTTP/2 support and protocol selection

Future Development

  • Support for more API authentication schemes, hopefully in a purely configuration driven manner
  • Switch between different tokens