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

Aliases

Yuri Schimke edited this page May 16, 2016 · 7 revisions

Aliases

Existing

OkSocial support defining short aliases, and comes with some by default

./commands/fbgraph -> https://graph.facebook.com{0} ./commands/twitterapi -> https://api.twitter.com{0} ./commands/uberapi -> https://api.uber.com{0}

Format

The format for these files is generally

#!/usr/bin/env ./okapi

"https://api.twitter.com" + item

Variables

client (okhttp3.Client) clientBuilder (okhttp3.Client.Builder) requestBuilder (okhttp3.Request.Builder) item (String argument from command line)

arguments (String[] in -m mode)

Return Values

String (URI) okhttp3.Request iterable of String/Request

Clone this wiki locally