Giter Site home page Giter Site logo

quizapi-bash's Introduction

QuizAPI-BASH

This is a BASH wrapper for the quizapi.io API

QuizAPI Demo

Prerequisites

  • An API Key for the Quiz API, you can get it totally for free for developers:

https://quizapi.io/clientarea/settings/token

  • jq installed, if you try to run the script without having jq installed you will get the following message:
The jq command is required! Please install it and then try again

Installation

Download the script:

https://raw.githubusercontent.com/QuizApi/QuizAPI-BASH/master/quiz.sh

Make the script executable:

chmod +x quiz.sh

Set your QuizAPI key as an env variable:

export API_KEY=your_api_key_here

Usage

To run the script just run the following:

./quiz.sh -a ${API_KEY}

You will get to an interactive quiz menu where you can select multiple answers.

The output will look like this:

There is only 1 correct answer!

"Following Docker command: docker commit -m \"My first update\" container_ID user_name/repository_name  is used to:"
  1 ) "Activate default VM machine"
  2+) "Commit changes done in a Docker image"
  3 ) "Build an image"
  4 ) "Access a running container"
"Commit changes done in a Docker image" was checked
Check an option (again to uncheck, ENTER when done):

Selected was:  "Commit changes done in a Docker image"
Correct: is:  "Commit changes done in a Docker image"
Correct Answer

Arguments

The script accepts the following arguments:

quiz.sh -a API_KEY [-c Category] [-d Difficulty] [-t Tags]
  • -c - get questions only for a specific category
  • -d - get questions only for a specific difficulty (Easy, Medium and Hard)
  • -t - get questions for a specific topic/tag, this lets you combine multiple topics

Documentation

For more information, checout the official QuizAPI Documentation here:

http://quizapi.io/docs/1.0/overview

quizapi-bash's People

Contributors

quizapi-support avatar bobbyiliev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.