Giter Club home page Giter Club logo

rakam-ruby-client's Introduction

rakam_client

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

Installation

Build a gem

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'

Install from Git

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

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

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

Documentation for API Endpoints

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

Documentation for Models

Documentation for Authorization

read_key

  • Type: API key
  • API key parameter name: read_key
  • Location: HTTP header

master_key

  • Type: API key
  • API key parameter name: master_key
  • Location: HTTP header

write_key

  • Type: API key
  • API key parameter name: write_key
  • Location: HTTP header

rakam-ruby-client's People

Contributors

buremba avatar

Watchers

James Cloos avatar Sreekanth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.