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 for v4 of Yardi's Guestcard (and soon ILS) API
Add this line to your application's Gemfile:
gem 'yardi'
And then re-install your application's bundle:
$ bundle install
Or install it yourself as:
$ gem install yardi
Configure the gem with your Yardi license, entity and platform:
Yardi.configure do |config|
# Use your web service URL below
config.license_key = ENV['LICENSE_KEY']
config.entity = 'Apartment List'
config.platform = 'SQL Server'
config.enable_event_tracking = true
config.gcs_bucket = ENV['_GCS_BUCKET']
end
Yardi SOAP actions require authentication so the SOAP action classes
(see below) require a :credential
parameter in the initializer.
credential = Yardi::Credential.new(
username: 'my-username',
password: 'my-password',
database: 'test_db_live',
server: '0SQL_DBtest'
)
params = {
agent: Agent.new(first_name: 'Test', last_name: 'Agent'),
credential: credential,
... # any other required params
}
response = Yardi::Request::SomeSoapAction.new(params).perform
To request an action, instantiate the appropriate class (see below) and invoke
#perform
on it. The API response will be parsed and returned as a ruby object.
Insert a guest card into Yardi's system.
agent [Yardi::Parameter::Agent]
credential [Yardi::Parameter::Credential]
information needed to authenticate with Yardilead_source [String]
what Yardi calls TransactionSourcereason [String]
what Yardi calls Event Reasons. This is the reason for
the event, e.g. price inquiry, tour, etc.property [Yardi::Parameter::Property]
the property to associate the guest
card withuser [Yardi::Parameter::User]
the user to associate the guest card withGet all the residents for a given property ID.
credential [Yardi::Parameter::Credential]
information needed to authenticate with Yardiproperty_id [String]
the remote YardiPropertyId
An array of Yardi::Model::Resident
s
Yardi::Request::GetResidents.new(
credential: credential, params: { property_id: 'p263656'}
).perform
=>
[
#<Yardi::Model::Resident:0x007fe922f01d98
@email="jb007@mi6.uk",
@first_name="James",
@last_name="Bond",
@lease_id="sprng007",
@lease_lead_id="p0012007",
@move_in_date="12/23/2014",
@phones=[
{
"PhoneType" => "home",
"PhoneDescription" => "Home",
"PhoneNumber" => "(123) 456-7890"
}
],
@status="Current",
@unit_name="A2"
>,
#<Yardi::Model::Resident:0x007fe922f01d48
@email="itsjasonbourne@cia.gov",
@first_name="Jason",
@last_name="Bourne",
@lease_id="sprng456",
@lease_lead_id="p0041571",
@move_in_date="10/13/2016",
@phones=[
{
"PhoneType" => "cell",
"PhoneDescription" => "Mobile",
"PhoneNumber" => "8507742326"
}
],
@status="Current",
@unit_name="A3"
>
]
Get a list of Yardi::Model::Prospect
s for a given Prospect at the specified property ID.
credential [Yardi::Parameter::Credential]
information needed to authenticate with Yardiparams [Hash]
property_id [String]
prospect [Yardi::Parameter::Prospect]
with_or [Yardi::Parameter::With_or]
An array of Yardi::Model::Prospect
s
Yardi::Request::GetYardiGuestActivity.new(
credential: credential,
params: { property_id: 'p263656', prospect: prospect, with_or: with_or }
).perform
# => [#<Yardi::Model::Prospect>, #<Yardi::Model::Prospect>]
first_name
The Prospect
's first name according to Yardi's databaselast_name
The Prospect
's last name according to Yardi's databaseemail
The Prospect
's email address according to Yardi's databasephones
An Array of the Prospect
's phone numbers, or nil
if there are noneevents
An Array of Yardi::Model::Event
objectsprospect_id
The Prospect
id from Yardi's database e.g. "p00003693"
tenant_id
The tenant id from Yardi's database e.g. "t000456"
To install this gem onto your local machine, run bundle exec rake install
.
To release a new version, follow the instructions here.
If you are interested in contributing to this project, please review the contribution guidelines.
Event
nodesFAQs
Unknown package
We found that yardi 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.