giphy-api
giphy-api copied to clipboard
Add support for upload API
upload.giphy.com
Kind of shocked it doesn't have this already tbh. Smh.
You seem to be interested in this issue. I assigned you.
Wait does giphy even have an upload api?
upload.giphy.com
what
There's some bit of interesting code I've run into, I'll try to whip something up.
Looking for a status update @xdumaine
;@/#($-18304773-649295379919737918-"+*:@:#+_(271
Interesting...
LGTG - Looks Good To Goteem
const GOTEEM = (Xander) => GOTEEM(Xander)
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",
@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: '',
});
}
Is this ever going to happen? It is possible to do.