Sha256: 32a3ab6e627990e4ca85b5b627c80c8597fb93f4c94444b01c7789193d8d4edc
Contents?: true
Size: 600 Bytes
Versions: 6
Compression:
Stored size: 600 Bytes
Contents
# typed: strict require_relative './base.rb' module Moneylovercli module Api class AccessToken < Base base_uri 'https://oauth.moneylover.me' sig do params(authorization_token: String, client: String, email: String, password: String) .returns(HTTParty::Response) end def access_token(authorization_token:, client:, email:, password:) self.class.post('/token', body: { email: email, password: password }, headers: { authorization: "Bearer #{authorization_token}", client: client }) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems