lib/espago/api_connection/tokens_post.rb in espago-0.1.8 vs lib/espago/api_connection/tokens_post.rb in espago-0.1.9

- old
+ new

@@ -1,10 +1,10 @@ module Espago class ApiConnection class TokensPost < ApiPost def initialize(connection) @connection = connection - @connection.basic_auth(Espago.public_key, '') + @connection.request(:authorization, :basic, Espago.public_key, '') end def request(params = {}) super("tokens", params) end