Project

osuny_api

0.0
A long-lived project that still receives updates
Ruby Gem for the Osuny API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 3.6, >= 3.6.0
~> 0.6, >= 0.6.3

Runtime

~> 2.1, >= 2.1.0
~> 1.0, >= 1.0.1
 Project Readme

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
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists the websites
  result = api_instance.communication_websites_get(opts)
  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
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists a website's agenda categories
  result = api_instance.communication_websites_website_id_agenda_categories_get(website_id, opts)
  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
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists a website's events
  result = api_instance.communication_websites_website_id_agenda_events_get(website_id, opts)
  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::CommunicationWebsiteMediaApi.new
opts = {
  url: 'url_example', # String |
  file: 'file_example' # String |
}

begin
  #Create a media
  api_instance.communication_medias_post(opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsiteMediaApi->communication_medias_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 = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists a website's pages
  result = api_instance.communication_websites_website_id_pages_get(website_id, opts)
  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
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists a website's page categories
  result = api_instance.communication_websites_website_id_pages_categories_get(website_id, opts)
  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::CommunicationWebsitePortfolioCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists a website's portfolio categories
  result = api_instance.communication_websites_website_id_portfolio_categories_get(website_id, opts)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioCategoryApi->communication_websites_website_id_portfolio_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::CommunicationWebsitePortfolioCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier


begin
  #Deletes a portfolio category
  api_instance.communication_websites_website_id_portfolio_categories_id_delete(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioCategoryApi->communication_websites_website_id_portfolio_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::CommunicationWebsitePortfolioCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier


begin
  #Shows a portfolio category
  api_instance.communication_websites_website_id_portfolio_categories_id_get(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioCategoryApi->communication_websites_website_id_portfolio_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::CommunicationWebsitePortfolioCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier
opts = {
  body: OsunyApi::CategoriesIdBody2.new # CategoriesIdBody2 |
}

begin
  #Updates a portfolio category
  api_instance.communication_websites_website_id_portfolio_categories_id_patch(website_id, id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioCategoryApi->communication_websites_website_id_portfolio_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::CommunicationWebsitePortfolioCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  body: OsunyApi::PortfolioCategoriesBody.new # PortfolioCategoriesBody |
}

begin
  #Creates a portfolio category
  api_instance.communication_websites_website_id_portfolio_categories_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioCategoryApi->communication_websites_website_id_portfolio_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::CommunicationWebsitePortfolioCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  body: OsunyApi::CategoriesUpsertBody2.new # CategoriesUpsertBody2 |
}

begin
  #Upsert portfolio categories
  api_instance.communication_websites_website_id_portfolio_categories_upsert_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioCategoryApi->communication_websites_website_id_portfolio_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::CommunicationWebsitePortfolioProjectApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists a website's projects
  result = api_instance.communication_websites_website_id_portfolio_projects_get(website_id, opts)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioProjectApi->communication_websites_website_id_portfolio_projects_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::CommunicationWebsitePortfolioProjectApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Project identifier


begin
  #Deletes a project
  api_instance.communication_websites_website_id_portfolio_projects_id_delete(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioProjectApi->communication_websites_website_id_portfolio_projects_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::CommunicationWebsitePortfolioProjectApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Project identifier


begin
  #Shows a project
  api_instance.communication_websites_website_id_portfolio_projects_id_get(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioProjectApi->communication_websites_website_id_portfolio_projects_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::CommunicationWebsitePortfolioProjectApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Project identifier
opts = {
  body: OsunyApi::ProjectsIdBody.new # ProjectsIdBody |
}

begin
  #Updates a project
  api_instance.communication_websites_website_id_portfolio_projects_id_patch(website_id, id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioProjectApi->communication_websites_website_id_portfolio_projects_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::CommunicationWebsitePortfolioProjectApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  body: OsunyApi::PortfolioProjectsBody.new # PortfolioProjectsBody |
}

begin
  #Creates a project
  api_instance.communication_websites_website_id_portfolio_projects_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioProjectApi->communication_websites_website_id_portfolio_projects_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::CommunicationWebsitePortfolioProjectApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  body: OsunyApi::ProjectsUpsertBody.new # ProjectsUpsertBody |
}

begin
  #Upsert projects
  api_instance.communication_websites_website_id_portfolio_projects_upsert_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePortfolioProjectApi->communication_websites_website_id_portfolio_projects_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
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists a website's posts
  result = api_instance.communication_websites_website_id_posts_get(website_id, opts)
  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::CommunicationWebsitePostCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists a website's post categories
  result = api_instance.communication_websites_website_id_posts_categories_get(website_id, opts)
  p result
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostCategoryApi->communication_websites_website_id_posts_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::CommunicationWebsitePostCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier


begin
  #Deletes a post category
  api_instance.communication_websites_website_id_posts_categories_id_delete(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostCategoryApi->communication_websites_website_id_posts_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::CommunicationWebsitePostCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier


begin
  #Shows a post category
  api_instance.communication_websites_website_id_posts_categories_id_get(website_id, id)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostCategoryApi->communication_websites_website_id_posts_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::CommunicationWebsitePostCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
id = 'id_example' # String | Category identifier
opts = {
  body: OsunyApi::CategoriesIdBody3.new # CategoriesIdBody3 |
}

begin
  #Updates a post category
  api_instance.communication_websites_website_id_posts_categories_id_patch(website_id, id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostCategoryApi->communication_websites_website_id_posts_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::CommunicationWebsitePostCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  body: OsunyApi::PostsCategoriesBody.new # PostsCategoriesBody |
}

begin
  #Creates a post category
  api_instance.communication_websites_website_id_posts_categories_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostCategoryApi->communication_websites_website_id_posts_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::CommunicationWebsitePostCategoryApi.new
website_id = 'website_id_example' # String | Website identifier
opts = {
  body: OsunyApi::CategoriesUpsertBody3.new # CategoriesUpsertBody3 |
}

begin
  #Upsert post categories
  api_instance.communication_websites_website_id_posts_categories_upsert_post(website_id, opts)
rescue OsunyApi::ApiError => e
  puts "Exception when calling CommunicationWebsitePostCategoryApi->communication_websites_website_id_posts_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::UniversityOrganizationApi.new
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists organizations
  result = api_instance.university_organizations_get(opts)
  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
opts = {
  page_num: 1, # Integer | Page number
  per_page: 10000 # Integer | Number of items per page
}

begin
  #Lists organization categories
  result = api_instance.university_organizations_categories_get(opts)
  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::CategoriesIdBody4.new # CategoriesIdBody4 |
}

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::CategoriesUpsertBody4.new # CategoriesUpsertBody4 |
}

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

Class Method HTTP request Description
OsunyApi::CommunicationWebsiteApi communication_websites_get GET /communication/websites Lists the websites
OsunyApi::CommunicationWebsiteApi communication_websites_id_get GET /communication/websites/{id} Shows a website
OsunyApi::CommunicationWebsiteAgendaCategoryApi communication_websites_website_id_agenda_categories_get GET /communication/websites/{website_id}/agenda/categories Lists a website's agenda categories
OsunyApi::CommunicationWebsiteAgendaCategoryApi communication_websites_website_id_agenda_categories_id_delete DELETE /communication/websites/{website_id}/agenda/categories/{id} Deletes an agenda category
OsunyApi::CommunicationWebsiteAgendaCategoryApi communication_websites_website_id_agenda_categories_id_get GET /communication/websites/{website_id}/agenda/categories/{id} Shows an agenda category
OsunyApi::CommunicationWebsiteAgendaCategoryApi communication_websites_website_id_agenda_categories_id_patch PATCH /communication/websites/{website_id}/agenda/categories/{id} Updates an agenda category
OsunyApi::CommunicationWebsiteAgendaCategoryApi communication_websites_website_id_agenda_categories_post POST /communication/websites/{website_id}/agenda/categories Creates an agenda category
OsunyApi::CommunicationWebsiteAgendaCategoryApi communication_websites_website_id_agenda_categories_upsert_post POST /communication/websites/{website_id}/agenda/categories/upsert Upsert agenda categories
OsunyApi::CommunicationWebsiteAgendaEventApi communication_websites_website_id_agenda_events_get GET /communication/websites/{website_id}/agenda/events Lists a website's events
OsunyApi::CommunicationWebsiteAgendaEventApi communication_websites_website_id_agenda_events_id_delete DELETE /communication/websites/{website_id}/agenda/events/{id} Deletes an event
OsunyApi::CommunicationWebsiteAgendaEventApi communication_websites_website_id_agenda_events_id_get GET /communication/websites/{website_id}/agenda/events/{id} Shows an event
OsunyApi::CommunicationWebsiteAgendaEventApi communication_websites_website_id_agenda_events_id_patch PATCH /communication/websites/{website_id}/agenda/events/{id} Updates an event
OsunyApi::CommunicationWebsiteAgendaEventApi communication_websites_website_id_agenda_events_post POST /communication/websites/{website_id}/agenda/events Creates an event
OsunyApi::CommunicationWebsiteAgendaEventApi communication_websites_website_id_agenda_events_upsert_post POST /communication/websites/{website_id}/agenda/events/upsert Upsert events
OsunyApi::CommunicationWebsiteMediaApi communication_medias_post POST /communication/medias Create a media
OsunyApi::CommunicationWebsitePageApi communication_websites_website_id_pages_get GET /communication/websites/{website_id}/pages Lists a website's pages
OsunyApi::CommunicationWebsitePageApi communication_websites_website_id_pages_id_delete DELETE /communication/websites/{website_id}/pages/{id} Deletes a page
OsunyApi::CommunicationWebsitePageApi communication_websites_website_id_pages_id_get GET /communication/websites/{website_id}/pages/{id} Shows a page
OsunyApi::CommunicationWebsitePageApi communication_websites_website_id_pages_id_patch PATCH /communication/websites/{website_id}/pages/{id} Updates a page
OsunyApi::CommunicationWebsitePageApi communication_websites_website_id_pages_post POST /communication/websites/{website_id}/pages Creates a page
OsunyApi::CommunicationWebsitePageApi communication_websites_website_id_pages_upsert_post POST /communication/websites/{website_id}/pages/upsert Upsert pages
OsunyApi::CommunicationWebsitePageCategoryApi communication_websites_website_id_pages_categories_get GET /communication/websites/{website_id}/pages/categories Lists a website's page categories
OsunyApi::CommunicationWebsitePageCategoryApi communication_websites_website_id_pages_categories_id_delete DELETE /communication/websites/{website_id}/pages/categories/{id} Deletes a page category
OsunyApi::CommunicationWebsitePageCategoryApi communication_websites_website_id_pages_categories_id_get GET /communication/websites/{website_id}/pages/categories/{id} Shows a page category
OsunyApi::CommunicationWebsitePageCategoryApi communication_websites_website_id_pages_categories_id_patch PATCH /communication/websites/{website_id}/pages/categories/{id} Updates a page category
OsunyApi::CommunicationWebsitePageCategoryApi communication_websites_website_id_pages_categories_post POST /communication/websites/{website_id}/pages/categories Creates a page category
OsunyApi::CommunicationWebsitePageCategoryApi communication_websites_website_id_pages_categories_upsert_post POST /communication/websites/{website_id}/pages/categories/upsert Upsert page categories
OsunyApi::CommunicationWebsitePortfolioCategoryApi communication_websites_website_id_portfolio_categories_get GET /communication/websites/{website_id}/portfolio/categories Lists a website's portfolio categories
OsunyApi::CommunicationWebsitePortfolioCategoryApi communication_websites_website_id_portfolio_categories_id_delete DELETE /communication/websites/{website_id}/portfolio/categories/{id} Deletes a portfolio category
OsunyApi::CommunicationWebsitePortfolioCategoryApi communication_websites_website_id_portfolio_categories_id_get GET /communication/websites/{website_id}/portfolio/categories/{id} Shows a portfolio category
OsunyApi::CommunicationWebsitePortfolioCategoryApi communication_websites_website_id_portfolio_categories_id_patch PATCH /communication/websites/{website_id}/portfolio/categories/{id} Updates a portfolio category
OsunyApi::CommunicationWebsitePortfolioCategoryApi communication_websites_website_id_portfolio_categories_post POST /communication/websites/{website_id}/portfolio/categories Creates a portfolio category
OsunyApi::CommunicationWebsitePortfolioCategoryApi communication_websites_website_id_portfolio_categories_upsert_post POST /communication/websites/{website_id}/portfolio/categories/upsert Upsert portfolio categories
OsunyApi::CommunicationWebsitePortfolioProjectApi communication_websites_website_id_portfolio_projects_get GET /communication/websites/{website_id}/portfolio/projects Lists a website's projects
OsunyApi::CommunicationWebsitePortfolioProjectApi communication_websites_website_id_portfolio_projects_id_delete DELETE /communication/websites/{website_id}/portfolio/projects/{id} Deletes a project
OsunyApi::CommunicationWebsitePortfolioProjectApi communication_websites_website_id_portfolio_projects_id_get GET /communication/websites/{website_id}/portfolio/projects/{id} Shows a project
OsunyApi::CommunicationWebsitePortfolioProjectApi communication_websites_website_id_portfolio_projects_id_patch PATCH /communication/websites/{website_id}/portfolio/projects/{id} Updates a project
OsunyApi::CommunicationWebsitePortfolioProjectApi communication_websites_website_id_portfolio_projects_post POST /communication/websites/{website_id}/portfolio/projects Creates a project
OsunyApi::CommunicationWebsitePortfolioProjectApi communication_websites_website_id_portfolio_projects_upsert_post POST /communication/websites/{website_id}/portfolio/projects/upsert Upsert projects
OsunyApi::CommunicationWebsitePostApi communication_websites_website_id_posts_get GET /communication/websites/{website_id}/posts Lists a website's posts
OsunyApi::CommunicationWebsitePostApi communication_websites_website_id_posts_id_delete DELETE /communication/websites/{website_id}/posts/{id} Deletes a post
OsunyApi::CommunicationWebsitePostApi communication_websites_website_id_posts_id_get GET /communication/websites/{website_id}/posts/{id} Shows a post
OsunyApi::CommunicationWebsitePostApi communication_websites_website_id_posts_id_patch PATCH /communication/websites/{website_id}/posts/{id} Updates a post
OsunyApi::CommunicationWebsitePostApi communication_websites_website_id_posts_post POST /communication/websites/{website_id}/posts Creates a post
OsunyApi::CommunicationWebsitePostApi communication_websites_website_id_posts_upsert_post POST /communication/websites/{website_id}/posts/upsert Upsert posts
OsunyApi::CommunicationWebsitePostCategoryApi communication_websites_website_id_posts_categories_get GET /communication/websites/{website_id}/posts/categories Lists a website's post categories
OsunyApi::CommunicationWebsitePostCategoryApi communication_websites_website_id_posts_categories_id_delete DELETE /communication/websites/{website_id}/posts/categories/{id} Deletes a post category
OsunyApi::CommunicationWebsitePostCategoryApi communication_websites_website_id_posts_categories_id_get GET /communication/websites/{website_id}/posts/categories/{id} Shows a post category
OsunyApi::CommunicationWebsitePostCategoryApi communication_websites_website_id_posts_categories_id_patch PATCH /communication/websites/{website_id}/posts/categories/{id} Updates a post category
OsunyApi::CommunicationWebsitePostCategoryApi communication_websites_website_id_posts_categories_post POST /communication/websites/{website_id}/posts/categories Creates a post category
OsunyApi::CommunicationWebsitePostCategoryApi communication_websites_website_id_posts_categories_upsert_post POST /communication/websites/{website_id}/posts/categories/upsert Upsert post categories
OsunyApi::UniversityOrganizationApi university_organizations_get GET /university/organizations Lists organizations
OsunyApi::UniversityOrganizationApi university_organizations_id_delete DELETE /university/organizations/{id} Deletes an organization
OsunyApi::UniversityOrganizationApi university_organizations_id_get GET /university/organizations/{id} Shows an organization
OsunyApi::UniversityOrganizationApi university_organizations_id_patch PATCH /university/organizations/{id} Updates an organization
OsunyApi::UniversityOrganizationApi university_organizations_post POST /university/organizations Creates a organization
OsunyApi::UniversityOrganizationApi university_organizations_upsert_post POST /university/organizations/upsert Upsert organizations
OsunyApi::UniversityOrganizationCategoryApi university_organizations_categories_get GET /university/organizations/categories Lists organization categories
OsunyApi::UniversityOrganizationCategoryApi university_organizations_categories_id_delete DELETE /university/organizations/categories/{id} Deletes a organization category
OsunyApi::UniversityOrganizationCategoryApi university_organizations_categories_id_get GET /university/organizations/categories/{id} Shows a organization category
OsunyApi::UniversityOrganizationCategoryApi university_organizations_categories_id_patch PATCH /university/organizations/categories/{id} Updates a organization category
OsunyApi::UniversityOrganizationCategoryApi university_organizations_categories_post POST /university/organizations/categories Creates a organization category
OsunyApi::UniversityOrganizationCategoryApi university_organizations_categories_upsert_post POST /university/organizations/categories/upsert Upsert organization categories

Documentation for Models

Documentation for Authorization

api_key

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