/source.json: include raw api responses in output (#3940).
This commit is contained in:
@@ -55,12 +55,7 @@ class DeviantArtApiClient
|
||||
}
|
||||
|
||||
body, code = HttpartyCache.get(url, **options)
|
||||
|
||||
if code == 200
|
||||
return JSON.parse(Zlib.gunzip(body), symbolize_names: true)
|
||||
end
|
||||
|
||||
raise "DeviantArtApiClient call failed (code=#{code}, url=#{url}, body=#{body})"
|
||||
JSON.parse(Zlib.gunzip(body), symbolize_names: true)
|
||||
end
|
||||
|
||||
def oauth
|
||||
|
||||
Reference in New Issue
Block a user