giphy-api icon indicating copy to clipboard operation
giphy-api copied to clipboard

Add support for upload API

Open austinkelleher opened this issue 9 years ago • 18 comments

upload.giphy.com

austinkelleher avatar Dec 26 '15 18:12 austinkelleher

Kind of shocked it doesn't have this already tbh. Smh.

xdumaine avatar Dec 26 '15 23:12 xdumaine

You seem to be interested in this issue. I assigned you.

austinkelleher avatar Dec 27 '15 16:12 austinkelleher

Wait does giphy even have an upload api?

xdumaine avatar Jan 23 '16 19:01 xdumaine

upload.giphy.com

wenkesj avatar Jan 23 '16 19:01 wenkesj

what

xdumaine avatar Jan 23 '16 19:01 xdumaine

alt text

austinkelleher avatar Jan 23 '16 19:01 austinkelleher

http://i.imgur.com/NBIilUY.gif

xdumaine avatar Jan 23 '16 19:01 xdumaine

There's some bit of interesting code I've run into, I'll try to whip something up.

wenkesj avatar Jan 23 '16 19:01 wenkesj

oooh fancy

xdumaine avatar Jan 23 '16 20:01 xdumaine

Looking for a status update @xdumaine

austinkelleher avatar Oct 03 '16 17:10 austinkelleher

;@/#($-18304773-649295379919737918-"+*:@:#+_(271

xdumaine avatar Oct 03 '16 18:10 xdumaine

Interesting...

wenkesj avatar Oct 03 '16 23:10 wenkesj

LGTG - Looks Good To Goteem

austinkelleher avatar Oct 03 '16 23:10 austinkelleher

const GOTEEM = (Xander) => GOTEEM(Xander)

wenkesj avatar Oct 04 '16 14:10 wenkesj

I fee like it's this easy, but I could be wrong

url: "http://upload.giphy.com/v1/gifs?api_key=goteem",
contentType: "image/gif",
username: "goteem_user",
api_key: "goteem",
file: "path/to/goteem_file",
tags: "goteem_tag",

wenkesj avatar Jul 17 '17 00:07 wenkesj

@jareis Well the API may not be entirely exposing it for a reason right now. But some fancy reverse engineering might do the trick if you want to put the time/work in.

This is just a snippet showing the submitUrl.

        // login redirect
        if (Giphy.renderCreationTools) {
            Giphy.renderCreationTools({
                submitUrl: 'https://upload.giphy.com/v1/upload',
                creationType: 'upload',
                featuredGifs: '[{"permalink_url": "/gifs/snl-bernie-sanders-larry-david-11lLn6lwsdicLK", "image_url": "https://media.giphy.com/media/11lLn6lwsdicLK/giphy.gif"}, {"permalink_url": "/gifs/southpark-south-park-youre-not-yelping-comedy-central-19x04-3o85xt08p2Y0hanhwQ", "image_url": "https://media.giphy.com/media/3o85xt08p2Y0hanhwQ/giphy.gif"}, {"permalink_url": "/gifs/mrw-good-meagan-9uoYC7cjcU6w8", "image_url": "https://media.giphy.com/media/9uoYC7cjcU6w8/giphy.gif"}, {"permalink_url": "/gifs/skeleton-spooky-TGHXd9J6mK6sM", "image_url": "https://media.giphy.com/media/TGHXd9J6mK6sM/giphy.gif"}, {"permalink_url": "/gifs/cats-light-sabers-Ov5NiLVXT8JEc", "image_url": "https://media.giphy.com/media/Ov5NiLVXT8JEc/giphy.gif"}]',
                featuredSearches: '',
                branded: '',
                defaultTags: '',
            });
        }

wenkesj avatar Aug 04 '17 14:08 wenkesj

Is this ever going to happen? It is possible to do.

ThatLifeofGames avatar May 05 '18 14:05 ThatLifeofGames