class Destiny::Client
Base API Class
Usage: destiny = DestinyAPI::Base.new(api_token)
Public Class Methods
new(api_token)
click to toggle source
Init the Destiny
API with Bungie API stored in ENV variable
Usage:
client = Destiny::Client.new('6971067dec36c6597cd57789a62f48f0')
Arguments:
api_token: (String)
Returns:
Destiny client object
# File lib/destiny_rb/client.rb, line 37 def initialize(api_token) @headers = { 'X-API-Key' => api_token, 'Content-Type' => 'application/json' } end