import {get} from './common';

export function getGiphy(text) {
    return get(`http://api.giphy.com/v1/gifs/translate?s=${encodeURIComponent(text)}&api_key=dc6zaTOxFJmzC`)
        .then(response => {
            return response.data.images['fixed_height'].url;
        });
}

@@ -77,13 +77,8 @@
 et(%60
-http:
 //ap

make api protocol agnostic