Skip to content

rylio/Giphy.swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carthage compatible

Giphy.swift

A Giphy API client in Swift.

Usage

    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

    }

TODO

  • Include sticker API.
  • Demo application.

##License Giphy.swift is released under the MIT license. See LICENSE for details.

About

An Giphy API client in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published