-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rayna Bhattacharyya
authored and
Rayna Bhattacharyya
committed
Aug 1, 2024
1 parent
4f78de3
commit 6213bc6
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.describe Bloomr do | ||
it "has a version number" do | ||
expect(Bloomr::VERSION).not_to be nil | ||
end | ||
|
||
it "does something useful" do | ||
# Bloomr.debug = true | ||
api = Bloomr::Api.new( | ||
api_url_base: 'https://sandbox.bloom.dev', | ||
auth_url_base: 'https://auth.bloom.dev', | ||
client_id: 'client_id', | ||
client_secret: 'client_secret_key' | ||
) | ||
token = api.fetch_auth_token | ||
# id = api.register_consumer(token, { | ||
# 'first_name' => 'Michael', | ||
# 'last_name' => 'Scott', | ||
# 'city' => 'Scranton', | ||
# 'line1' => '1725 Slough Avenue', | ||
# 'state_code' => 'PA', | ||
# 'zipcode' => '18503', | ||
# "address_primary" => true, | ||
# 'date_of_birth' => '1964-03-15', | ||
# "ssn" => "123456789" | ||
# }) | ||
# p id | ||
api.get_credit_data(token, 1) | ||
end | ||
end |