Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Chew/HQTriviaRB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An HQ Trivia library wrapper in ruby

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages