mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-09 12:56:21 +10:00
使用最新的imageInfo接口规格。
This commit is contained in:
@@ -7,12 +7,12 @@ module Qiniu
|
||||
include Utils
|
||||
|
||||
def info(url)
|
||||
Utils.http_request url + '/imageInfo', nil, {:method => :get}
|
||||
end
|
||||
Utils.http_request url + '?imageInfo', nil, {:method => :get}
|
||||
end # info
|
||||
|
||||
def exif(url)
|
||||
Utils.http_request url + '?exif', nil, {:method => :get}
|
||||
end
|
||||
end # exif
|
||||
|
||||
def preivew_url(url, spec)
|
||||
url + '/imagePreview/' + spec.to_s
|
||||
|
||||
Reference in New Issue
Block a user