Add a couple of other CLI utilities for interacing with the service.

[?]
Jun 9, 2015, 10:09 PM
CDHZL3RP2HGNSSBXD4VDSAW7M3SPBF7LBYB2BL6I3N6EI5URSOJAC

Dependencies

  • [2] PBD7LZYQ Postgres & auth are beginning to function.

Change contents

  • file addition: list_projects.sh (---r------)
    [2.1220]
    #!/bin/bash
    read -p "Username: " USER
    read -s -p "Password: " PASS
    curl -k -u "$USER:$PASS" -X GET "https://aftok.com/projects"
  • file addition: log.sh (---r------)
    [2.1220]
    #!/bin/bash
    read -p "Username: " USER
    read -s -p "Password: " PASS
    echo
    read -p "Project UUID: " PROJECT
    curl -v -k -u "$USER:$PASS" -X GET "https://aftok.com/projects/$PROJECT/logEntries?after=$(date -Iseconds --date='1 month ago')"