austinkelleher / giphy-api

🎥 Isomorphic JavaScript client for the Giphy.com API
MIT License
86 stars 19 forks source link

Add support for upload API #5

Open austinkelleher opened 8 years ago

austinkelleher commented 8 years ago

upload.giphy.com

xdumaine commented 8 years ago

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

austinkelleher commented 8 years ago

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

xdumaine commented 8 years ago

Wait does giphy even have an upload api?

wenkesj commented 8 years ago

upload.giphy.com

xdumaine commented 8 years ago

what

austinkelleher commented 8 years ago

alt text

xdumaine commented 8 years ago

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

wenkesj commented 8 years ago

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

xdumaine commented 8 years ago

oooh fancy

austinkelleher commented 8 years ago

Looking for a status update @xdumaine

xdumaine commented 8 years ago

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

wenkesj commented 8 years ago

Interesting...

austinkelleher commented 8 years ago

LGTG - Looks Good To Goteem

wenkesj commented 8 years ago
const GOTEEM = (Xander) => GOTEEM(Xander)
wenkesj commented 7 years ago

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 commented 7 years ago

@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: '',
            });
        }
ThatLifeofGames commented 6 years ago

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