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

notifo-io-easierlife

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notifo-io-easierlife

  • 1.0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

swagger_client

SwaggerClient - the Ruby gem for the Notifo 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.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build swagger_client.gemspec

Then either install the gem locally:

gem install ./swagger_client-1.0.0.gem

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

Install from Git

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 'swagger_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.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 'swagger_client'

api_instance = SwaggerClient::AppsApi.new
app_id = 'app_id_example' # String | The id of the app.
contributor_id = 'contributor_id_example' # String | The contributor to remove.


begin
  #Delete an app contributor.
  result = api_instance.apps_delete_contributor(app_id, contributor_id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_delete_contributor: #{e}"
end

api_instance = SwaggerClient::AppsApi.new
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
language = 'language_example' # String | The language.


begin
  #Delete an app email template.
  api_instance.apps_delete_email_template(app_id, language)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_delete_email_template: #{e}"
end

api_instance = SwaggerClient::AppsApi.new
app_id = 'app_id_example' # String | The id of the app.


begin
  #Get app by id.
  result = api_instance.apps_get_app(app_id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_get_app: #{e}"
end

api_instance = SwaggerClient::AppsApi.new

begin
  #Get the user apps.
  result = api_instance.apps_get_apps
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_get_apps: #{e}"
end

api_instance = SwaggerClient::AppsApi.new
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.


begin
  #Get the app email templates.
  result = api_instance.apps_get_email_templates(app_id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_get_email_templates: #{e}"
end

api_instance = SwaggerClient::AppsApi.new
body = SwaggerClient::UpsertAppDto.new # UpsertAppDto | The request object.


begin
  #Create an app.
  result = api_instance.apps_post_app(body)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_post_app: #{e}"
end

api_instance = SwaggerClient::AppsApi.new
body = SwaggerClient::AddContributorDto.new # AddContributorDto | The request object.
app_id = 'app_id_example' # String | The id of the app.


begin
  #Add an app contributor.
  result = api_instance.apps_post_contributor(body, app_id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_post_contributor: #{e}"
end

api_instance = SwaggerClient::AppsApi.new
body = SwaggerClient::CreateEmailTemplateDto.new # CreateEmailTemplateDto | The request object.
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.


begin
  #Create an app email template.
  result = api_instance.apps_post_email_template(body, app_id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_post_email_template: #{e}"
end

api_instance = SwaggerClient::AppsApi.new
body = SwaggerClient::UpsertAppDto.new # UpsertAppDto | The request object.
app_id = 'app_id_example' # String | The app id to update.


begin
  #Update an app.
  result = api_instance.apps_put_app(body, app_id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_put_app: #{e}"
end

api_instance = SwaggerClient::AppsApi.new
body = SwaggerClient::EmailTemplateDto.new # EmailTemplateDto | The request object.
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
language = 'language_example' # String | The language.


begin
  #Update an app email template.
  api_instance.apps_put_email_template(body, app_id, language)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling AppsApi->apps_put_email_template: #{e}"
end

api_instance = SwaggerClient::ConfigsApi.new

begin
  #Get all supported languages.
  result = api_instance.configs_get_languages
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling ConfigsApi->configs_get_languages: #{e}"
end

api_instance = SwaggerClient::ConfigsApi.new

begin
  #Get all supported timezones.
  result = api_instance.configs_get_timezones
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling ConfigsApi->configs_get_timezones: #{e}"
end

api_instance = SwaggerClient::EventsApi.new
app_id = 'app_id_example' # String | The app where the events belongs to.
opts = { 
  query: 'query_example', # String | The optional query to search for items.
  take: 56, # Integer | The number of items to return.
  skip: 56 # Integer | The number of items to skip.
}

begin
  #Query events.
  result = api_instance.events_get_events(app_id, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling EventsApi->events_get_events: #{e}"
end

api_instance = SwaggerClient::EventsApi.new
body = SwaggerClient::PublishManyDto.new # PublishManyDto | The publish request.
app_id = 'app_id_example' # String | The app where the events belongs to.


begin
  #Publish events.
  api_instance.events_post_events(body, app_id)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling EventsApi->events_post_events: #{e}"
end

api_instance = SwaggerClient::LogsApi.new
app_id = 'app_id_example' # String | The app where the log entries belongs to.
opts = { 
  query: 'query_example', # String | The optional query to search for items.
  take: 56, # Integer | The number of items to return.
  skip: 56 # Integer | The number of items to skip.
}

begin
  #Query log entries.
  result = api_instance.logs_get_logs(app_id, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling LogsApi->logs_get_logs: #{e}"
end

api_instance = SwaggerClient::MediaApi.new
app_id = 'app_id_example' # String | The app id where the media belongs to.
file_name = 'file_name_example' # String | The file name of the media.


begin
  #Delete a media.
  api_instance.media_delete(app_id, file_name)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling MediaApi->media_delete: #{e}"
end

api_instance = SwaggerClient::MediaApi.new
app_id = 'app_id_example' # String | The app id where the media belongs to.
file_name = 'file_name_example' # String | The name of the media to download.
opts = { 
  cache: 789, # Integer | The cache duration.
  download: 56, # Integer | Set it to 1 to create a download response.
  width: 56, # Integer | The target width when an image.
  height: 56, # Integer | The target height when an image.
  quality: 56, # Integer | The target quality when an image.
  preset: 'preset_example', # String | A preset dimension.
  mode: SwaggerClient::ResizeMode.new, # ResizeMode | The resize mode.
  focus_x: 3.4, # Float | The x position of the focues point.
  focus_y: 3.4, # Float | The y position of the focues point.
  force: true # BOOLEAN | True to resize it and clear the cache.
}

begin
  #Download a media object.
  result = api_instance.media_download(app_id, file_name, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling MediaApi->media_download: #{e}"
end

api_instance = SwaggerClient::MediaApi.new
app_id = 'app_id_example' # String | The app id where the media belongs to.
file_name = 'file_name_example' # String | The name of the media to download.
opts = { 
  cache: 789, # Integer | The cache duration.
  download: 56, # Integer | Set it to 1 to create a download response.
  width: 56, # Integer | The target width when an image.
  height: 56, # Integer | The target height when an image.
  quality: 56, # Integer | The target quality when an image.
  preset: 'preset_example', # String | A preset dimension.
  mode: SwaggerClient::ResizeMode.new, # ResizeMode | The resize mode.
  focus_x: 3.4, # Float | The x position of the focues point.
  focus_y: 3.4, # Float | The y position of the focues point.
  force: true # BOOLEAN | True to resize it and clear the cache.
}

begin
  #Download a media object.
  result = api_instance.media_download2(app_id, file_name, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling MediaApi->media_download2: #{e}"
end

api_instance = SwaggerClient::MediaApi.new
app_id = 'app_id_example' # String | The app where the media belongs to.
opts = { 
  query: 'query_example', # String | The optional query to search for items.
  take: 56, # Integer | The number of items to return.
  skip: 56 # Integer | The number of items to skip.
}

begin
  #Query media items.
  result = api_instance.media_get_medias(app_id, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling MediaApi->media_get_medias: #{e}"
end

api_instance = SwaggerClient::MediaApi.new
app_id = 'app_id_example' # String | The app id where the media belongs to.
opts = { 
  file: 'file_example' # String | 
}

begin
  #Upload a media object.
  api_instance.media_upload(app_id, opts)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling MediaApi->media_upload: #{e}"
end

api_instance = SwaggerClient::TemplatesApi.new
app_id = 'app_id_example' # String | The app where the templates belong to.
code = 'code_example' # String | The template code to delete.


begin
  #Delete a template.
  result = api_instance.templates_delete_template(app_id, code)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling TemplatesApi->templates_delete_template: #{e}"
end

api_instance = SwaggerClient::TemplatesApi.new
app_id = 'app_id_example' # String | The app where the templates belongs to.
opts = { 
  query: 'query_example', # String | The optional query to search for items.
  take: 56, # Integer | The number of items to return.
  skip: 56 # Integer | The number of items to skip.
}

begin
  #Query templates.
  result = api_instance.templates_get_templates(app_id, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling TemplatesApi->templates_get_templates: #{e}"
end

api_instance = SwaggerClient::TemplatesApi.new
body = SwaggerClient::UpsertTemplatesDto.new # UpsertTemplatesDto | The upsert request.
app_id = 'app_id_example' # String | The app where the templates belong to.


begin
  #Upsert templates.
  result = api_instance.templates_post_templates(body, app_id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling TemplatesApi->templates_post_templates: #{e}"
end

api_instance = SwaggerClient::TopicsApi.new
app_id = 'app_id_example' # String | The app where the topics belongs to.
opts = { 
  query: 'query_example', # String | The optional query to search for items.
  take: 56, # Integer | The number of items to return.
  skip: 56 # Integer | The number of items to skip.
}

begin
  #Query topics.
  result = api_instance.topics_get_topics(app_id, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling TopicsApi->topics_get_topics: #{e}"
end

api_instance = SwaggerClient::UserApi.new
topic = 'topic_example' # String | The topic path.


begin
  #Deletes a user subscription.
  api_instance.user_delete_subscription(topic)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UserApi->user_delete_subscription: #{e}"
end

api_instance = SwaggerClient::UserApi.new
topic = 'topic_example' # String | The topic path.


begin
  #Gets a user subscription.
  result = api_instance.user_get_subscription(topic)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UserApi->user_get_subscription: #{e}"
end

api_instance = SwaggerClient::UserApi.new

begin
  #Get the current user.
  result = api_instance.user_get_user
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UserApi->user_get_user: #{e}"
end

api_instance = SwaggerClient::UserApi.new
body = SwaggerClient::SubscriptionDto.new # SubscriptionDto | The subscription settings.


begin
  #Creates a user subscription.
  api_instance.user_post_subscription(body)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UserApi->user_post_subscription: #{e}"
end

api_instance = SwaggerClient::UserApi.new
body = SwaggerClient::UpdateProfileDto.new # UpdateProfileDto | The upsert request.


begin
  #Update the user.
  result = api_instance.user_post_user(body)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UserApi->user_post_user: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
app_id = 'app_id_example' # String | The app where the users belong to.
id = 'id_example' # String | The user id.
prefix = 'prefix_example' # String | The topic prefix.


begin
  #Remove an allowed topic.
  api_instance.users_delete_allowed_topic(app_id, id, prefix)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_delete_allowed_topic: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
app_id = 'app_id_example' # String | The app where the user belongs to.
id = 'id_example' # String | The user id.
prefix = 'prefix_example' # String | The topic prefix.


begin
  #Remove a user subscriptions.
  api_instance.users_delete_subscription(app_id, id, prefix)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_delete_subscription: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
app_id = 'app_id_example' # String | The app where the users belongs to.
id = 'id_example' # String | The user id to delete.


begin
  #Delete a user.
  result = api_instance.users_delete_user(app_id, id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_delete_user: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
app_id = 'app_id_example' # String | The app where the user belongs to.
id = 'id_example' # String | The user id.
opts = { 
  query: 'query_example', # String | The optional query to search for items.
  take: 56, # Integer | The number of items to return.
  skip: 56 # Integer | The number of items to skip.
}

begin
  #Query user subscriptions.
  result = api_instance.users_get_subscriptions(app_id, id, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_get_subscriptions: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
app_id = 'app_id_example' # String | The app where the user belongs to.
id = 'id_example' # String | The user id.


begin
  #Get a user.
  result = api_instance.users_get_user(app_id, id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_get_user: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
app_id = 'app_id_example' # String | The app where the users belongs to.
opts = { 
  query: 'query_example', # String | The optional query to search for items.
  take: 56, # Integer | The number of items to return.
  skip: 56 # Integer | The number of items to skip.
}

begin
  #Query users.
  result = api_instance.users_get_users(app_id, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_get_users: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
body = SwaggerClient::AddAllowedTopicDto.new # AddAllowedTopicDto | The upsert request.
app_id = 'app_id_example' # String | The app where the users belong to.
id = 'id_example' # String | The user id.


begin
  #Add an allowed topic.
  api_instance.users_post_allowed_topic(body, app_id, id)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_post_allowed_topic: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
body = SwaggerClient::SubscriptionDto.new # SubscriptionDto | The subscription object.
app_id = 'app_id_example' # String | The app where the user belongs to.
id = 'id_example' # String | The user id.


begin
  #Upsert a user subscriptions.
  api_instance.users_post_subscription(body, app_id, id)
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_post_subscription: #{e}"
end

api_instance = SwaggerClient::UsersApi.new
body = SwaggerClient::UpsertUsersDto.new # UpsertUsersDto | The upsert request.
app_id = 'app_id_example' # String | The app where the users belong to.


begin
  #Upsert users.
  result = api_instance.users_post_users(body, app_id)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling UsersApi->users_post_users: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://app.notifo.io

ClassMethodHTTP requestDescription
SwaggerClient::AppsApiapps_delete_contributorPOST /api/apps/{appId}/contributors/{contributorId}Delete an app contributor.
SwaggerClient::AppsApiapps_delete_email_templatePOST /api/apps/{appId}/email-templates/{language}Delete an app email template.
SwaggerClient::AppsApiapps_get_appGET /api/apps/{appId}Get app by id.
SwaggerClient::AppsApiapps_get_appsGET /api/appsGet the user apps.
SwaggerClient::AppsApiapps_get_email_templatesGET /api/apps/{appId}/email-templatesGet the app email templates.
SwaggerClient::AppsApiapps_post_appPOST /api/appsCreate an app.
SwaggerClient::AppsApiapps_post_contributorPOST /api/apps/{appId}/contributorsAdd an app contributor.
SwaggerClient::AppsApiapps_post_email_templatePOST /api/apps/{appId}/email-templatesCreate an app email template.
SwaggerClient::AppsApiapps_put_appPOST /api/apps/{appId}Update an app.
SwaggerClient::AppsApiapps_put_email_templatePUT /api/apps/{appId}/email-templates/{language}Update an app email template.
SwaggerClient::ConfigsApiconfigs_get_languagesGET /api/languagesGet all supported languages.
SwaggerClient::ConfigsApiconfigs_get_timezonesGET /api/timezonesGet all supported timezones.
SwaggerClient::EventsApievents_get_eventsGET /api/apps/{appId}/eventsQuery events.
SwaggerClient::EventsApievents_post_eventsPOST /api/apps/{appId}/eventsPublish events.
SwaggerClient::LogsApilogs_get_logsGET /api/apps/{appId}/logsQuery log entries.
SwaggerClient::MediaApimedia_deleteDELETE /api/apps/{appId}/media/{fileName}Delete a media.
SwaggerClient::MediaApimedia_downloadGET /api/apps/{appId}/media/{fileName}Download a media object.
SwaggerClient::MediaApimedia_download2GET /api/assets/{appId}/{fileName}Download a media object.
SwaggerClient::MediaApimedia_get_mediasGET /api/apps/{appId}/mediaQuery media items.
SwaggerClient::MediaApimedia_uploadPOST /api/apps/{appId}/mediaUpload a media object.
SwaggerClient::TemplatesApitemplates_delete_templateDELETE /api/apps/{appId}/templates/{code}Delete a template.
SwaggerClient::TemplatesApitemplates_get_templatesGET /api/apps/{appId}/templatesQuery templates.
SwaggerClient::TemplatesApitemplates_post_templatesPOST /api/apps/{appId}/templatesUpsert templates.
SwaggerClient::TopicsApitopics_get_topicsGET /api/apps/{appId}/topicsQuery topics.
SwaggerClient::UserApiuser_delete_subscriptionDELETE /api/me/subscriptions/{topic}Deletes a user subscription.
SwaggerClient::UserApiuser_get_subscriptionGET /api/me/subscriptions/{topic}Gets a user subscription.
SwaggerClient::UserApiuser_get_userGET /api/meGet the current user.
SwaggerClient::UserApiuser_post_subscriptionPOST /api/me/subscriptionsCreates a user subscription.
SwaggerClient::UserApiuser_post_userPOST /api/meUpdate the user.
SwaggerClient::UsersApiusers_delete_allowed_topicDELETE /api/apps/{appId}/users/{id}/allowed-topics/{prefix}Remove an allowed topic.
SwaggerClient::UsersApiusers_delete_subscriptionDELETE /api/apps/{appId}/users/{id}/subscriptions/{prefix}Remove a user subscriptions.
SwaggerClient::UsersApiusers_delete_userDELETE /api/apps/{appId}/users/{id}Delete a user.
SwaggerClient::UsersApiusers_get_subscriptionsGET /api/apps/{appId}/users/{id}/subscriptionsQuery user subscriptions.
SwaggerClient::UsersApiusers_get_userGET /api/apps/{appId}/users/{id}Get a user.
SwaggerClient::UsersApiusers_get_usersGET /api/apps/{appId}/usersQuery users.
SwaggerClient::UsersApiusers_post_allowed_topicPOST /api/apps/{appId}/users/{id}/allowed-topicsAdd an allowed topic.
SwaggerClient::UsersApiusers_post_subscriptionPOST /api/apps/{appId}/users/{id}/subscriptionsUpsert a user subscriptions.
SwaggerClient::UsersApiusers_post_usersPOST /api/apps/{appId}/usersUpsert users.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

FAQs

Package last updated on 19 Feb 2021

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