Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

samplify_api_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

samplify_api_client

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

samplify_api_client

SamplifyAPIClient - the Ruby gem for the Samplify API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build samplify_api_client.gemspec

Then either install the gem locally:

gem install ./samplify_api_client-1.0.0.gem

(for development, run gem install --dev ./samplify_api_client-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 'samplify_api_client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:

gem 'samplify_api_client', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.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 'samplify_api_client'

# Setup authorization
SamplifyAPIClient.configure do |config|
  # Configure API key authorization: jwt
  config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
end

api_instance = SamplifyAPIClient::AttributesApi.new

country_iso_code = 'country_iso_code_example' # String | Country ISO code

language_iso_code = 'language_iso_code_example' # String | Language ISO code

opts = { 
  id: 'id_example', # String | Only return attributes with the given id
  limit: 10, # Integer | Maximum number of attributes to return
  name: 'name_example', # String | Only return attributes with the given name
  offset: 0, # Integer | The first zero-based offset attribute to return
  sort: ['sort_example'], # Array<String> | Sort the attributes by the given key(s)
  text: 'text_example' # String | Only return attributes with the given text
}

begin
  #list attributes
  result = api_instance.attributes_list(country_iso_code, language_iso_code, opts)
  p result
rescue SamplifyAPIClient::ApiError => e
  puts "Exception when calling AttributesApi->attributes_list: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.uat.pe.researchnow.com

ClassMethodHTTP requestDescription
SamplifyAPIClient::AttributesApiattributes_listGET /sample/v1/attributes/{countryIsoCode}/{languageIsoCode}list attributes
SamplifyAPIClient::AuthApiauth_codePOST /auth/v1/token/codecode auth
SamplifyAPIClient::AuthApiauth_logoutPOST /auth/v1/logoutlogout auth
SamplifyAPIClient::AuthApiauth_passwordPOST /auth/v1/token/passwordpassword auth
SamplifyAPIClient::AuthApiauth_refreshPOST /auth/v1/token/refreshrefresh auth
SamplifyAPIClient::CategoriesApicategories_listGET /sample/v1/categories/surveyTopicslist categories
SamplifyAPIClient::CountriesApicountries_listGET /sample/v1/countrieslist countries
SamplifyAPIClient::DefaultApiswaggerswagger_jsonGET /swagger.jsonDownload public/swagger/swagger.json
SamplifyAPIClient::DefaultApiswaggerswagger_yamlGET /swagger.yamlDownload public/swagger/swagger.yaml
SamplifyAPIClient::EventsApievents_acceptPOST /sample/v1/events/{eventId}/acceptaccept events
SamplifyAPIClient::EventsApievents_getGET /sample/v1/events/{eventId}get events
SamplifyAPIClient::EventsApievents_listGET /sample/v1/eventslist events
SamplifyAPIClient::EventsApievents_rejectPOST /sample/v1/events/{eventId}/rejectreject events
SamplifyAPIClient::EventsApievents_repricePOST /sample/v1/events/lineItems/repricereprice events
SamplifyAPIClient::FeasibilityApifeasibility_showGET /sample/v1/projects/{extProjectId}/feasibilityshow feasibility
SamplifyAPIClient::LineItemsApiline_items_closePOST /sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}/closeclose lineItems
SamplifyAPIClient::LineItemsApiline_items_createPOST /sample/v1/projects/{extProjectId}/lineItemscreate lineItems
SamplifyAPIClient::LineItemsApiline_items_getGET /sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}get lineItems
SamplifyAPIClient::LineItemsApiline_items_launchPOST /sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}/launchlaunch lineItems
SamplifyAPIClient::LineItemsApiline_items_list_line_itemsGET /sample/v1/projects/{extProjectId}/lineItemslistLineItems lineItems
SamplifyAPIClient::LineItemsApiline_items_pausePOST /sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}/pausepause lineItems
SamplifyAPIClient::LineItemsApiline_items_updatePOST /sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}update lineItems
SamplifyAPIClient::ProjectsApiprojects_buyPOST /sample/v1/projects/{extProjectId}/buybuy projects
SamplifyAPIClient::ProjectsApiprojects_closePOST /sample/v1/projects/{extProjectId}/closeclose projects
SamplifyAPIClient::ProjectsApiprojects_createPOST /sample/v1/projectscreate projects
SamplifyAPIClient::ProjectsApiprojects_getGET /sample/v1/projects/{extProjectId}get projects
SamplifyAPIClient::ProjectsApiprojects_get_reportGET /sample/v1/projects/{extProjectId}/reportgetReport projects
SamplifyAPIClient::ProjectsApiprojects_get_reportsGET /sample/v1/projects/reportgetReports projects
SamplifyAPIClient::ProjectsApiprojects_get_survey_end_linksGET /sample/v1/projects/{extProjectId}/surveys/{surveyId}/linksgetSurveyEndLinks projects
SamplifyAPIClient::ProjectsApiprojects_invoicesGET /sample/v1/projects/{extProjectId}/invoicesinvoices projects
SamplifyAPIClient::ProjectsApiprojects_listGET /sample/v1/projectslist projects
SamplifyAPIClient::ProjectsApiprojects_reconcilePOST /sample/v1/projects/{extProjectId}/reconcilereconcile projects
SamplifyAPIClient::ProjectsApiprojects_updatePOST /sample/v1/projects/{extProjectId}update projects
SamplifyAPIClient::RespondentApirespondent_entryGET /respondent/entryentry respondent
SamplifyAPIClient::RespondentApirespondent_exitGET /respondent/exitexit respondent
SamplifyAPIClient::UsersApiusers_get_user_infoGET /sample/v1/users/infogetUserInfo users

Documentation for Models

Documentation for Authorization

jwt

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

FAQs

Package last updated on 02 Mar 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc