RakamClient - the Ruby gem for the Rakam API Documentation
An analytics platform API that lets you create your own analytics services.
This SDK is automatically generated by the Swagger Codegen project:
- API version: 0.5
- Package version: 0.5
- Build date: 2016-07-20T00:31:04.788+03:00
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
To build the Ruby code into a gem:
gem build rakam_client.gemspec
Then either install the gem locally:
gem install ./rakam_client-0.5.gem
(for development, run gem install --dev ./rakam_client-0.5.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 'rakam_client', '~> 0.5'
If the Ruby gem is hosted at a git repository: https://github.com/rakam-io/rakam-ruby-client, then add the following in the Gemfile:
gem 'rakam_client', :git => 'https://github.com/rakam-io/rakam-ruby-client.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 'rakam_client'
# Setup authorization
RakamClient.configure do |config|
# Configure API key authorization: master_key
config.api_key['master_key'] = '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['master_key'] = 'Bearer'
end
api_instance = RakamClient::AdminApi.new
project_add_custom_fields_to_schema = RakamClient::ProjectAddCustomFieldsToSchema.new # ProjectAddCustomFieldsToSchema |
begin
#Add fields to collections by transforming other schemas
result = api_instance.add_custom_fields_to_schema(project_add_custom_fields_to_schema)
p result
rescue RakamClient::ApiError => e
puts "Exception when calling AdminApi->add_custom_fields_to_schema: #{e}"
end
All URIs are relative to https://app.rakam.io/
Class | Method | HTTP request | Description |
---|---|---|---|
RakamClient::AdminApi | add_custom_fields_to_schema | POST /project/schema/add/custom | Add fields to collections by transforming other schemas |
RakamClient::AdminApi | add_fields_to_schema | POST /project/schema/add | Add fields to collections |
RakamClient::AdminApi | check_api_keys | POST /project/check-api-keys | Create API Keys |
RakamClient::AdminApi | check_lock_key | POST /admin/lock_key | Check lock key |
RakamClient::AdminApi | collections | POST /project/collection | Get collection names |
RakamClient::AdminApi | create_api_keys | POST /project/create-api-keys | Create API Keys |
RakamClient::AdminApi | create_project | POST /project/create | Create project |
RakamClient::AdminApi | delete_project | DELETE /project/delete | Delete project |
RakamClient::AdminApi | get_configurations | GET /admin/configurations | List installed modules |
RakamClient::AdminApi | get_projects | GET /project/list | List created projects |
RakamClient::AdminApi | get_stats | POST /project/stats | Get project stats |
RakamClient::AdminApi | get_types | GET /admin/types | Get types |
RakamClient::AdminApi | revoke_api_keys | DELETE /project/revoke-api-keys | Revoke API Keys |
RakamClient::AdminApi | schema | POST /project/schema | Get collection schema |
RakamClient::CollectApi | batch_events | POST /event/batch | Collect multiple events |
RakamClient::CollectApi | bulk_events | POST /event/bulk | Collect Bulk events |
RakamClient::CollectApi | bulk_events_remote | POST /event/bulk/remote | Collect bulk events from remote |
RakamClient::CollectApi | collect_event | POST /event/collect | Collect event |
RakamClient::CollectApi | commit_bulk_events | POST /event/bulk/commit | Commit Bulk events |
RakamClient::ContinuousqueryApi | create_query | POST /continuous-query/create | Create stream |
RakamClient::ContinuousqueryApi | delete_query | POST /continuous-query/delete | Delete stream |
RakamClient::ContinuousqueryApi | get_query | POST /continuous-query/get | Get continuous query |
RakamClient::ContinuousqueryApi | get_schema_of_query | POST /continuous-query/schema | Get query schema |
RakamClient::ContinuousqueryApi | list_queries | POST /continuous-query/list | List queries |
RakamClient::ContinuousqueryApi | test_query | POST /continuous-query/test | Test continuous query |
RakamClient::EventexplorerApi | analyze_events | POST /event-explorer/analyze | Perform simple query on event data |
RakamClient::EventexplorerApi | create_precomputed_table | POST /event-explorer/pre_calculate | Create Pre-computed table |
RakamClient::EventexplorerApi | get_event_statistics | POST /event-explorer/statistics | Event statistics |
RakamClient::EventexplorerApi | get_extra_dimensions | GET /event-explorer/extra_dimensions | Event statistics |
RakamClient::FunnelApi | analyze_funnel | POST /funnel/analyze | Execute query |
RakamClient::MaterializedviewApi | create_view | POST /materialized-view/create | Create view |
RakamClient::MaterializedviewApi | delete_view | POST /materialized-view/delete | Delete materialized view |
RakamClient::MaterializedviewApi | get_schema_of_view | POST /materialized-view/schema | Get schemas |
RakamClient::MaterializedviewApi | get_view | POST /materialized-view/get | Get view |
RakamClient::MaterializedviewApi | list_views | POST /materialized-view/list | List views |
RakamClient::QueryApi | execute | POST /query/execute | Execute query on event data-set |
RakamClient::QueryApi | explain | POST /query/explain | Explain query |
RakamClient::QueryApi | metadata | POST /query/metadata | Test query |
RakamClient::RealtimeApi | create_table | POST /realtime/create | Create report |
RakamClient::RealtimeApi | delete_table | POST /realtime/delete | Delete report |
RakamClient::RealtimeApi | list_tables | POST /realtime/list | List queries |
RakamClient::RealtimeApi | query_table | POST /realtime/get | Get report |
RakamClient::RecipeApi | export_recipe | GET /recipe/export | Export recipe |
RakamClient::RecipeApi | install_recipe | POST /recipe/install | Install recipe |
RakamClient::RetentionApi | analyze_retention | POST /retention/analyze | Execute query |
RakamClient::UserApi | create_segment | POST /user/create_segment | Get events of the user |
RakamClient::UserApi | create_user | POST /user/create | Create new user |
RakamClient::UserApi | create_users | POST /user/batch/create | Create multiple new users |
RakamClient::UserApi | get_events | POST /user/get_events | Get events of the user |
RakamClient::UserApi | get_metadata | GET /user/metadata | Get user storage metadata |
RakamClient::UserApi | get_user | POST /user/get | Get user |
RakamClient::UserApi | increment_property | POST /user/increment_property | Set user property |
RakamClient::UserApi | search_users | POST /user/search | Search users |
RakamClient::UserApi | set_properties | POST /user/set_properties | Set user properties |
RakamClient::UserApi | set_properties_once | POST /user/set_properties_once | Set user properties once |
RakamClient::UserApi | unset_property | POST /user/unset_properties | Unset user property |
RakamClient::UseractionApi | batch | POST /user/action/email/batch | Apply batch operation |
RakamClient::UseractionApi | send | POST /user/action/email/single | Perform action for single user |
- RakamClient::AnalyzeRequest
- RakamClient::BulkEventRemote
- RakamClient::CheckLockKey
- RakamClient::Collection
- RakamClient::CollectionDefinition
- RakamClient::CollectionEvent
- RakamClient::CommitBulkEvents
- RakamClient::CommitRequest
- RakamClient::Condition
- RakamClient::ConfigItem
- RakamClient::ContinuousQuery
- RakamClient::ContinuousQueryDeleteQuery
- RakamClient::ContinuousQueryGetQuery
- RakamClient::ContinuousQueryGetSchemaOfQuery
- RakamClient::ContinuousQueryTestQuery
- RakamClient::CreatePrecomputedTable
- RakamClient::CreateProject
- RakamClient::EmailActionConfig
- RakamClient::ErrorMessage
- RakamClient::Event
- RakamClient::EventContext
- RakamClient::EventExplorerGetEventStatistics
- RakamClient::EventFilter
- RakamClient::EventFilterAggregation
- RakamClient::EventList
- RakamClient::Execute
- RakamClient::Explain
- RakamClient::ExportQuery
- RakamClient::FunnelQuery
- RakamClient::FunnelStep
- RakamClient::FunnelWindow
- RakamClient::GroupBy
- RakamClient::Library
- RakamClient::MappingPlugin
- RakamClient::MaterializedView
- RakamClient::MaterializedViewDeleteView
- RakamClient::MaterializedViewGetSchemaOfView
- RakamClient::MaterializedViewGetView
- RakamClient::MaterializedViewSchema
- RakamClient::Measure
- RakamClient::MetadataResponse
- RakamClient::ModuleDescriptor
- RakamClient::OLAPTable
- RakamClient::Ordering
- RakamClient::PrecalculatedTable
- RakamClient::ProjectAddCustomFieldsToSchema
- RakamClient::ProjectAddFieldsToSchema
- RakamClient::ProjectApiKeys
- RakamClient::ProjectCheckApiKeys
- RakamClient::ProjectGetStats
- RakamClient::ProjectSchema
- RakamClient::QueryError
- RakamClient::QueryMetadata
- RakamClient::QueryResult
- RakamClient::RealTimeQueryResult
- RakamClient::RealTimeReport
- RakamClient::RealtimeDeleteTable
- RakamClient::RealtimeQueryTable
- RakamClient::Recipe
- RakamClient::Reference
- RakamClient::ResponseQuery
- RakamClient::RetentionAction
- RakamClient::RetentionQuery
- RakamClient::SchemaField
- RakamClient::SchemaFieldInfo
- RakamClient::Sorting
- RakamClient::Stats
- RakamClient::SuccessMessage
- RakamClient::Timeframe
- RakamClient::User
- RakamClient::UserContext
- RakamClient::UserCreateSegment
- RakamClient::UserCreateUsers
- RakamClient::UserEmailActionBatch
- RakamClient::UserEmailActionSend
- RakamClient::UserGetEvents
- RakamClient::UserGetUser
- RakamClient::UserIncrementProperty
- RakamClient::UserSearchUsers
- RakamClient::UserUnsetProperty
- Type: API key
- API key parameter name: read_key
- Location: HTTP header
- Type: API key
- API key parameter name: master_key
- Location: HTTP header
- Type: API key
- API key parameter name: write_key
- Location: HTTP header