Skip to content

Instantly share code, notes, and snippets.

@pmaojo
Forked from jusk02/avatar.rb
Created April 24, 2017 16:35
Show Gist options
  • Save pmaojo/a7977a944698ff282762459e29475d85 to your computer and use it in GitHub Desktop.
Save pmaojo/a7977a944698ff282762459e29475d85 to your computer and use it in GitHub Desktop.
def get_avatar(container,file,access_token)
@avatar_clean = ApiConecction.get("/Contenedores/#{container}/download/#{file}",access_token)
// aqui deberia tomar @avatar_clean.response_body y convertirlo en la imagen, pero no se que hacer
end
def avatar
@avatar_clean = Avatar.new
@avatar_response = @avatar_clean.get_avatar(@container,@avatar_name,@@my_token)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment