
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
gro_social
Advanced tools
The gro_social gem provides a Ruby interface to the GroSocial REST API. The gem is intended to be lightweight with simple wrappers around the exposed resources.
Add this line to your application's Gemfile:
gem 'gro_social'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gro_social
First you need to set your API credentials with the GroSocial::Client.
GroSocial::Client.api_key = 'YOUR_KEY'
GroSocial::Client.api_password = 'SECRET'
You can enable test mode for the client in a similar fashion.
GroSocial::Client.test_mode = true
Once these configuration options are set appropriately you are ready to simply interact with the supported resources.
There are two classes that you will work with in regards to users:
GroSocial::Users and GroSocial::User. GroSocial::Users represents the
class you will use to locate specific users or iterate over them.
GroSocial::Users can be treated like a Hash when it comes to accessing and
working with the GroSocial::User records.
Retrieval is keyed to the ID for the user you want to access.
user = GroSocial::Users[1234] # GroSocial::User
user.id # '1234'
user.firstname # 'John'
user.lastname # 'Doe'
The << operation is used to both create and update records and its behavior
is based on whether the GroSocial::User being pushed in already has an ID
value set.
user = GroSocial::User.new(
firstname: 'John',
lastname: 'Doe',
email: 'johndoe@example.com',
password: 'secret123'
)
user.id # nil
GroSocial::Users << user
user.id # '12345'
TODO: Document the GroSocial::Subscription API
TODO: Document how to access resources directly via GroSocial::Client.request
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)FAQs
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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.