class

Thunderstore::Client

Inherits Reference < Object

Constants

BASE_URL = "https://thunderstore.io"

Constructors

new(community : String = "")
Source

Instance methods

base_url

Returns the base url for which this client will make API requests to.

Source
community
Source
community=(community : String)
Source
get(path : String) : HTTP::Client::Response

Initializes an HTTP::Client for the configured base_url, and executes a GET request on the specified path. The response will have its body as a String, accessed via HTTP::Client::Response#body.

Source
set_community(community : String)

Sets the @community instance variable. You can find a list of communities by going to https://thunderstore.io and looking at the the subdomains that each mod community is listed under.

Source