A Giphy API client in Swift.
let g = Giphy(apiKey: Giphy.PublicBetaAPIKey)
// Search
g.search("dogs", nil, offset: nil, rating: nil) { gifs, pagination, err in
// Do something with gifs
}
// By id
g.gif("1") { gifs, err in
// Do something with gif
}
// Get multiple ids
g.gifs(["asfasdf", adsfasdf]) { gifs, err in
// Do something with gifs
}
// Translate text into a gif
g.translate("cat", rating: nil) { gif, err in
// Do something
}
// Get random gif
g.random("optional tag", rating: nil) { gif, err in
}
// Get trending gifs
g.trending(nil, offset: nil, rating: nil) { gifs, pagination, err in
}
- Include sticker API.
- Demo application.
##License Giphy.swift is released under the MIT license. See LICENSE for details.