Ruby SDK
Install and use the RankVectors Ruby SDK
Installation
gem install rankvectors
Quick Start
require 'rankvectors'
RankVectors.configure do |config|
config.api_key = 'YOUR_API_KEY'
end
api_instance = RankVectors::ProjectsApi.new
create_project_request = RankVectors::CreateProjectRequest.new(
name: 'My Website',
domain: 'https://example.com',
preferred_sdk: 'ruby'
)
begin
project = api_instance.create_project(create_project_request)
puts "Project created: #{project.id}"
rescue RankVectors::ApiError => e
puts "Exception: #{e}"
end
More Examples
See the API Reference for complete API documentation.