lib/platform-api/client.rb in platform-api-0.0.2 vs lib/platform-api/client.rb in platform-api-0.0.3

- old
+ new

@@ -1,8 +1,8 @@ module PlatformAPI - # Get a client configured with the specified username and token. - def self.connect(username, token) - url = "https://#{username}:#{token}@api.heroku.com" + # Get a client configured with the specified token. + def self.connect( token) + url = "https://:#{token}@api.heroku.com" default_headers = {'Accept' => 'application/vnd.heroku+json; version=3'} cache = Moneta.new(:File, dir: "#{Dir.home}/.heroku/platform-api") options = {default_headers: default_headers, cache: cache} schema_json = File.read("#{File.dirname(__FILE__)}/schema.json") schema = Heroics::Schema.new(MultiJson.decode(schema_json))