Socket
Book a DemoInstallSign in
Socket

osuny_api

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osuny_api

1.0.0
bundlerRubygems
Version published
Maintainers
2
Created
Source

osuny_api

OsunyApi - the Ruby gem for the Osuny

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: v1
  • 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 osuny_api.gemspec

Then either install the gem locally:

gem install ./osuny_api-1.0.0.gem

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

Install from Git

gem 'osuny_api', :git => 'https://github.com/osunyorg/api.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 'osuny_api'
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteApi.new

begin
  #Lists the websites
  result = api_instance.communication_websites_get
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteApi->communication_websites_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteApi.new
id = 'id_example' # String | Website identifier


begin
  #Shows a website
  result = api_instance.communication_websites_id_get(id)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteApi->communication_websites_id_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaCategoryApi.new
website_id = 'website_id_example' # String | Website identifier


begin
  #Lists a website's agenda categories
  result = api_instance.communication_websites_website_id_agenda_categories_get(website_id)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaCategoryApi->communication_websites_website_id_agenda_categories_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier


begin
  #Deletes an agenda category
  api_instance.communication_websites_website_id_agenda_categories_id_delete(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaCategoryApi->communication_websites_website_id_agenda_categories_id_delete: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier


begin
  #Shows an agenda category
  api_instance.communication_websites_website_id_agenda_categories_id_get(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaCategoryApi->communication_websites_website_id_agenda_categories_id_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier
opts = { 
  body: OsunyApi::CategoriesIdBody.new # CategoriesIdBody | 
}

begin
  #Updates an agenda category
  api_instance.communication_websites_website_id_agenda_categories_id_patch(website_id, id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaCategoryApi->communication_websites_website_id_agenda_categories_id_patch: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::AgendaCategoriesBody.new # AgendaCategoriesBody | 
}

begin
  #Creates an agenda category
  api_instance.communication_websites_website_id_agenda_categories_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaCategoryApi->communication_websites_website_id_agenda_categories_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::CategoriesUpsertBody.new # CategoriesUpsertBody | 
}

begin
  #Upsert agenda categories
  api_instance.communication_websites_website_id_agenda_categories_upsert_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaCategoryApi->communication_websites_website_id_agenda_categories_upsert_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaEventApi.new
website_id = 'website_id_example' # String | Website identifier


begin
  #Lists a website's events
  result = api_instance.communication_websites_website_id_agenda_events_get(website_id)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaEventApi->communication_websites_website_id_agenda_events_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaEventApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Event identifier


begin
  #Deletes an event
  api_instance.communication_websites_website_id_agenda_events_id_delete(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaEventApi->communication_websites_website_id_agenda_events_id_delete: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaEventApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Event identifier


begin
  #Shows an event
  api_instance.communication_websites_website_id_agenda_events_id_get(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaEventApi->communication_websites_website_id_agenda_events_id_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaEventApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Event identifier
opts = { 
  body: OsunyApi::EventsIdBody.new # EventsIdBody | 
}

begin
  #Updates an event
  api_instance.communication_websites_website_id_agenda_events_id_patch(website_id, id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaEventApi->communication_websites_website_id_agenda_events_id_patch: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaEventApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::AgendaEventsBody.new # AgendaEventsBody | 
}

begin
  #Creates an event
  api_instance.communication_websites_website_id_agenda_events_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaEventApi->communication_websites_website_id_agenda_events_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsiteAgendaEventApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::EventsUpsertBody.new # EventsUpsertBody | 
}

begin
  #Upsert events
  api_instance.communication_websites_website_id_agenda_events_upsert_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteAgendaEventApi->communication_websites_website_id_agenda_events_upsert_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageApi.new
website_id = 'website_id_example' # String | Website identifier


begin
  #Lists a website's pages
  result = api_instance.communication_websites_website_id_pages_get(website_id)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageApi->communication_websites_website_id_pages_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Page identifier


begin
  #Deletes a page
  api_instance.communication_websites_website_id_pages_id_delete(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageApi->communication_websites_website_id_pages_id_delete: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Page identifier


begin
  #Shows a page
  api_instance.communication_websites_website_id_pages_id_get(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageApi->communication_websites_website_id_pages_id_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Page identifier
opts = { 
  body: OsunyApi::PagesIdBody.new # PagesIdBody | 
}

begin
  #Updates a page
  api_instance.communication_websites_website_id_pages_id_patch(website_id, id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageApi->communication_websites_website_id_pages_id_patch: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::WebsiteIdPagesBody.new # WebsiteIdPagesBody | 
}

begin
  #Creates a page
  api_instance.communication_websites_website_id_pages_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageApi->communication_websites_website_id_pages_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::PagesUpsertBody.new # PagesUpsertBody | 
}

begin
  #Upsert pages
  api_instance.communication_websites_website_id_pages_upsert_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageApi->communication_websites_website_id_pages_upsert_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageCategoryApi.new
website_id = 'website_id_example' # String | Website identifier


begin
  #Lists a website's page categories
  result = api_instance.communication_websites_website_id_pages_categories_get(website_id)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageCategoryApi->communication_websites_website_id_pages_categories_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier


begin
  #Deletes a page category
  api_instance.communication_websites_website_id_pages_categories_id_delete(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageCategoryApi->communication_websites_website_id_pages_categories_id_delete: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier


begin
  #Shows a page category
  api_instance.communication_websites_website_id_pages_categories_id_get(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageCategoryApi->communication_websites_website_id_pages_categories_id_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier
opts = { 
  body: OsunyApi::CategoriesIdBody1.new # CategoriesIdBody1 | 
}

begin
  #Updates a page category
  api_instance.communication_websites_website_id_pages_categories_id_patch(website_id, id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageCategoryApi->communication_websites_website_id_pages_categories_id_patch: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::PagesCategoriesBody.new # PagesCategoriesBody | 
}

begin
  #Creates a page category
  api_instance.communication_websites_website_id_pages_categories_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageCategoryApi->communication_websites_website_id_pages_categories_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePageCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::CategoriesUpsertBody1.new # CategoriesUpsertBody1 | 
}

begin
  #Upsert page categories
  api_instance.communication_websites_website_id_pages_categories_upsert_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePageCategoryApi->communication_websites_website_id_pages_categories_upsert_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePostApi.new
website_id = 'website_id_example' # String | Website identifier


begin
  #Lists a website's posts
  result = api_instance.communication_websites_website_id_posts_get(website_id)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostApi->communication_websites_website_id_posts_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePostApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Post identifier


begin
  #Deletes a post
  api_instance.communication_websites_website_id_posts_id_delete(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostApi->communication_websites_website_id_posts_id_delete: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePostApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Post identifier


begin
  #Shows a post
  api_instance.communication_websites_website_id_posts_id_get(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostApi->communication_websites_website_id_posts_id_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePostApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Post identifier
opts = { 
  body: OsunyApi::PostsIdBody.new # PostsIdBody | 
}

begin
  #Updates a post
  api_instance.communication_websites_website_id_posts_id_patch(website_id, id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostApi->communication_websites_website_id_posts_id_patch: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePostApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::WebsiteIdPostsBody.new # WebsiteIdPostsBody | 
}

begin
  #Creates a post
  api_instance.communication_websites_website_id_posts_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostApi->communication_websites_website_id_posts_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::CommunicationWebsitePostApi.new
website_id = 'website_id_example' # String | Website identifier
opts = { 
  body: OsunyApi::PostsUpsertBody.new # PostsUpsertBody | 
}

begin
  #Upsert posts
  api_instance.communication_websites_website_id_posts_upsert_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostApi->communication_websites_website_id_posts_upsert_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationApi.new

begin
  #Lists organizations
  result = api_instance.university_organizations_get
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationApi->university_organizations_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationApi.new
id = 'id_example' # String | Organization identifier


begin
  #Deletes an organization
  api_instance.university_organizations_id_delete(id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationApi->university_organizations_id_delete: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationApi.new
id = 'id_example' # String | Organization identifier


begin
  #Shows an organization
  api_instance.university_organizations_id_get(id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationApi->university_organizations_id_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationApi.new
id = 'id_example' # String | Organization identifier
opts = { 
  body: OsunyApi::OrganizationsIdBody.new # OrganizationsIdBody | 
}

begin
  #Updates an organization
  api_instance.university_organizations_id_patch(id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationApi->university_organizations_id_patch: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationApi.new
opts = { 
  body: OsunyApi::UniversityOrganizationsBody.new # UniversityOrganizationsBody | 
}

begin
  #Creates a organization
  api_instance.university_organizations_post(opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationApi->university_organizations_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationApi.new
opts = { 
  body: OsunyApi::OrganizationsUpsertBody.new # OrganizationsUpsertBody | 
}

begin
  #Upsert organizations
  api_instance.university_organizations_upsert_post(opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationApi->university_organizations_upsert_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationCategoryApi.new

begin
  #Lists organization categories
  result = api_instance.university_organizations_categories_get
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationCategoryApi->university_organizations_categories_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationCategoryApi.new
id = 'id_example' # String | Category identifier


begin
  #Deletes a organization category
  api_instance.university_organizations_categories_id_delete(id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationCategoryApi->university_organizations_categories_id_delete: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationCategoryApi.new
id = 'id_example' # String | Category identifier


begin
  #Shows a organization category
  api_instance.university_organizations_categories_id_get(id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationCategoryApi->university_organizations_categories_id_get: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationCategoryApi.new
id = 'id_example' # String | Category identifier
opts = { 
  body: OsunyApi::CategoriesIdBody2.new # CategoriesIdBody2 | 
}

begin
  #Updates a organization category
  api_instance.university_organizations_categories_id_patch(id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationCategoryApi->university_organizations_categories_id_patch: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationCategoryApi.new
opts = { 
  body: OsunyApi::OrganizationsCategoriesBody.new # OrganizationsCategoriesBody | 
}

begin
  #Creates a organization category
  api_instance.university_organizations_categories_post(opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationCategoryApi->university_organizations_categories_post: #{e}"
end
# Setup authorization
OsunyApi.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['X-Osuny-Token'] = '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['X-Osuny-Token'] = 'Bearer'
end

api_instance = OsunyApi::UniversityOrganizationCategoryApi.new
opts = { 
  body: OsunyApi::CategoriesUpsertBody2.new # CategoriesUpsertBody2 | 
}

begin
  #Upsert organization categories
  api_instance.university_organizations_categories_upsert_post(opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling UniversityOrganizationCategoryApi->university_organizations_categories_upsert_post: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://demo.osuny.org/api/osuny/v1

ClassMethodHTTP requestDescription
OsunyApi::CommunicationWebsiteApicommunication_websites_getGET /communication/websitesLists the websites
OsunyApi::CommunicationWebsiteApicommunication_websites_id_getGET /communication/websites/{id}Shows a website
OsunyApi::CommunicationWebsiteAgendaCategoryApicommunication_websites_website_id_agenda_categories_getGET /communication/websites/{website_id}/agenda/categoriesLists a website's agenda categories
OsunyApi::CommunicationWebsiteAgendaCategoryApicommunication_websites_website_id_agenda_categories_id_deleteDELETE /communication/websites/{website_id}/agenda/categories/{id}Deletes an agenda category
OsunyApi::CommunicationWebsiteAgendaCategoryApicommunication_websites_website_id_agenda_categories_id_getGET /communication/websites/{website_id}/agenda/categories/{id}Shows an agenda category
OsunyApi::CommunicationWebsiteAgendaCategoryApicommunication_websites_website_id_agenda_categories_id_patchPATCH /communication/websites/{website_id}/agenda/categories/{id}Updates an agenda category
OsunyApi::CommunicationWebsiteAgendaCategoryApicommunication_websites_website_id_agenda_categories_postPOST /communication/websites/{website_id}/agenda/categoriesCreates an agenda category
OsunyApi::CommunicationWebsiteAgendaCategoryApicommunication_websites_website_id_agenda_categories_upsert_postPOST /communication/websites/{website_id}/agenda/categories/upsertUpsert agenda categories
OsunyApi::CommunicationWebsiteAgendaEventApicommunication_websites_website_id_agenda_events_getGET /communication/websites/{website_id}/agenda/eventsLists a website's events
OsunyApi::CommunicationWebsiteAgendaEventApicommunication_websites_website_id_agenda_events_id_deleteDELETE /communication/websites/{website_id}/agenda/events/{id}Deletes an event
OsunyApi::CommunicationWebsiteAgendaEventApicommunication_websites_website_id_agenda_events_id_getGET /communication/websites/{website_id}/agenda/events/{id}Shows an event
OsunyApi::CommunicationWebsiteAgendaEventApicommunication_websites_website_id_agenda_events_id_patchPATCH /communication/websites/{website_id}/agenda/events/{id}Updates an event
OsunyApi::CommunicationWebsiteAgendaEventApicommunication_websites_website_id_agenda_events_postPOST /communication/websites/{website_id}/agenda/eventsCreates an event
OsunyApi::CommunicationWebsiteAgendaEventApicommunication_websites_website_id_agenda_events_upsert_postPOST /communication/websites/{website_id}/agenda/events/upsertUpsert events
OsunyApi::CommunicationWebsitePageApicommunication_websites_website_id_pages_getGET /communication/websites/{website_id}/pagesLists a website's pages
OsunyApi::CommunicationWebsitePageApicommunication_websites_website_id_pages_id_deleteDELETE /communication/websites/{website_id}/pages/{id}Deletes a page
OsunyApi::CommunicationWebsitePageApicommunication_websites_website_id_pages_id_getGET /communication/websites/{website_id}/pages/{id}Shows a page
OsunyApi::CommunicationWebsitePageApicommunication_websites_website_id_pages_id_patchPATCH /communication/websites/{website_id}/pages/{id}Updates a page
OsunyApi::CommunicationWebsitePageApicommunication_websites_website_id_pages_postPOST /communication/websites/{website_id}/pagesCreates a page
OsunyApi::CommunicationWebsitePageApicommunication_websites_website_id_pages_upsert_postPOST /communication/websites/{website_id}/pages/upsertUpsert pages
OsunyApi::CommunicationWebsitePageCategoryApicommunication_websites_website_id_pages_categories_getGET /communication/websites/{website_id}/pages/categoriesLists a website's page categories
OsunyApi::CommunicationWebsitePageCategoryApicommunication_websites_website_id_pages_categories_id_deleteDELETE /communication/websites/{website_id}/pages/categories/{id}Deletes a page category
OsunyApi::CommunicationWebsitePageCategoryApicommunication_websites_website_id_pages_categories_id_getGET /communication/websites/{website_id}/pages/categories/{id}Shows a page category
OsunyApi::CommunicationWebsitePageCategoryApicommunication_websites_website_id_pages_categories_id_patchPATCH /communication/websites/{website_id}/pages/categories/{id}Updates a page category
OsunyApi::CommunicationWebsitePageCategoryApicommunication_websites_website_id_pages_categories_postPOST /communication/websites/{website_id}/pages/categoriesCreates a page category
OsunyApi::CommunicationWebsitePageCategoryApicommunication_websites_website_id_pages_categories_upsert_postPOST /communication/websites/{website_id}/pages/categories/upsertUpsert page categories
OsunyApi::CommunicationWebsitePostApicommunication_websites_website_id_posts_getGET /communication/websites/{website_id}/postsLists a website's posts
OsunyApi::CommunicationWebsitePostApicommunication_websites_website_id_posts_id_deleteDELETE /communication/websites/{website_id}/posts/{id}Deletes a post
OsunyApi::CommunicationWebsitePostApicommunication_websites_website_id_posts_id_getGET /communication/websites/{website_id}/posts/{id}Shows a post
OsunyApi::CommunicationWebsitePostApicommunication_websites_website_id_posts_id_patchPATCH /communication/websites/{website_id}/posts/{id}Updates a post
OsunyApi::CommunicationWebsitePostApicommunication_websites_website_id_posts_postPOST /communication/websites/{website_id}/postsCreates a post
OsunyApi::CommunicationWebsitePostApicommunication_websites_website_id_posts_upsert_postPOST /communication/websites/{website_id}/posts/upsertUpsert posts
OsunyApi::UniversityOrganizationApiuniversity_organizations_getGET /university/organizationsLists organizations
OsunyApi::UniversityOrganizationApiuniversity_organizations_id_deleteDELETE /university/organizations/{id}Deletes an organization
OsunyApi::UniversityOrganizationApiuniversity_organizations_id_getGET /university/organizations/{id}Shows an organization
OsunyApi::UniversityOrganizationApiuniversity_organizations_id_patchPATCH /university/organizations/{id}Updates an organization
OsunyApi::UniversityOrganizationApiuniversity_organizations_postPOST /university/organizationsCreates a organization
OsunyApi::UniversityOrganizationApiuniversity_organizations_upsert_postPOST /university/organizations/upsertUpsert organizations
OsunyApi::UniversityOrganizationCategoryApiuniversity_organizations_categories_getGET /university/organizations/categoriesLists organization categories
OsunyApi::UniversityOrganizationCategoryApiuniversity_organizations_categories_id_deleteDELETE /university/organizations/categories/{id}Deletes a organization category
OsunyApi::UniversityOrganizationCategoryApiuniversity_organizations_categories_id_getGET /university/organizations/categories/{id}Shows a organization category
OsunyApi::UniversityOrganizationCategoryApiuniversity_organizations_categories_id_patchPATCH /university/organizations/categories/{id}Updates a organization category
OsunyApi::UniversityOrganizationCategoryApiuniversity_organizations_categories_postPOST /university/organizations/categoriesCreates a organization category
OsunyApi::UniversityOrganizationCategoryApiuniversity_organizations_categories_upsert_postPOST /university/organizations/categories/upsertUpsert organization categories

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: X-Osuny-Token
  • Location: HTTP header

FAQs

Package last updated on 09 May 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.