Class: Bkblz::V1::AuthorizeAccountRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/bkblz/v1/authorize_account.rb

Constant Summary collapse

API_URL =
"https://api.backblaze.com/b2api/v1/b2_authorize_account"

Instance Method Summary collapse

Methods inherited from Request

response_class, #send, url_suffix

Instance Method Details

#build_request(session) ⇒ Object



17
18
19
20
21
# File 'lib/bkblz/v1/authorize_account.rb', line 17

def build_request(session)
  req = Net::HTTP::Get.new URI(API_URL)
  req.basic_auth(session.config., session.config.application_key)
  req
end