lib/kraken-io.rb in kraken-io-0.0.3 vs lib/kraken-io.rb in kraken-io-0.0.4
- old
+ new
@@ -20,21 +20,21 @@
'api_key' => @api_key,
'api_secret' => @api_secret
}
})
- self.class.post('https://api.kraken.io/url', {:body => JSON.generate(params)})
+ self.class.post('https://api.kraken.io/v1/url', {:body => JSON.generate(params)})
end
def upload(params = {})
params.merge!({
'auth' => {
'api_key' => @api_key,
'api_secret' => @api_secret
}
})
- url = URI.parse("https://api.kraken.io/upload")
+ url = URI.parse("https://api.kraken.io/v1/upload")
File.open(params['file']) do |file|
params.delete('file')
req = Net::HTTP::Post::Multipart.new url.path, "body" => JSON.generate(params), "file" => UploadIO.new(file, 'logotyp.png')
\ No newline at end of file