2016-04-15 8 views

Antwort

1

Ich fand heraus, sie sind nicht erlaubt here. Ich habe einen Weg, um durch die superagent npm for ajax verwenden und die giphy api in meiner slackbot-Datei wie folgt:

var url = 'https://api.giphy.com/v1/gifs/search?q=' + 'searchString' + '&api_key=dc6zaTOxFJmzC&rating=r'; 
    request.get(url).end(function(err, res) { 
    // console.log(res.body.data) 
    bot.reply(message, 'giphy for you ' + searchString + giph); 
}); 

Hope this

+0

Dank hilft, dies funktionierte gut. –