
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
gfycat-sdk
Advanced tools
Javascript API wrapper for Gfycat.com API that supports callbacks and promises.
npm install gfycat-sdk --save
Obtain a client_id and client_secret for your integration from the Gfycat developers portal.
const Gfycat = require('gfycat-sdk');
var gfycat = new Gfycat({clientId: YOUR_CLIENT_ID, clientSecret: YOUR_CLIENT_SECRET});
For security reasons, we suggest storing the client id and secret in a secure location.
Returns a callback, or promise that resolves to the api authentication token that is valid for 1 hour
gfycat.authenticate((err, data) => {
//Your app is now authenticated
assert.equal(data.access_token, gfycat.token);
console.log('token', gfycat.token);
})
gfycat.authenticate().then(res => {
//Your app is now authenticated
assert.equal(res.access_token, gfycat.token);
console.log('token', gfycat.token);
});
Returns a promise that resolves to a gfycats object. API supports pagination using cursors and count/first. The optional random attribute will randomize the result returned by the API - do not supply pagination attributes with this.
let options = {
search_text: 'hello',
count: 20,
first: 30
};
gfycat.search(options).then(data => {
console.log('gfycats', data);
});
Returns user account information by username
let options = {
userId: 'myUsername'
};
gfycat.getUserDetails(options).then(data => {
console.log(data);
});
Return Gfycat json by gfycat name
let options = {
gfyId: 'richpepperyferret'
};
gfycat.getGifDetails(options).then(data => console.log(data))
Return a list of Gfycats related to the one provided.
let options = {
gfyId: 'richpepperyferret'
};
gfycat.getRelatedContent(options).then(data => console.log(data))
Return the gfycats uploaded and shared by a given username.
let options = {
userId: 'myUsername'
};
gfycat.userFeed(options).then(data => console.log(data))
Return JSON of currently trending gifs
let options = {
count: 10,
cursor: ''
}
gfycat.trendingGifs(options).then(data => console.log(data))
Return JSON of currently trending tags
let options = {
count: 10,
populated: false
}
gfycat.trendingTags(options).then(data => console.log(data))
FAQs
Javascript module for gfycat.com API supporting promises and callbacks
We found that gfycat-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.