Skip to content
This repository was archived by the owner on Apr 14, 2024. It is now read-only.

yschimke/okurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 7, 2022
32ad9f8 · Aug 7, 2022
Dec 28, 2021
Aug 6, 2022
Aug 7, 2022
Aug 7, 2022
Jul 30, 2020
Mar 10, 2018
Aug 6, 2022
Oct 23, 2021
Dec 20, 2015
Aug 1, 2019
Aug 7, 2022
Nov 14, 2018
Aug 29, 2021
Mar 16, 2021
May 30, 2020
Feb 7, 2021
Aug 7, 2022
Aug 7, 2022

Repository files navigation

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

$ okurl 'https://api.twitter.com/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