useshortcut / exporter

Shortcut data exporter
MIT License
32 stars 11 forks source link

Introduce structure! #11

Closed szepeviktor closed 4 years ago

szepeviktor commented 4 years ago

Hello! What an anti-software we have here :)

Would you welcome few shell functions

@jeremyheiler What do you think?

szepeviktor commented 4 years ago

for example

api()
{
    local request="$1"
    local filename="${2:-$1}"

    curl -X GET \
      -H "Content-Type: application/json" \
      -L "https://api.clubhouse.io/api/v3/${request}?token=${CLUBHOUSE_API_TOKEN}" >"data/${filename}.json"
}
jeremyheiler commented 4 years ago

@szepeviktor You are free to fork the repository or make your own scripts! However, at this time we're fine with the simplicity of the script as it is. Thank you for your interest!

szepeviktor commented 4 years ago

Okay.