
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
approveapi_swagger
Advanced tools
ApproveAPISwagger - the Ruby gem for the ApproveAPISwagger
The simple API to request a user's approval on anything via email + sms.
This SDK is automatically generated by the OpenAPI Generator project:
To build the Ruby code into a gem:
gem build approveapi_swagger.gemspec
Then either install the gem locally:
gem install ./approveapi_swagger-1.0.6.gem
(for development, run gem install --dev ./approveapi_swagger-1.0.6.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 'approveapi_swagger', '~> 1.0.6'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'approveapi_swagger', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.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 'approveapi_swagger'
# Setup authorization
ApproveAPISwagger.configure do |config|
# Configure HTTP basic authorization: apiKey
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = ApproveAPISwagger::ApproveApi.new
create_prompt_request = ApproveAPISwagger::CreatePromptRequest.new # CreatePromptRequest |
begin
#Sending a prompt
result = api_instance.create_prompt(create_prompt_request)
p result
rescue ApproveAPISwagger::ApiError => e
puts "Exception when calling ApproveApi->create_prompt: #{e}"
end
All URIs are relative to https://approve.sh
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ApproveAPISwagger::ApproveApi | create_prompt | POST /prompt | Sending a prompt |
| ApproveAPISwagger::ApproveApi | get_prompt | GET /prompt/{id} | Retrieve a prompt |
| ApproveAPISwagger::ApproveApi | get_prompt_status | GET /prompt/{id}/status | Check prompt status |
FAQs
Unknown package
We found that approveapi_swagger 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
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.