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.
A Ruby client library for interacting with the Propertyware API, created and maintained by LeadSimple. This SDK is automatically generated by the OpenAPI Generator project.
DO NOT EDIT THIS README. Edit the one in bin/README.md
instead and rerun the rebuild.sh
file, see below.
Add this gem to your dependencies
# In your .gemspec, if any
s.add_runtime_dependency "propertyware", "~> 1.0.0"
# In your Gemfile
gem "propertyware"
Get a Propertyware API client ID and secret in your Propertyware portal.
You can configure the gem in two ways.
All requests will use a single API key. Use this when you only expect to make requests on behalf of one Propertyware account.
# Load the gem
require 'propertyware'
# Setup authorization
Propertyware.configure do |config|
# Configure API key username: clientId
config.username = 'YOUR API CLIENT ID'
# Configure API key authorization: clientSecret
config.password = 'YOUR API CLIENT SECRET'
end
# Configure your Partner ID header
api_client = Propertyware::ApiClient.new
api_client.default_headers['X-Propertyware-System-ID'] = 'YOUR PARTNER ID'
api_instance = Propertyware::UnitsApi.new
begin
# Get all units
result = api_instance.units_get(query_params: {filters: {"LastUpdatedAtFrom" => '2020-12-15T16:30:46Z'}})
p result
rescue Propertyware::ApiError => e
puts "Exception when calling UnitsApi->units_get: #{e}"
end
If you need to make requests on behalf of several Propertyware accounts, then you will want to configure each request individually. Here's an example of how to do that:
require "propertyware"
# Create a configuration object, configuring credentials
config = Propertyware::Configuration.new do
config.api_key["clientId"] = "<CLIENT_ID>"
config.api_key["clientSecret"] = "<CLIENT_SECRET>"
config.api_key["organizationId"] = "<ORGANIZATION_ID>"
endl
# Build an API client
api_client = Propertyware::ApiClient.new(config)
# Hit their API
buildings_api = Propertyware::BuildingsApi.new(api_client)
buildings_api.get_buildings(query_params: {filters: {"lastModifiedDateTimeStart" => '2020-12-15T16:30:46Z'}})
# => [<Propertyware::Property ...>]
Read the generated docs here. They're actually pretty good!
Besides using OpenAPI Generator, we have some overrides to their templates, to make things easier in our side. You can find about them here.
swagger.json
file from the Propertyware docs by clicking the "Download" buttonbin/propertyware.json
file with itgemVersion
key in bin/config.yml
bin/rebuild.sh
to rebuild everythingFAQs
Unknown package
We found that propertyware 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.