
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Mimepost - the Ruby gem for the mimepost
MimePost API for sending email. You can find out more about MimePost at https://mimepost.com. For this sample, you can use the api key special-key
to test the authorization filters.
This SDK is automatically generated by the Swagger Codegen project:
To build the Ruby code into a gem:
gem build mimepost.gemspec
Then either install the gem locally:
gem install ./mimepost-1.0.0.gem
(for development, run gem install --dev ./mimepost-1.0.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'mimepost', '~> 1.0.0'
If the Ruby gem is hosted at a git repository: https://github.com/mimepost/mimepost-ruby, then add the following in the Gemfile:
gem 'mimepost', :git => 'https://github.com/mimepost/mimepost-ruby.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'mimepost'
# Setup authorization
Mimepost.configure do |config|
# Configure API key authorization: api_key
config.api_key['X-Auth-Token'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-Auth-Token'] = 'Bearer'
end
api_instance = Mimepost::AccountsApi.new
begin
#Get account profile details
result = api_instance.account_profile_get
p result
rescue Mimepost::ApiError => e
puts "Exception when calling AccountsApi->account_profile_get: #{e}"
end
All URIs are relative to https://api.mimepost.com/v1/
Class | Method | HTTP request | Description |
---|---|---|---|
Mimepost::AccountsApi | account_profile_get | GET /account/profile/ | Get account profile details |
Mimepost::AccountsApi | account_profile_post | POST /account/profile/ | Update account profile details |
Mimepost::AccountsApi | settings_get | GET /settings/ | Get all the settings |
Mimepost::AccountsApi | settings_post | POST /settings/ | Set a setting |
Mimepost::DomainsApi | domains_get | GET /domains/ | Get a list of all the domains |
Mimepost::DomainsApi | domains_id_approve_post | POST /domains/{id}/approve/ | Submit request for the approval of a verified domain |
Mimepost::DomainsApi | domains_id_delete | DELETE /domains/{id} | Remove a single domain |
Mimepost::DomainsApi | domains_id_get | GET /domains/{id} | Get the details of a single domain |
Mimepost::DomainsApi | domains_id_verify_dkim_post | POST /domains/{id}/verify_dkim/ | Request for the verification of DKIM record for a single domain |
Mimepost::DomainsApi | domains_id_verify_spf_post | POST /domains/{id}/verify_spf/ | Request for the verification of SPF record for a single domain |
Mimepost::DomainsApi | domains_id_verify_tracking_post | POST /domains/{id}/verify_tracking/ | Request for the verification of tracking record for a single domain |
Mimepost::DomainsApi | domains_post | POST /domains/ | Add single domain |
Mimepost::EmailsApi | send_email | POST /emails/ | Send email |
Mimepost::StatsApi | emaillogs_get | GET /emaillogs/ | Get the logs of a particular date |
Mimepost::StatsApi | stats_get | GET /stats/ | Get the summary of stats for a range of dates |
Mimepost::WebhooksApi | webhooks_get | GET /webhooks/ | Get the list of all the webhooks |
Mimepost::WebhooksApi | webhooks_id_delete | DELETE /webhooks/{id} | Remove a single webhook |
Mimepost::WebhooksApi | webhooks_id_get | GET /webhooks/{id} | Get the details of a single webhook |
Mimepost::WebhooksApi | webhooks_id_put | PUT /webhooks/{id} | Update the details of a single webhook |
Mimepost::WebhooksApi | webhooks_post | POST /webhooks/ | Add single webhook |
FAQs
Unknown package
We found that mimepost 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.