Project

hqtrivia

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
An HQ Trivia (https://hqtrivia.com) API Wrapper in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.0.0
~> 2.1.0.rc1
 Project Readme

HQTriviaRB

A ruby library for HQ Trivia.

What is this for?

I mean, why not.

Usage

Put this near the top of your ruby whatever:

require 'hqtrivia'

HQ = HQTrivia.new("[your HQ api key]")

Don't have a key? We have a class for that!

require 'hqtrivia'

e = HQTrivia::GenerateKey.new(country_code: code, phone_number: "[number]", method: "sms/call")
e.verify("code")
HQ = e.hq

Now, when you need to run a method, run HQ.method.

Example for getting the authed user.

HQ.me.username
# => "Chewsterchew"

Documentation

Stuck? Know Ruby? Check out the documentation.

Still stuck? That Stucks! hey it! Check out our support channels

Support Channels

nonexistent. :!

But Ruby sucks

NO U