Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
giphy-js-sdk-core
Advanced tools
The **Giphy Core SDK** is a wrapper around [Giphy API](https://github.com/Giphy/GiphyAPI).
The Giphy Core SDK is a wrapper around Giphy API.
Giphy is the best way to search, share, and discover GIFs on the Internet. Similar to the way other search engines work, the majority of our content comes from indexing based on the best and most popular GIFs and search terms across the web. We organize all those GIFs so you can find the good content easier and share it out through your social channels. We also feature some of our favorite GIF artists and work with brands to create and promote their original GIF content.
npm
npm install --save giphy-js-sdk-core
var GphApiClient = require('giphy-js-sdk-core')
client = GphApiClient("YOUR_API_KEY")
Search all Giphy GIFs for a word or phrase. Punctuation will be stripped and ignored.
Required Params
Optional Params
/// Gif Search
client.search('gifs', {"q": "cats"})
.then((response) => {
response.data.forEach((gifObject) => {
console.log(gifObject)
})
})
.catch((err) => {
})
/// Sticker Search
client.search('stickers', {"q": "cats"})
.then((response) => {
})
.catch((err) => {
})
Fetch GIFs currently trending online. Hand curated by the Giphy editorial team. The data returned mirrors the GIFs showcased on the Giphy homepage.
Required Params
Optional Params
/// Trending Gifs
client.trending("gifs", {})
.then((response) => {
})
.catch((err) => {
})
/// Trending Stickers
client.trending("stickers", {})
.then((response) => {
})
.catch((err) => {
})
The translate API draws on search, but uses the Giphy "special sauce" to handle translating from one vocabulary to another. In this case, words and phrases to GIFs. Example implementations of translate can be found in the Giphy Slack, Hipchat, Wire, or Dasher integrations. Use a plus or url encode for phrases.
Required Params
Optional Params
/// Translate to a Gif
client.translate('gifs', {"s": 'cool'})
.then((response) => {
})
.catch((err) => {
})
/// Translate to a Sticker
client.translate('stickers', {"s": 'cool'})
.then((response) => {
})
.catch((err) => {
})
Returns a random GIF, limited by tag. Excluding the tag parameter will return a random GIF from the Giphy catalog.
Required Params
Optional Params
/// Random Gif
client.random('gifs', {})
.then((response) => {
})
.catch((err) => {
})
/// Random Sticker
client.random('stickers', {})
.then((response) => {
})
.catch((err) => {
})
Returns meta data about a GIF, by GIF id. In the below example, the GIF ID is "feqkVgjJpYtjy"
Required Params
Optional Params
/// Gif by Id
client.gifByID("feqkVgjJpYtjy")
.then((response) => {
})
.catch((err) => {
})
A multiget version of the get GIF by ID endpoint. In this case the IDs are feqkVgjJpYtjy and 7rzbxdu0ZEXLy. Required Params
Optional Params
/// Gifs by Ids
client.gifsByIDs({"ids": ["feqkVgjJpYtjy", "7rzbxdu0ZEXLy"]})
.then((response) => {
})
.catch((err) => {
})
Fetch Giphy categories
Required Params
Optional Params
/// Gifs by Ids
client.categoriesForGifs({})
.then((response) => {
})
.catch((err) => {
})
Get Subcategories for GIFs given a category. You will need this subcategory object to pull GIFs for this category.
Required Params
Optional Params
/// Gifs by Ids
client.subCategoriesForGifs("tv", {})
.then((response) => {
})
.catch((err) => {
})
Get GIFs for a given Sub-Category.
Required Params
Optional Params
/// Gifs by Ids
client.gifsByCategories("tv", "'the office'", {})
.then((response) => {
})
.catch((err) => {
})
Get term suggestions given a search term, or a substring.
Required Params
Optional Params
/// Gifs by Ids
client.termSuggestions("cool")
.then((response) => {
})
.catch((err) => {
})
FAQs
The **Giphy Core SDK** is a wrapper around [Giphy API](https://github.com/Giphy/GiphyAPI).
The npm package giphy-js-sdk-core receives a total of 261 weekly downloads. As such, giphy-js-sdk-core popularity was classified as not popular.
We found that giphy-js-sdk-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.