Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Ruby wrapper for Freefeed API.
Add following line to your Gemfile:
gem 'freefeed-client'
And then execute:
$ bundle
Or install it system-wide:
$ gem install freefeed-client
First things first, you need to obtain a token for your user. Then create your api client like this:
require 'freefeed'
client = Freefeed::Client.new('yourFreefeedAPIToken')
post = Freefeed::Types::PostCreate.new(
{
post: {
body: 'Hello World!'
},
meta: {
feeds: ['yourusername']
}
}
)
Freefeed::Post.create(client, post)
You can achive the same result without addressing Freefeed::Post
class directly:
require 'freefeed'
client = Freefeed::Client.new('yourFreefeedAPIToken')
post = Freefeed::Types::PostCreate.new(
{
post: {
body: 'Hello World!'
},
meta: {
feeds: ['yourusername']
}
}
)
client.posts_create(post)
You can even skip instantiating PostCreate
type, but you will lose some validation:
require 'freefeed'
client = Freefeed::Client.new('yourFreefeedAPIToken')
client.posts_create({post: {body: 'Hello World!'}, meta: {feeds: ['yourusername']}})
By default, freefeed-client
logs everything to STDOUT. You can change this behavior and provide your own logger class with some options. See example below:
client = Freefeed::Client.new(
'yourFreefeedAPIToken',
logger: Logger.new('log.txt'),
logger_options: {bodies: false, headers: false}
)
FAQs
Unknown package
We found that freefeed-client 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.