lib/todoable_api/default_client.rb
# Handles preconditions before making a request
# Here, we set the authorization header token after we successfully connect! to Todoable
Handles preconditions before making a request
Here, we set the authorization header token after we successfully connect. to Todoable
Handles preconditions before making a request Here we set the authorization header token after we successfully connect . to Todoable
def handle_preconditions
      @headers["Authorization"] = "Token token=\"#{connect!}\""
      puts @headers
      yield
    end
def handle_preconditions @headers [ "Authorization" ] = "Token token=\"#{connect!}\"" puts @headers yield end
Handles preconditions before making a request
Here, we set the authorization header token after we successfully connect!
Handles preconditions before making a request Here we set the authorization header token after we successfully connect!