Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make request public #84

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/muffin_man/sp_api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def initialize(credentials, sandbox = false)
@config = MuffinMan.configuration
end

def request
Typhoeus::Request.new(canonical_uri, params: query_params)
end

private

def call_api
Expand Down Expand Up @@ -73,10 +77,6 @@ def canonical_uri
"#{sp_api_url}#{local_var_path}"
end

def request
Typhoeus::Request.new(canonical_uri, params: query_params)
end

def retrieve_lwa_access_token
return request_lwa_access_token["access_token"] unless use_cache?

Expand Down
2 changes: 1 addition & 1 deletion lib/muffin_man/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module MuffinMan
VERSION = "2.4.8"
VERSION = "2.4.9"
end
Loading