
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
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:
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'
gem 'osuny_api', :git => 'https://github.com/osunyorg/api.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
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
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::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::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::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 |
FAQs
Unknown package
We found that osuny_api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.