class Fitbark::Client

Provides all methods to connect to the API endpoints and retrieve data

Attributes

uri[R]

Public Class Methods

new(token:) click to toggle source

params (key/value):

alla available API methods inside this calss are dynamical defined by all Fitbark::Handler::V2 classes please read specific documentation for each of them

Sample usage:

token = "9083a4b0d701542c9b..."
client = Fitbark::Client.new(token: token)
user = client.user_info
first_dog = client.dog_relations.first.dog
client.dog_picture(dog_slug: first_dog.slug)
# File lib/fitbark/client.rb, line 22
def initialize(token:)
  raise Fitbark::Errors::TokenNotProvidedError if token.nil?

  @token = token
end