ejabberd_http_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +72 -0
- data/README.md +411 -0
- data/Rakefile +10 -0
- data/docs/AbortDeleteOldMamMessages200Response.md +18 -0
- data/docs/AbortDeleteOldMamMessagesRequest.md +18 -0
- data/docs/AccountsApi.md +640 -0
- data/docs/AcmeApi.md +197 -0
- data/docs/AddOAuthClientImplicitRequest.md +22 -0
- data/docs/AddOAuthClientPasswordRequest.md +22 -0
- data/docs/AddRosterItemRequest.md +30 -0
- data/docs/BackupRequest.md +18 -0
- data/docs/BanAccountRequest.md +22 -0
- data/docs/BookmarksToPepRequest.md +20 -0
- data/docs/ChangeNodeNameRequest.md +24 -0
- data/docs/ChangePasswordRequest.md +22 -0
- data/docs/ChangeRoomOptionRequest.md +24 -0
- data/docs/CheckAccountRequest.md +20 -0
- data/docs/CheckModuleRequest.md +18 -0
- data/docs/CheckPasswordHashRequest.md +24 -0
- data/docs/CheckPasswordRequest.md +22 -0
- data/docs/ClusterApi.md +256 -0
- data/docs/CompileRequest.md +18 -0
- data/docs/ConfigApi.md +192 -0
- data/docs/ConnectedUsersInfo200ResponseInner.md +36 -0
- data/docs/ConnectedUsersNumber200Response.md +18 -0
- data/docs/ConnectedUsersVHostRequest.md +18 -0
- data/docs/ConvertToScramRequest.md +18 -0
- data/docs/ConvertToYamlRequest.md +20 -0
- data/docs/CreateRoomRequest.md +22 -0
- data/docs/CreateRoomWithOptionsRequest.md +24 -0
- data/docs/CreateRoomWithOptionsRequestOptionsInner.md +20 -0
- data/docs/CreateRoomsFileRequest.md +18 -0
- data/docs/DeleteMnesiaRequest.md +18 -0
- data/docs/DeleteOldMAMMessagesBatchRequest.md +26 -0
- data/docs/DeleteOldMAMMessagesRequest.md +20 -0
- data/docs/DeleteOldMAMMessagesStatusRequest.md +18 -0
- data/docs/DeleteOldMessagesBatchRequest.md +24 -0
- data/docs/DeleteOldMessagesRequest.md +18 -0
- data/docs/DeleteOldPubsubItemsRequest.md +18 -0
- data/docs/DeleteOldUsersRequest.md +18 -0
- data/docs/DocumentationApi.md +255 -0
- data/docs/DumpConfigRequest.md +18 -0
- data/docs/DumpRequest.md +18 -0
- data/docs/DumpTableRequest.md +20 -0
- data/docs/ErlangApi.md +194 -0
- data/docs/Export2sqlRequest.md +20 -0
- data/docs/ExportPiefxisHostRequest.md +20 -0
- data/docs/ExportPiefxisRequest.md +18 -0
- data/docs/GenHtmlDocForCommandsRequest.md +22 -0
- data/docs/GenMarkdownDocForTagsRequest.md +18 -0
- data/docs/GetCookie200Response.md +18 -0
- data/docs/GetLast200Response.md +20 -0
- data/docs/GetLastRequest.md +20 -0
- data/docs/GetLoglevel200Response.md +18 -0
- data/docs/GetNumResources200Response.md +18 -0
- data/docs/GetOfflineCount200Response.md +18 -0
- data/docs/GetOfflineCountRequest.md +20 -0
- data/docs/GetOutgoingS2sNumber200Response.md +18 -0
- data/docs/GetPresence200Response.md +22 -0
- data/docs/GetRoomAffiliation200Response.md +18 -0
- data/docs/GetRoomAffiliationRequest.md +22 -0
- data/docs/GetRoomAffiliations200ResponseInner.md +24 -0
- data/docs/GetRoomAffiliationsRequest.md +20 -0
- data/docs/GetRoomHistory200ResponseInner.md +20 -0
- data/docs/GetRoomOccupants200ResponseInner.md +22 -0
- data/docs/GetRoomOccupantsNumber200Response.md +18 -0
- data/docs/GetRoomOptions200ResponseInner.md +20 -0
- data/docs/GetRoster200ResponseInner.md +26 -0
- data/docs/GetStats200Response.md +18 -0
- data/docs/GetStatsHostRequest.md +20 -0
- data/docs/GetStatsRequest.md +18 -0
- data/docs/GetStatusList200ResponseInner.md +26 -0
- data/docs/GetStatusListHostRequest.md +20 -0
- data/docs/GetStatusListRequest.md +18 -0
- data/docs/GetStatusNum200Response.md +18 -0
- data/docs/GetUserRoomsRequest.md +20 -0
- data/docs/GetUserSessionsInfo200ResponseInner.md +34 -0
- data/docs/GetUserSubscriptions200ResponseInner.md +22 -0
- data/docs/GetVcard200Response.md +18 -0
- data/docs/GetVcard2MultiRequest.md +24 -0
- data/docs/GetVcard2Request.md +24 -0
- data/docs/GetVcardRequest.md +22 -0
- data/docs/ImportDir200Response.md +18 -0
- data/docs/ImportDirRequest.md +18 -0
- data/docs/ImportFileRequest.md +18 -0
- data/docs/ImportPiefxisRequest.md +18 -0
- data/docs/ImportProsodyRequest.md +18 -0
- data/docs/IncomingS2sNumber200Response.md +18 -0
- data/docs/InstallFallbackRequest.md +18 -0
- data/docs/IssueOAuthToken200Response.md +22 -0
- data/docs/IssueOAuthTokenRequest.md +22 -0
- data/docs/JoinClusterRequest.md +18 -0
- data/docs/KickSessionRequest.md +24 -0
- data/docs/KickUser200Response.md +18 -0
- data/docs/LastApi.md +135 -0
- data/docs/LeaveClusterRequest.md +18 -0
- data/docs/ListCertificates200ResponseInner.md +22 -0
- data/docs/ListMucOnlineRoomsByRegex200ResponseInner.md +22 -0
- data/docs/ListMucOnlineRoomsByRegexRequest.md +20 -0
- data/docs/ListMucOnlineRoomsRequest.md +18 -0
- data/docs/ListOAuthTokens200ResponseInner.md +24 -0
- data/docs/LoadDatabaseRequest.md +18 -0
- data/docs/LogsApi.md +252 -0
- data/docs/MamApi.md +137 -0
- data/docs/MnesiaApi.md +1071 -0
- data/docs/ModulesApi.md +434 -0
- data/docs/MucApi.md +705 -0
- data/docs/MucRoomApi.md +959 -0
- data/docs/OauthApi.md +378 -0
- data/docs/OfflineApi.md +70 -0
- data/docs/PrivacySetRequest.md +22 -0
- data/docs/PrivateApi.md +199 -0
- data/docs/PrivateGetRequest.md +24 -0
- data/docs/PrivateSetRequest.md +22 -0
- data/docs/ProcessRosterItems200ResponseInner.md +20 -0
- data/docs/ProcessRosterItemsRequest.md +26 -0
- data/docs/PurgeApi.md +815 -0
- data/docs/PushAllToAllRequest.md +20 -0
- data/docs/PushRosterAllRequest.md +18 -0
- data/docs/PushRosterRequest.md +22 -0
- data/docs/RegisterMucNickRequest.md +22 -0
- data/docs/RegisterRequest.md +22 -0
- data/docs/RegisteredUsersRequest.md +18 -0
- data/docs/RemoveMamForUserWithPeerRequest.md +22 -0
- data/docs/RemoveOAuthClientRequest.md +18 -0
- data/docs/RequestCertificateRequest.md +18 -0
- data/docs/ResourceNum200Response.md +18 -0
- data/docs/ResourceNumRequest.md +22 -0
- data/docs/RestartModule200Response.md +18 -0
- data/docs/RestartModuleRequest.md +20 -0
- data/docs/RestoreRequest.md +18 -0
- data/docs/RevokeCertificateRequest.md +18 -0
- data/docs/RevokeOAuthTokenRequest.md +18 -0
- data/docs/RoomsEmptyDestroyRequest.md +18 -0
- data/docs/RoomsUnusedDestroyRequest.md +20 -0
- data/docs/RosterApi.md +392 -0
- data/docs/S2sApi.md +187 -0
- data/docs/SendDirectInvitationRequest.md +26 -0
- data/docs/SendMessageRequest.md +26 -0
- data/docs/SendStanzaC2SRequest.md +24 -0
- data/docs/SendStanzaRequest.md +22 -0
- data/docs/ServerApi.md +615 -0
- data/docs/SessionApi.md +1021 -0
- data/docs/SetLastRequest.md +24 -0
- data/docs/SetLoglevelRequest.md +18 -0
- data/docs/SetMasterRequest.md +18 -0
- data/docs/SetNicknameRequest.md +22 -0
- data/docs/SetPresenceRequest.md +30 -0
- data/docs/SetRoomAffiliationRequest.md +24 -0
- data/docs/SetVcard2MultiRequest.md +26 -0
- data/docs/SetVcard2Request.md +26 -0
- data/docs/SetVcardRequest.md +24 -0
- data/docs/SharedRosterGroupApi.md +462 -0
- data/docs/SqlApi.md +191 -0
- data/docs/SrgCreateRequest.md +26 -0
- data/docs/SrgDeleteRequest.md +20 -0
- data/docs/SrgGetInfo200ResponseInner.md +20 -0
- data/docs/SrgUserAddRequest.md +24 -0
- data/docs/StanzaApi.md +267 -0
- data/docs/StatisticsApi.md +447 -0
- data/docs/StopKindlyRequest.md +20 -0
- data/docs/SubscribeToRoomManyRequest.md +22 -0
- data/docs/SubscribeToRoomManyRequestUsersInner.md +20 -0
- data/docs/SubscribeToRoomRequest.md +24 -0
- data/docs/TableMnesiaInfoRequest.md +18 -0
- data/docs/UnbanIp200Response.md +18 -0
- data/docs/UnbanIpRequest.md +18 -0
- data/docs/UnregisterMucNickRequest.md +20 -0
- data/docs/UnregisterUserRequest.md +20 -0
- data/docs/UnsubscribeFromRoomRequest.md +20 -0
- data/docs/VcardApi.md +456 -0
- data/ejabberd_http_client.gemspec +37 -0
- data/git_push.sh +57 -0
- data/lib/ejabberd_http_client/api/accounts_api.rb +656 -0
- data/lib/ejabberd_http_client/api/acme_api.rb +201 -0
- data/lib/ejabberd_http_client/api/cluster_api.rb +267 -0
- data/lib/ejabberd_http_client/api/config_api.rb +207 -0
- data/lib/ejabberd_http_client/api/documentation_api.rb +273 -0
- data/lib/ejabberd_http_client/api/erlang_api.rb +203 -0
- data/lib/ejabberd_http_client/api/last_api.rb +150 -0
- data/lib/ejabberd_http_client/api/logs_api.rb +249 -0
- data/lib/ejabberd_http_client/api/mam_api.rb +146 -0
- data/lib/ejabberd_http_client/api/mnesia_api.rb +1119 -0
- data/lib/ejabberd_http_client/api/modules_api.rb +441 -0
- data/lib/ejabberd_http_client/api/muc_api.rb +726 -0
- data/lib/ejabberd_http_client/api/muc_room_api.rb +986 -0
- data/lib/ejabberd_http_client/api/oauth_api.rb +399 -0
- data/lib/ejabberd_http_client/api/offline_api.rb +88 -0
- data/lib/ejabberd_http_client/api/private_api.rb +212 -0
- data/lib/ejabberd_http_client/api/purge_api.rb +848 -0
- data/lib/ejabberd_http_client/api/roster_api.rb +400 -0
- data/lib/ejabberd_http_client/api/s2s_api.rb +187 -0
- data/lib/ejabberd_http_client/api/server_api.rb +582 -0
- data/lib/ejabberd_http_client/api/session_api.rb +1011 -0
- data/lib/ejabberd_http_client/api/shared_roster_group_api.rb +456 -0
- data/lib/ejabberd_http_client/api/sql_api.rb +205 -0
- data/lib/ejabberd_http_client/api/stanza_api.rb +270 -0
- data/lib/ejabberd_http_client/api/statistics_api.rb +435 -0
- data/lib/ejabberd_http_client/api/vcard_api.rb +468 -0
- data/lib/ejabberd_http_client/api_client.rb +391 -0
- data/lib/ejabberd_http_client/api_error.rb +58 -0
- data/lib/ejabberd_http_client/configuration.rb +290 -0
- data/lib/ejabberd_http_client/models/abort_delete_old_mam_messages200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/abort_delete_old_mam_messages_request.rb +215 -0
- data/lib/ejabberd_http_client/models/add_o_auth_client_implicit_request.rb +235 -0
- data/lib/ejabberd_http_client/models/add_o_auth_client_password_request.rb +235 -0
- data/lib/ejabberd_http_client/models/add_roster_item_request.rb +275 -0
- data/lib/ejabberd_http_client/models/backup_request.rb +215 -0
- data/lib/ejabberd_http_client/models/ban_account_request.rb +235 -0
- data/lib/ejabberd_http_client/models/bookmarks_to_pep_request.rb +225 -0
- data/lib/ejabberd_http_client/models/change_node_name_request.rb +245 -0
- data/lib/ejabberd_http_client/models/change_password_request.rb +235 -0
- data/lib/ejabberd_http_client/models/change_room_option_request.rb +245 -0
- data/lib/ejabberd_http_client/models/check_account_request.rb +225 -0
- data/lib/ejabberd_http_client/models/check_module_request.rb +215 -0
- data/lib/ejabberd_http_client/models/check_password_hash_request.rb +245 -0
- data/lib/ejabberd_http_client/models/check_password_request.rb +235 -0
- data/lib/ejabberd_http_client/models/compile_request.rb +215 -0
- data/lib/ejabberd_http_client/models/connected_users_info200_response_inner.rb +305 -0
- data/lib/ejabberd_http_client/models/connected_users_number200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/connected_users_v_host_request.rb +215 -0
- data/lib/ejabberd_http_client/models/convert_to_scram_request.rb +215 -0
- data/lib/ejabberd_http_client/models/convert_to_yaml_request.rb +225 -0
- data/lib/ejabberd_http_client/models/create_room_request.rb +235 -0
- data/lib/ejabberd_http_client/models/create_room_with_options_request.rb +246 -0
- data/lib/ejabberd_http_client/models/create_room_with_options_request_options_inner.rb +225 -0
- data/lib/ejabberd_http_client/models/create_rooms_file_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_mnesia_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_old_mam_messages_batch_request.rb +255 -0
- data/lib/ejabberd_http_client/models/delete_old_mam_messages_request.rb +225 -0
- data/lib/ejabberd_http_client/models/delete_old_mam_messages_status_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_old_messages_batch_request.rb +245 -0
- data/lib/ejabberd_http_client/models/delete_old_messages_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_old_pubsub_items_request.rb +215 -0
- data/lib/ejabberd_http_client/models/delete_old_users_request.rb +215 -0
- data/lib/ejabberd_http_client/models/dump_config_request.rb +215 -0
- data/lib/ejabberd_http_client/models/dump_request.rb +215 -0
- data/lib/ejabberd_http_client/models/dump_table_request.rb +225 -0
- data/lib/ejabberd_http_client/models/export2sql_request.rb +225 -0
- data/lib/ejabberd_http_client/models/export_piefxis_host_request.rb +225 -0
- data/lib/ejabberd_http_client/models/export_piefxis_request.rb +215 -0
- data/lib/ejabberd_http_client/models/gen_html_doc_for_commands_request.rb +235 -0
- data/lib/ejabberd_http_client/models/gen_markdown_doc_for_tags_request.rb +215 -0
- data/lib/ejabberd_http_client/models/get_cookie200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_last200_response.rb +225 -0
- data/lib/ejabberd_http_client/models/get_last_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_loglevel200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_num_resources200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/get_offline_count200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_offline_count_request.rb +223 -0
- data/lib/ejabberd_http_client/models/get_outgoing_s2s_number200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/get_presence200_response.rb +235 -0
- data/lib/ejabberd_http_client/models/get_room_affiliation200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_room_affiliation_request.rb +235 -0
- data/lib/ejabberd_http_client/models/get_room_affiliations200_response_inner.rb +241 -0
- data/lib/ejabberd_http_client/models/get_room_affiliations_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_room_history200_response_inner.rb +223 -0
- data/lib/ejabberd_http_client/models/get_room_occupants200_response_inner.rb +232 -0
- data/lib/ejabberd_http_client/models/get_room_occupants_number200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/get_room_options200_response_inner.rb +223 -0
- data/lib/ejabberd_http_client/models/get_roster200_response_inner.rb +252 -0
- data/lib/ejabberd_http_client/models/get_stats200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_stats_host_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_stats_request.rb +215 -0
- data/lib/ejabberd_http_client/models/get_status_list200_response_inner.rb +255 -0
- data/lib/ejabberd_http_client/models/get_status_list_host_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_status_list_request.rb +215 -0
- data/lib/ejabberd_http_client/models/get_status_num200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/get_user_rooms_request.rb +225 -0
- data/lib/ejabberd_http_client/models/get_user_sessions_info200_response_inner.rb +295 -0
- data/lib/ejabberd_http_client/models/get_user_subscriptions200_response_inner.rb +234 -0
- data/lib/ejabberd_http_client/models/get_vcard200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/get_vcard2_multi_request.rb +241 -0
- data/lib/ejabberd_http_client/models/get_vcard2_request.rb +245 -0
- data/lib/ejabberd_http_client/models/get_vcard_request.rb +235 -0
- data/lib/ejabberd_http_client/models/import_dir200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/import_dir_request.rb +215 -0
- data/lib/ejabberd_http_client/models/import_file_request.rb +215 -0
- data/lib/ejabberd_http_client/models/import_piefxis_request.rb +215 -0
- data/lib/ejabberd_http_client/models/import_prosody_request.rb +215 -0
- data/lib/ejabberd_http_client/models/incoming_s2s_number200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/install_fallback_request.rb +215 -0
- data/lib/ejabberd_http_client/models/issue_o_auth_token200_response.rb +232 -0
- data/lib/ejabberd_http_client/models/issue_o_auth_token_request.rb +235 -0
- data/lib/ejabberd_http_client/models/join_cluster_request.rb +215 -0
- data/lib/ejabberd_http_client/models/kick_session_request.rb +245 -0
- data/lib/ejabberd_http_client/models/kick_user200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/leave_cluster_request.rb +215 -0
- data/lib/ejabberd_http_client/models/list_certificates200_response_inner.rb +235 -0
- data/lib/ejabberd_http_client/models/list_muc_online_rooms_by_regex200_response_inner.rb +232 -0
- data/lib/ejabberd_http_client/models/list_muc_online_rooms_by_regex_request.rb +225 -0
- data/lib/ejabberd_http_client/models/list_muc_online_rooms_request.rb +215 -0
- data/lib/ejabberd_http_client/models/list_o_auth_tokens200_response_inner.rb +241 -0
- data/lib/ejabberd_http_client/models/load_database_request.rb +215 -0
- data/lib/ejabberd_http_client/models/privacy_set_request.rb +232 -0
- data/lib/ejabberd_http_client/models/private_get_request.rb +241 -0
- data/lib/ejabberd_http_client/models/private_set_request.rb +232 -0
- data/lib/ejabberd_http_client/models/process_roster_items200_response_inner.rb +223 -0
- data/lib/ejabberd_http_client/models/process_roster_items_request.rb +250 -0
- data/lib/ejabberd_http_client/models/push_all_to_all_request.rb +223 -0
- data/lib/ejabberd_http_client/models/push_roster_all_request.rb +214 -0
- data/lib/ejabberd_http_client/models/push_roster_request.rb +232 -0
- data/lib/ejabberd_http_client/models/register_muc_nick_request.rb +235 -0
- data/lib/ejabberd_http_client/models/register_request.rb +232 -0
- data/lib/ejabberd_http_client/models/registered_users_request.rb +214 -0
- data/lib/ejabberd_http_client/models/remove_mam_for_user_with_peer_request.rb +232 -0
- data/lib/ejabberd_http_client/models/remove_o_auth_client_request.rb +215 -0
- data/lib/ejabberd_http_client/models/request_certificate_request.rb +215 -0
- data/lib/ejabberd_http_client/models/resource_num200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/resource_num_request.rb +235 -0
- data/lib/ejabberd_http_client/models/restart_module200_response.rb +214 -0
- data/lib/ejabberd_http_client/models/restart_module_request.rb +225 -0
- data/lib/ejabberd_http_client/models/restore_request.rb +215 -0
- data/lib/ejabberd_http_client/models/revoke_certificate_request.rb +215 -0
- data/lib/ejabberd_http_client/models/revoke_o_auth_token_request.rb +215 -0
- data/lib/ejabberd_http_client/models/rooms_empty_destroy_request.rb +215 -0
- data/lib/ejabberd_http_client/models/rooms_unused_destroy_request.rb +225 -0
- data/lib/ejabberd_http_client/models/send_direct_invitation_request.rb +255 -0
- data/lib/ejabberd_http_client/models/send_message_request.rb +255 -0
- data/lib/ejabberd_http_client/models/send_stanza_c2_s_request.rb +245 -0
- data/lib/ejabberd_http_client/models/send_stanza_request.rb +235 -0
- data/lib/ejabberd_http_client/models/set_last_request.rb +245 -0
- data/lib/ejabberd_http_client/models/set_loglevel_request.rb +215 -0
- data/lib/ejabberd_http_client/models/set_master_request.rb +215 -0
- data/lib/ejabberd_http_client/models/set_nickname_request.rb +235 -0
- data/lib/ejabberd_http_client/models/set_presence_request.rb +275 -0
- data/lib/ejabberd_http_client/models/set_room_affiliation_request.rb +245 -0
- data/lib/ejabberd_http_client/models/set_vcard2_multi_request.rb +257 -0
- data/lib/ejabberd_http_client/models/set_vcard2_request.rb +255 -0
- data/lib/ejabberd_http_client/models/set_vcard_request.rb +245 -0
- data/lib/ejabberd_http_client/models/srg_create_request.rb +255 -0
- data/lib/ejabberd_http_client/models/srg_delete_request.rb +225 -0
- data/lib/ejabberd_http_client/models/srg_get_info200_response_inner.rb +225 -0
- data/lib/ejabberd_http_client/models/srg_user_add_request.rb +245 -0
- data/lib/ejabberd_http_client/models/stop_kindly_request.rb +225 -0
- data/lib/ejabberd_http_client/models/subscribe_to_room_many_request.rb +236 -0
- data/lib/ejabberd_http_client/models/subscribe_to_room_many_request_users_inner.rb +225 -0
- data/lib/ejabberd_http_client/models/subscribe_to_room_request.rb +245 -0
- data/lib/ejabberd_http_client/models/table_mnesia_info_request.rb +215 -0
- data/lib/ejabberd_http_client/models/unban_ip200_response.rb +215 -0
- data/lib/ejabberd_http_client/models/unban_ip_request.rb +215 -0
- data/lib/ejabberd_http_client/models/unregister_muc_nick_request.rb +225 -0
- data/lib/ejabberd_http_client/models/unregister_user_request.rb +225 -0
- data/lib/ejabberd_http_client/models/unsubscribe_from_room_request.rb +225 -0
- data/lib/ejabberd_http_client/version.rb +15 -0
- data/lib/ejabberd_http_client.rb +207 -0
- data/spec/api/accounts_api_spec.rb +145 -0
- data/spec/api/acme_api_spec.rb +67 -0
- data/spec/api/cluster_api_spec.rb +78 -0
- data/spec/api/config_api_spec.rb +67 -0
- data/spec/api/documentation_api_spec.rb +78 -0
- data/spec/api/erlang_api_spec.rb +67 -0
- data/spec/api/last_api_spec.rb +57 -0
- data/spec/api/logs_api_spec.rb +76 -0
- data/spec/api/mam_api_spec.rb +57 -0
- data/spec/api/mnesia_api_spec.rb +221 -0
- data/spec/api/modules_api_spec.rb +109 -0
- data/spec/api/muc_api_spec.rb +156 -0
- data/spec/api/muc_room_api_spec.rb +200 -0
- data/spec/api/oauth_api_spec.rb +100 -0
- data/spec/api/offline_api_spec.rb +46 -0
- data/spec/api/private_api_spec.rb +68 -0
- data/spec/api/purge_api_spec.rb +176 -0
- data/spec/api/roster_api_spec.rb +101 -0
- data/spec/api/s2s_api_spec.rb +65 -0
- data/spec/api/server_api_spec.rb +137 -0
- data/spec/api/session_api_spec.rb +208 -0
- data/spec/api/shared_roster_group_api_spec.rb +112 -0
- data/spec/api/sql_api_spec.rb +67 -0
- data/spec/api/stanza_api_spec.rb +79 -0
- data/spec/api/statistics_api_spec.rb +109 -0
- data/spec/api/vcard_api_spec.rb +112 -0
- data/spec/api_client_spec.rb +228 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/abort_delete_old_mam_messages200_response_spec.rb +34 -0
- data/spec/models/abort_delete_old_mam_messages_request_spec.rb +34 -0
- data/spec/models/add_o_auth_client_implicit_request_spec.rb +46 -0
- data/spec/models/add_o_auth_client_password_request_spec.rb +46 -0
- data/spec/models/add_roster_item_request_spec.rb +70 -0
- data/spec/models/backup_request_spec.rb +34 -0
- data/spec/models/ban_account_request_spec.rb +46 -0
- data/spec/models/bookmarks_to_pep_request_spec.rb +40 -0
- data/spec/models/change_node_name_request_spec.rb +52 -0
- data/spec/models/change_password_request_spec.rb +46 -0
- data/spec/models/change_room_option_request_spec.rb +52 -0
- data/spec/models/check_account_request_spec.rb +40 -0
- data/spec/models/check_module_request_spec.rb +34 -0
- data/spec/models/check_password_hash_request_spec.rb +52 -0
- data/spec/models/check_password_request_spec.rb +46 -0
- data/spec/models/compile_request_spec.rb +34 -0
- data/spec/models/connected_users_info200_response_inner_spec.rb +88 -0
- data/spec/models/connected_users_number200_response_spec.rb +34 -0
- data/spec/models/connected_users_v_host_request_spec.rb +34 -0
- data/spec/models/convert_to_scram_request_spec.rb +34 -0
- data/spec/models/convert_to_yaml_request_spec.rb +40 -0
- data/spec/models/create_room_request_spec.rb +46 -0
- data/spec/models/create_room_with_options_request_options_inner_spec.rb +40 -0
- data/spec/models/create_room_with_options_request_spec.rb +52 -0
- data/spec/models/create_rooms_file_request_spec.rb +34 -0
- data/spec/models/delete_mnesia_request_spec.rb +34 -0
- data/spec/models/delete_old_mam_messages_batch_request_spec.rb +58 -0
- data/spec/models/delete_old_mam_messages_request_spec.rb +40 -0
- data/spec/models/delete_old_mam_messages_status_request_spec.rb +34 -0
- data/spec/models/delete_old_messages_batch_request_spec.rb +52 -0
- data/spec/models/delete_old_messages_request_spec.rb +34 -0
- data/spec/models/delete_old_pubsub_items_request_spec.rb +34 -0
- data/spec/models/delete_old_users_request_spec.rb +34 -0
- data/spec/models/dump_config_request_spec.rb +34 -0
- data/spec/models/dump_request_spec.rb +34 -0
- data/spec/models/dump_table_request_spec.rb +40 -0
- data/spec/models/export2sql_request_spec.rb +40 -0
- data/spec/models/export_piefxis_host_request_spec.rb +40 -0
- data/spec/models/export_piefxis_request_spec.rb +34 -0
- data/spec/models/gen_html_doc_for_commands_request_spec.rb +46 -0
- data/spec/models/gen_markdown_doc_for_tags_request_spec.rb +34 -0
- data/spec/models/get_cookie200_response_spec.rb +34 -0
- data/spec/models/get_last200_response_spec.rb +40 -0
- data/spec/models/get_last_request_spec.rb +40 -0
- data/spec/models/get_loglevel200_response_spec.rb +34 -0
- data/spec/models/get_num_resources200_response_spec.rb +34 -0
- data/spec/models/get_offline_count200_response_spec.rb +34 -0
- data/spec/models/get_offline_count_request_spec.rb +40 -0
- data/spec/models/get_outgoing_s2s_number200_response_spec.rb +34 -0
- data/spec/models/get_presence200_response_spec.rb +46 -0
- data/spec/models/get_room_affiliation200_response_spec.rb +34 -0
- data/spec/models/get_room_affiliation_request_spec.rb +46 -0
- data/spec/models/get_room_affiliations200_response_inner_spec.rb +52 -0
- data/spec/models/get_room_affiliations_request_spec.rb +40 -0
- data/spec/models/get_room_history200_response_inner_spec.rb +40 -0
- data/spec/models/get_room_occupants200_response_inner_spec.rb +46 -0
- data/spec/models/get_room_occupants_number200_response_spec.rb +34 -0
- data/spec/models/get_room_options200_response_inner_spec.rb +40 -0
- data/spec/models/get_roster200_response_inner_spec.rb +58 -0
- data/spec/models/get_stats200_response_spec.rb +34 -0
- data/spec/models/get_stats_host_request_spec.rb +40 -0
- data/spec/models/get_stats_request_spec.rb +34 -0
- data/spec/models/get_status_list200_response_inner_spec.rb +58 -0
- data/spec/models/get_status_list_host_request_spec.rb +40 -0
- data/spec/models/get_status_list_request_spec.rb +34 -0
- data/spec/models/get_status_num200_response_spec.rb +34 -0
- data/spec/models/get_user_rooms_request_spec.rb +40 -0
- data/spec/models/get_user_sessions_info200_response_inner_spec.rb +82 -0
- data/spec/models/get_user_subscriptions200_response_inner_spec.rb +46 -0
- data/spec/models/get_vcard200_response_spec.rb +34 -0
- data/spec/models/get_vcard2_multi_request_spec.rb +52 -0
- data/spec/models/get_vcard2_request_spec.rb +52 -0
- data/spec/models/get_vcard_request_spec.rb +46 -0
- data/spec/models/import_dir200_response_spec.rb +34 -0
- data/spec/models/import_dir_request_spec.rb +34 -0
- data/spec/models/import_file_request_spec.rb +34 -0
- data/spec/models/import_piefxis_request_spec.rb +34 -0
- data/spec/models/import_prosody_request_spec.rb +34 -0
- data/spec/models/incoming_s2s_number200_response_spec.rb +34 -0
- data/spec/models/install_fallback_request_spec.rb +34 -0
- data/spec/models/issue_o_auth_token200_response_spec.rb +46 -0
- data/spec/models/issue_o_auth_token_request_spec.rb +46 -0
- data/spec/models/join_cluster_request_spec.rb +34 -0
- data/spec/models/kick_session_request_spec.rb +52 -0
- data/spec/models/kick_user200_response_spec.rb +34 -0
- data/spec/models/leave_cluster_request_spec.rb +34 -0
- data/spec/models/list_certificates200_response_inner_spec.rb +46 -0
- data/spec/models/list_muc_online_rooms_by_regex200_response_inner_spec.rb +46 -0
- data/spec/models/list_muc_online_rooms_by_regex_request_spec.rb +40 -0
- data/spec/models/list_muc_online_rooms_request_spec.rb +34 -0
- data/spec/models/list_o_auth_tokens200_response_inner_spec.rb +52 -0
- data/spec/models/load_database_request_spec.rb +34 -0
- data/spec/models/privacy_set_request_spec.rb +46 -0
- data/spec/models/private_get_request_spec.rb +52 -0
- data/spec/models/private_set_request_spec.rb +46 -0
- data/spec/models/process_roster_items200_response_inner_spec.rb +40 -0
- data/spec/models/process_roster_items_request_spec.rb +58 -0
- data/spec/models/push_all_to_all_request_spec.rb +40 -0
- data/spec/models/push_roster_all_request_spec.rb +34 -0
- data/spec/models/push_roster_request_spec.rb +46 -0
- data/spec/models/register_muc_nick_request_spec.rb +46 -0
- data/spec/models/register_request_spec.rb +46 -0
- data/spec/models/registered_users_request_spec.rb +34 -0
- data/spec/models/remove_mam_for_user_with_peer_request_spec.rb +46 -0
- data/spec/models/remove_o_auth_client_request_spec.rb +34 -0
- data/spec/models/request_certificate_request_spec.rb +34 -0
- data/spec/models/resource_num200_response_spec.rb +34 -0
- data/spec/models/resource_num_request_spec.rb +46 -0
- data/spec/models/restart_module200_response_spec.rb +34 -0
- data/spec/models/restart_module_request_spec.rb +40 -0
- data/spec/models/restore_request_spec.rb +34 -0
- data/spec/models/revoke_certificate_request_spec.rb +34 -0
- data/spec/models/revoke_o_auth_token_request_spec.rb +34 -0
- data/spec/models/rooms_empty_destroy_request_spec.rb +34 -0
- data/spec/models/rooms_unused_destroy_request_spec.rb +40 -0
- data/spec/models/send_direct_invitation_request_spec.rb +58 -0
- data/spec/models/send_message_request_spec.rb +58 -0
- data/spec/models/send_stanza_c2_s_request_spec.rb +52 -0
- data/spec/models/send_stanza_request_spec.rb +46 -0
- data/spec/models/set_last_request_spec.rb +52 -0
- data/spec/models/set_loglevel_request_spec.rb +34 -0
- data/spec/models/set_master_request_spec.rb +34 -0
- data/spec/models/set_nickname_request_spec.rb +46 -0
- data/spec/models/set_presence_request_spec.rb +70 -0
- data/spec/models/set_room_affiliation_request_spec.rb +52 -0
- data/spec/models/set_vcard2_multi_request_spec.rb +58 -0
- data/spec/models/set_vcard2_request_spec.rb +58 -0
- data/spec/models/set_vcard_request_spec.rb +52 -0
- data/spec/models/srg_create_request_spec.rb +58 -0
- data/spec/models/srg_delete_request_spec.rb +40 -0
- data/spec/models/srg_get_info200_response_inner_spec.rb +40 -0
- data/spec/models/srg_user_add_request_spec.rb +52 -0
- data/spec/models/stop_kindly_request_spec.rb +40 -0
- data/spec/models/subscribe_to_room_many_request_spec.rb +46 -0
- data/spec/models/subscribe_to_room_many_request_users_inner_spec.rb +40 -0
- data/spec/models/subscribe_to_room_request_spec.rb +52 -0
- data/spec/models/table_mnesia_info_request_spec.rb +34 -0
- data/spec/models/unban_ip200_response_spec.rb +34 -0
- data/spec/models/unban_ip_request_spec.rb +34 -0
- data/spec/models/unregister_muc_nick_request_spec.rb +40 -0
- data/spec/models/unregister_user_request_spec.rb +40 -0
- data/spec/models/unsubscribe_from_room_request_spec.rb +40 -0
- data/spec/spec_helper.rb +114 -0
- metadata +772 -0
data/docs/MucRoomApi.md
ADDED
|
@@ -0,0 +1,959 @@
|
|
|
1
|
+
# EjabberdHttpClient::MucRoomApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**change_room_option**](MucRoomApi.md#change_room_option) | **POST** /api/change_room_option | Change an option in a MUC room. |
|
|
8
|
+
| [**create_room**](MucRoomApi.md#create_room) | **POST** /api/create_room | Create a MUC room using name@service in the given host. |
|
|
9
|
+
| [**create_room_with_options**](MucRoomApi.md#create_room_with_options) | **POST** /api/create_room_with_opts | Create a MUC room using name@service in the given host with specific options. |
|
|
10
|
+
| [**get_room_affiliation**](MucRoomApi.md#get_room_affiliation) | **POST** /api/get_room_affiliation | Get affiliation of a user in MUC room. |
|
|
11
|
+
| [**get_room_affiliations**](MucRoomApi.md#get_room_affiliations) | **POST** /api/get_room_affiliations | Get the list of affiliations of a MUC room. |
|
|
12
|
+
| [**get_room_history**](MucRoomApi.md#get_room_history) | **POST** /api/get_room_history | Get history of messages stored inside MUC room state. |
|
|
13
|
+
| [**get_room_occupants**](MucRoomApi.md#get_room_occupants) | **POST** /api/get_room_occupants | Get the list of occupants of a MUC room. |
|
|
14
|
+
| [**get_room_occupants_number**](MucRoomApi.md#get_room_occupants_number) | **POST** /api/get_room_occupants_number | Get the number of occupants of a MUC room. |
|
|
15
|
+
| [**get_room_options**](MucRoomApi.md#get_room_options) | **POST** /api/get_room_options | Get options from a MUC room. |
|
|
16
|
+
| [**get_subscribers**](MucRoomApi.md#get_subscribers) | **POST** /api/get_subscribers | List subscribers of a MUC conference. |
|
|
17
|
+
| [**send_direct_invitation**](MucRoomApi.md#send_direct_invitation) | **POST** /api/send_direct_invitation | Send a direct invitation to several destinations. |
|
|
18
|
+
| [**set_room_affiliation**](MucRoomApi.md#set_room_affiliation) | **POST** /api/set_room_affiliation | Change an affiliation in a MUC room. |
|
|
19
|
+
| [**subscribe_to_room**](MucRoomApi.md#subscribe_to_room) | **POST** /api/subscribe_room | Subscribe to a MUC conference. |
|
|
20
|
+
| [**subscribe_to_room_many**](MucRoomApi.md#subscribe_to_room_many) | **POST** /api/subscribe_room_many | Subscribe several users to a MUC conference. |
|
|
21
|
+
| [**unsubscribe_from_room**](MucRoomApi.md#unsubscribe_from_room) | **POST** /api/unsubscribe_room | Unsubscribe from a MUC conference. |
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## change_room_option
|
|
25
|
+
|
|
26
|
+
> change_room_option(change_room_option_request)
|
|
27
|
+
|
|
28
|
+
Change an option in a MUC room.
|
|
29
|
+
|
|
30
|
+
### Examples
|
|
31
|
+
|
|
32
|
+
```ruby
|
|
33
|
+
require 'time'
|
|
34
|
+
require 'ejabberd_http_client'
|
|
35
|
+
|
|
36
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
37
|
+
change_room_option_request = EjabberdHttpClient::ChangeRoomOptionRequest.new # ChangeRoomOptionRequest |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
# Change an option in a MUC room.
|
|
41
|
+
api_instance.change_room_option(change_room_option_request)
|
|
42
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
43
|
+
puts "Error when calling MucRoomApi->change_room_option: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the change_room_option_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(nil, Integer, Hash)> change_room_option_with_http_info(change_room_option_request)
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
# Change an option in a MUC room.
|
|
56
|
+
data, status_code, headers = api_instance.change_room_option_with_http_info(change_room_option_request)
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => nil
|
|
60
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
61
|
+
puts "Error when calling MucRoomApi->change_room_option_with_http_info: #{e}"
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
| Name | Type | Description | Notes |
|
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
|
69
|
+
| **change_room_option_request** | [**ChangeRoomOptionRequest**](ChangeRoomOptionRequest.md) | | |
|
|
70
|
+
|
|
71
|
+
### Return type
|
|
72
|
+
|
|
73
|
+
nil (empty response body)
|
|
74
|
+
|
|
75
|
+
### Authorization
|
|
76
|
+
|
|
77
|
+
No authorization required
|
|
78
|
+
|
|
79
|
+
### HTTP request headers
|
|
80
|
+
|
|
81
|
+
- **Content-Type**: application/json
|
|
82
|
+
- **Accept**: Not defined
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## create_room
|
|
86
|
+
|
|
87
|
+
> create_room(create_room_request)
|
|
88
|
+
|
|
89
|
+
Create a MUC room using name@service in the given host.
|
|
90
|
+
|
|
91
|
+
### Examples
|
|
92
|
+
|
|
93
|
+
```ruby
|
|
94
|
+
require 'time'
|
|
95
|
+
require 'ejabberd_http_client'
|
|
96
|
+
|
|
97
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
98
|
+
create_room_request = EjabberdHttpClient::CreateRoomRequest.new # CreateRoomRequest |
|
|
99
|
+
|
|
100
|
+
begin
|
|
101
|
+
# Create a MUC room using name@service in the given host.
|
|
102
|
+
api_instance.create_room(create_room_request)
|
|
103
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
104
|
+
puts "Error when calling MucRoomApi->create_room: #{e}"
|
|
105
|
+
end
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Using the create_room_with_http_info variant
|
|
109
|
+
|
|
110
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
111
|
+
|
|
112
|
+
> <Array(nil, Integer, Hash)> create_room_with_http_info(create_room_request)
|
|
113
|
+
|
|
114
|
+
```ruby
|
|
115
|
+
begin
|
|
116
|
+
# Create a MUC room using name@service in the given host.
|
|
117
|
+
data, status_code, headers = api_instance.create_room_with_http_info(create_room_request)
|
|
118
|
+
p status_code # => 2xx
|
|
119
|
+
p headers # => { ... }
|
|
120
|
+
p data # => nil
|
|
121
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
122
|
+
puts "Error when calling MucRoomApi->create_room_with_http_info: #{e}"
|
|
123
|
+
end
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Parameters
|
|
127
|
+
|
|
128
|
+
| Name | Type | Description | Notes |
|
|
129
|
+
| ---- | ---- | ----------- | ----- |
|
|
130
|
+
| **create_room_request** | [**CreateRoomRequest**](CreateRoomRequest.md) | | |
|
|
131
|
+
|
|
132
|
+
### Return type
|
|
133
|
+
|
|
134
|
+
nil (empty response body)
|
|
135
|
+
|
|
136
|
+
### Authorization
|
|
137
|
+
|
|
138
|
+
No authorization required
|
|
139
|
+
|
|
140
|
+
### HTTP request headers
|
|
141
|
+
|
|
142
|
+
- **Content-Type**: application/json
|
|
143
|
+
- **Accept**: Not defined
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## create_room_with_options
|
|
147
|
+
|
|
148
|
+
> create_room_with_options(create_room_with_options_request)
|
|
149
|
+
|
|
150
|
+
Create a MUC room using name@service in the given host with specific options.
|
|
151
|
+
|
|
152
|
+
### Examples
|
|
153
|
+
|
|
154
|
+
```ruby
|
|
155
|
+
require 'time'
|
|
156
|
+
require 'ejabberd_http_client'
|
|
157
|
+
|
|
158
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
159
|
+
create_room_with_options_request = EjabberdHttpClient::CreateRoomWithOptionsRequest.new # CreateRoomWithOptionsRequest |
|
|
160
|
+
|
|
161
|
+
begin
|
|
162
|
+
# Create a MUC room using name@service in the given host with specific options.
|
|
163
|
+
api_instance.create_room_with_options(create_room_with_options_request)
|
|
164
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
165
|
+
puts "Error when calling MucRoomApi->create_room_with_options: #{e}"
|
|
166
|
+
end
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
#### Using the create_room_with_options_with_http_info variant
|
|
170
|
+
|
|
171
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
172
|
+
|
|
173
|
+
> <Array(nil, Integer, Hash)> create_room_with_options_with_http_info(create_room_with_options_request)
|
|
174
|
+
|
|
175
|
+
```ruby
|
|
176
|
+
begin
|
|
177
|
+
# Create a MUC room using name@service in the given host with specific options.
|
|
178
|
+
data, status_code, headers = api_instance.create_room_with_options_with_http_info(create_room_with_options_request)
|
|
179
|
+
p status_code # => 2xx
|
|
180
|
+
p headers # => { ... }
|
|
181
|
+
p data # => nil
|
|
182
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
183
|
+
puts "Error when calling MucRoomApi->create_room_with_options_with_http_info: #{e}"
|
|
184
|
+
end
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Parameters
|
|
188
|
+
|
|
189
|
+
| Name | Type | Description | Notes |
|
|
190
|
+
| ---- | ---- | ----------- | ----- |
|
|
191
|
+
| **create_room_with_options_request** | [**CreateRoomWithOptionsRequest**](CreateRoomWithOptionsRequest.md) | | |
|
|
192
|
+
|
|
193
|
+
### Return type
|
|
194
|
+
|
|
195
|
+
nil (empty response body)
|
|
196
|
+
|
|
197
|
+
### Authorization
|
|
198
|
+
|
|
199
|
+
No authorization required
|
|
200
|
+
|
|
201
|
+
### HTTP request headers
|
|
202
|
+
|
|
203
|
+
- **Content-Type**: application/json
|
|
204
|
+
- **Accept**: Not defined
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
## get_room_affiliation
|
|
208
|
+
|
|
209
|
+
> <GetRoomAffiliation200Response> get_room_affiliation(get_room_affiliation_request)
|
|
210
|
+
|
|
211
|
+
Get affiliation of a user in MUC room.
|
|
212
|
+
|
|
213
|
+
### Examples
|
|
214
|
+
|
|
215
|
+
```ruby
|
|
216
|
+
require 'time'
|
|
217
|
+
require 'ejabberd_http_client'
|
|
218
|
+
|
|
219
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
220
|
+
get_room_affiliation_request = EjabberdHttpClient::GetRoomAffiliationRequest.new # GetRoomAffiliationRequest |
|
|
221
|
+
|
|
222
|
+
begin
|
|
223
|
+
# Get affiliation of a user in MUC room.
|
|
224
|
+
result = api_instance.get_room_affiliation(get_room_affiliation_request)
|
|
225
|
+
p result
|
|
226
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
227
|
+
puts "Error when calling MucRoomApi->get_room_affiliation: #{e}"
|
|
228
|
+
end
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
#### Using the get_room_affiliation_with_http_info variant
|
|
232
|
+
|
|
233
|
+
This returns an Array which contains the response data, status code and headers.
|
|
234
|
+
|
|
235
|
+
> <Array(<GetRoomAffiliation200Response>, Integer, Hash)> get_room_affiliation_with_http_info(get_room_affiliation_request)
|
|
236
|
+
|
|
237
|
+
```ruby
|
|
238
|
+
begin
|
|
239
|
+
# Get affiliation of a user in MUC room.
|
|
240
|
+
data, status_code, headers = api_instance.get_room_affiliation_with_http_info(get_room_affiliation_request)
|
|
241
|
+
p status_code # => 2xx
|
|
242
|
+
p headers # => { ... }
|
|
243
|
+
p data # => <GetRoomAffiliation200Response>
|
|
244
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
245
|
+
puts "Error when calling MucRoomApi->get_room_affiliation_with_http_info: #{e}"
|
|
246
|
+
end
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Parameters
|
|
250
|
+
|
|
251
|
+
| Name | Type | Description | Notes |
|
|
252
|
+
| ---- | ---- | ----------- | ----- |
|
|
253
|
+
| **get_room_affiliation_request** | [**GetRoomAffiliationRequest**](GetRoomAffiliationRequest.md) | | |
|
|
254
|
+
|
|
255
|
+
### Return type
|
|
256
|
+
|
|
257
|
+
[**GetRoomAffiliation200Response**](GetRoomAffiliation200Response.md)
|
|
258
|
+
|
|
259
|
+
### Authorization
|
|
260
|
+
|
|
261
|
+
No authorization required
|
|
262
|
+
|
|
263
|
+
### HTTP request headers
|
|
264
|
+
|
|
265
|
+
- **Content-Type**: application/json
|
|
266
|
+
- **Accept**: application/json
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
## get_room_affiliations
|
|
270
|
+
|
|
271
|
+
> <Array<GetRoomAffiliations200ResponseInner>> get_room_affiliations(get_room_affiliations_request)
|
|
272
|
+
|
|
273
|
+
Get the list of affiliations of a MUC room.
|
|
274
|
+
|
|
275
|
+
### Examples
|
|
276
|
+
|
|
277
|
+
```ruby
|
|
278
|
+
require 'time'
|
|
279
|
+
require 'ejabberd_http_client'
|
|
280
|
+
|
|
281
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
282
|
+
get_room_affiliations_request = EjabberdHttpClient::GetRoomAffiliationsRequest.new # GetRoomAffiliationsRequest |
|
|
283
|
+
|
|
284
|
+
begin
|
|
285
|
+
# Get the list of affiliations of a MUC room.
|
|
286
|
+
result = api_instance.get_room_affiliations(get_room_affiliations_request)
|
|
287
|
+
p result
|
|
288
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
289
|
+
puts "Error when calling MucRoomApi->get_room_affiliations: #{e}"
|
|
290
|
+
end
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
#### Using the get_room_affiliations_with_http_info variant
|
|
294
|
+
|
|
295
|
+
This returns an Array which contains the response data, status code and headers.
|
|
296
|
+
|
|
297
|
+
> <Array(<Array<GetRoomAffiliations200ResponseInner>>, Integer, Hash)> get_room_affiliations_with_http_info(get_room_affiliations_request)
|
|
298
|
+
|
|
299
|
+
```ruby
|
|
300
|
+
begin
|
|
301
|
+
# Get the list of affiliations of a MUC room.
|
|
302
|
+
data, status_code, headers = api_instance.get_room_affiliations_with_http_info(get_room_affiliations_request)
|
|
303
|
+
p status_code # => 2xx
|
|
304
|
+
p headers # => { ... }
|
|
305
|
+
p data # => <Array<GetRoomAffiliations200ResponseInner>>
|
|
306
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
307
|
+
puts "Error when calling MucRoomApi->get_room_affiliations_with_http_info: #{e}"
|
|
308
|
+
end
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Parameters
|
|
312
|
+
|
|
313
|
+
| Name | Type | Description | Notes |
|
|
314
|
+
| ---- | ---- | ----------- | ----- |
|
|
315
|
+
| **get_room_affiliations_request** | [**GetRoomAffiliationsRequest**](GetRoomAffiliationsRequest.md) | | |
|
|
316
|
+
|
|
317
|
+
### Return type
|
|
318
|
+
|
|
319
|
+
[**Array<GetRoomAffiliations200ResponseInner>**](GetRoomAffiliations200ResponseInner.md)
|
|
320
|
+
|
|
321
|
+
### Authorization
|
|
322
|
+
|
|
323
|
+
No authorization required
|
|
324
|
+
|
|
325
|
+
### HTTP request headers
|
|
326
|
+
|
|
327
|
+
- **Content-Type**: application/json
|
|
328
|
+
- **Accept**: application/json
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## get_room_history
|
|
332
|
+
|
|
333
|
+
> <Array<GetRoomHistory200ResponseInner>> get_room_history(get_room_affiliations_request)
|
|
334
|
+
|
|
335
|
+
Get history of messages stored inside MUC room state.
|
|
336
|
+
|
|
337
|
+
### Examples
|
|
338
|
+
|
|
339
|
+
```ruby
|
|
340
|
+
require 'time'
|
|
341
|
+
require 'ejabberd_http_client'
|
|
342
|
+
|
|
343
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
344
|
+
get_room_affiliations_request = EjabberdHttpClient::GetRoomAffiliationsRequest.new # GetRoomAffiliationsRequest |
|
|
345
|
+
|
|
346
|
+
begin
|
|
347
|
+
# Get history of messages stored inside MUC room state.
|
|
348
|
+
result = api_instance.get_room_history(get_room_affiliations_request)
|
|
349
|
+
p result
|
|
350
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
351
|
+
puts "Error when calling MucRoomApi->get_room_history: #{e}"
|
|
352
|
+
end
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
#### Using the get_room_history_with_http_info variant
|
|
356
|
+
|
|
357
|
+
This returns an Array which contains the response data, status code and headers.
|
|
358
|
+
|
|
359
|
+
> <Array(<Array<GetRoomHistory200ResponseInner>>, Integer, Hash)> get_room_history_with_http_info(get_room_affiliations_request)
|
|
360
|
+
|
|
361
|
+
```ruby
|
|
362
|
+
begin
|
|
363
|
+
# Get history of messages stored inside MUC room state.
|
|
364
|
+
data, status_code, headers = api_instance.get_room_history_with_http_info(get_room_affiliations_request)
|
|
365
|
+
p status_code # => 2xx
|
|
366
|
+
p headers # => { ... }
|
|
367
|
+
p data # => <Array<GetRoomHistory200ResponseInner>>
|
|
368
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
369
|
+
puts "Error when calling MucRoomApi->get_room_history_with_http_info: #{e}"
|
|
370
|
+
end
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Parameters
|
|
374
|
+
|
|
375
|
+
| Name | Type | Description | Notes |
|
|
376
|
+
| ---- | ---- | ----------- | ----- |
|
|
377
|
+
| **get_room_affiliations_request** | [**GetRoomAffiliationsRequest**](GetRoomAffiliationsRequest.md) | | |
|
|
378
|
+
|
|
379
|
+
### Return type
|
|
380
|
+
|
|
381
|
+
[**Array<GetRoomHistory200ResponseInner>**](GetRoomHistory200ResponseInner.md)
|
|
382
|
+
|
|
383
|
+
### Authorization
|
|
384
|
+
|
|
385
|
+
No authorization required
|
|
386
|
+
|
|
387
|
+
### HTTP request headers
|
|
388
|
+
|
|
389
|
+
- **Content-Type**: application/json
|
|
390
|
+
- **Accept**: application/json
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
## get_room_occupants
|
|
394
|
+
|
|
395
|
+
> <Array<GetRoomOccupants200ResponseInner>> get_room_occupants(get_room_affiliations_request)
|
|
396
|
+
|
|
397
|
+
Get the list of occupants of a MUC room.
|
|
398
|
+
|
|
399
|
+
### Examples
|
|
400
|
+
|
|
401
|
+
```ruby
|
|
402
|
+
require 'time'
|
|
403
|
+
require 'ejabberd_http_client'
|
|
404
|
+
|
|
405
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
406
|
+
get_room_affiliations_request = EjabberdHttpClient::GetRoomAffiliationsRequest.new # GetRoomAffiliationsRequest |
|
|
407
|
+
|
|
408
|
+
begin
|
|
409
|
+
# Get the list of occupants of a MUC room.
|
|
410
|
+
result = api_instance.get_room_occupants(get_room_affiliations_request)
|
|
411
|
+
p result
|
|
412
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
413
|
+
puts "Error when calling MucRoomApi->get_room_occupants: #{e}"
|
|
414
|
+
end
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
#### Using the get_room_occupants_with_http_info variant
|
|
418
|
+
|
|
419
|
+
This returns an Array which contains the response data, status code and headers.
|
|
420
|
+
|
|
421
|
+
> <Array(<Array<GetRoomOccupants200ResponseInner>>, Integer, Hash)> get_room_occupants_with_http_info(get_room_affiliations_request)
|
|
422
|
+
|
|
423
|
+
```ruby
|
|
424
|
+
begin
|
|
425
|
+
# Get the list of occupants of a MUC room.
|
|
426
|
+
data, status_code, headers = api_instance.get_room_occupants_with_http_info(get_room_affiliations_request)
|
|
427
|
+
p status_code # => 2xx
|
|
428
|
+
p headers # => { ... }
|
|
429
|
+
p data # => <Array<GetRoomOccupants200ResponseInner>>
|
|
430
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
431
|
+
puts "Error when calling MucRoomApi->get_room_occupants_with_http_info: #{e}"
|
|
432
|
+
end
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
### Parameters
|
|
436
|
+
|
|
437
|
+
| Name | Type | Description | Notes |
|
|
438
|
+
| ---- | ---- | ----------- | ----- |
|
|
439
|
+
| **get_room_affiliations_request** | [**GetRoomAffiliationsRequest**](GetRoomAffiliationsRequest.md) | | |
|
|
440
|
+
|
|
441
|
+
### Return type
|
|
442
|
+
|
|
443
|
+
[**Array<GetRoomOccupants200ResponseInner>**](GetRoomOccupants200ResponseInner.md)
|
|
444
|
+
|
|
445
|
+
### Authorization
|
|
446
|
+
|
|
447
|
+
No authorization required
|
|
448
|
+
|
|
449
|
+
### HTTP request headers
|
|
450
|
+
|
|
451
|
+
- **Content-Type**: application/json
|
|
452
|
+
- **Accept**: application/json
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
## get_room_occupants_number
|
|
456
|
+
|
|
457
|
+
> <GetRoomOccupantsNumber200Response> get_room_occupants_number(get_room_affiliations_request)
|
|
458
|
+
|
|
459
|
+
Get the number of occupants of a MUC room.
|
|
460
|
+
|
|
461
|
+
### Examples
|
|
462
|
+
|
|
463
|
+
```ruby
|
|
464
|
+
require 'time'
|
|
465
|
+
require 'ejabberd_http_client'
|
|
466
|
+
|
|
467
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
468
|
+
get_room_affiliations_request = EjabberdHttpClient::GetRoomAffiliationsRequest.new # GetRoomAffiliationsRequest |
|
|
469
|
+
|
|
470
|
+
begin
|
|
471
|
+
# Get the number of occupants of a MUC room.
|
|
472
|
+
result = api_instance.get_room_occupants_number(get_room_affiliations_request)
|
|
473
|
+
p result
|
|
474
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
475
|
+
puts "Error when calling MucRoomApi->get_room_occupants_number: #{e}"
|
|
476
|
+
end
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
#### Using the get_room_occupants_number_with_http_info variant
|
|
480
|
+
|
|
481
|
+
This returns an Array which contains the response data, status code and headers.
|
|
482
|
+
|
|
483
|
+
> <Array(<GetRoomOccupantsNumber200Response>, Integer, Hash)> get_room_occupants_number_with_http_info(get_room_affiliations_request)
|
|
484
|
+
|
|
485
|
+
```ruby
|
|
486
|
+
begin
|
|
487
|
+
# Get the number of occupants of a MUC room.
|
|
488
|
+
data, status_code, headers = api_instance.get_room_occupants_number_with_http_info(get_room_affiliations_request)
|
|
489
|
+
p status_code # => 2xx
|
|
490
|
+
p headers # => { ... }
|
|
491
|
+
p data # => <GetRoomOccupantsNumber200Response>
|
|
492
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
493
|
+
puts "Error when calling MucRoomApi->get_room_occupants_number_with_http_info: #{e}"
|
|
494
|
+
end
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
### Parameters
|
|
498
|
+
|
|
499
|
+
| Name | Type | Description | Notes |
|
|
500
|
+
| ---- | ---- | ----------- | ----- |
|
|
501
|
+
| **get_room_affiliations_request** | [**GetRoomAffiliationsRequest**](GetRoomAffiliationsRequest.md) | | |
|
|
502
|
+
|
|
503
|
+
### Return type
|
|
504
|
+
|
|
505
|
+
[**GetRoomOccupantsNumber200Response**](GetRoomOccupantsNumber200Response.md)
|
|
506
|
+
|
|
507
|
+
### Authorization
|
|
508
|
+
|
|
509
|
+
No authorization required
|
|
510
|
+
|
|
511
|
+
### HTTP request headers
|
|
512
|
+
|
|
513
|
+
- **Content-Type**: application/json
|
|
514
|
+
- **Accept**: application/json
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
## get_room_options
|
|
518
|
+
|
|
519
|
+
> <Array<GetRoomOptions200ResponseInner>> get_room_options(get_room_affiliations_request)
|
|
520
|
+
|
|
521
|
+
Get options from a MUC room.
|
|
522
|
+
|
|
523
|
+
### Examples
|
|
524
|
+
|
|
525
|
+
```ruby
|
|
526
|
+
require 'time'
|
|
527
|
+
require 'ejabberd_http_client'
|
|
528
|
+
|
|
529
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
530
|
+
get_room_affiliations_request = EjabberdHttpClient::GetRoomAffiliationsRequest.new # GetRoomAffiliationsRequest |
|
|
531
|
+
|
|
532
|
+
begin
|
|
533
|
+
# Get options from a MUC room.
|
|
534
|
+
result = api_instance.get_room_options(get_room_affiliations_request)
|
|
535
|
+
p result
|
|
536
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
537
|
+
puts "Error when calling MucRoomApi->get_room_options: #{e}"
|
|
538
|
+
end
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
#### Using the get_room_options_with_http_info variant
|
|
542
|
+
|
|
543
|
+
This returns an Array which contains the response data, status code and headers.
|
|
544
|
+
|
|
545
|
+
> <Array(<Array<GetRoomOptions200ResponseInner>>, Integer, Hash)> get_room_options_with_http_info(get_room_affiliations_request)
|
|
546
|
+
|
|
547
|
+
```ruby
|
|
548
|
+
begin
|
|
549
|
+
# Get options from a MUC room.
|
|
550
|
+
data, status_code, headers = api_instance.get_room_options_with_http_info(get_room_affiliations_request)
|
|
551
|
+
p status_code # => 2xx
|
|
552
|
+
p headers # => { ... }
|
|
553
|
+
p data # => <Array<GetRoomOptions200ResponseInner>>
|
|
554
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
555
|
+
puts "Error when calling MucRoomApi->get_room_options_with_http_info: #{e}"
|
|
556
|
+
end
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
### Parameters
|
|
560
|
+
|
|
561
|
+
| Name | Type | Description | Notes |
|
|
562
|
+
| ---- | ---- | ----------- | ----- |
|
|
563
|
+
| **get_room_affiliations_request** | [**GetRoomAffiliationsRequest**](GetRoomAffiliationsRequest.md) | | |
|
|
564
|
+
|
|
565
|
+
### Return type
|
|
566
|
+
|
|
567
|
+
[**Array<GetRoomOptions200ResponseInner>**](GetRoomOptions200ResponseInner.md)
|
|
568
|
+
|
|
569
|
+
### Authorization
|
|
570
|
+
|
|
571
|
+
No authorization required
|
|
572
|
+
|
|
573
|
+
### HTTP request headers
|
|
574
|
+
|
|
575
|
+
- **Content-Type**: application/json
|
|
576
|
+
- **Accept**: application/json
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
## get_subscribers
|
|
580
|
+
|
|
581
|
+
> Array<String> get_subscribers(get_room_affiliations_request)
|
|
582
|
+
|
|
583
|
+
List subscribers of a MUC conference.
|
|
584
|
+
|
|
585
|
+
### Examples
|
|
586
|
+
|
|
587
|
+
```ruby
|
|
588
|
+
require 'time'
|
|
589
|
+
require 'ejabberd_http_client'
|
|
590
|
+
|
|
591
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
592
|
+
get_room_affiliations_request = EjabberdHttpClient::GetRoomAffiliationsRequest.new # GetRoomAffiliationsRequest |
|
|
593
|
+
|
|
594
|
+
begin
|
|
595
|
+
# List subscribers of a MUC conference.
|
|
596
|
+
result = api_instance.get_subscribers(get_room_affiliations_request)
|
|
597
|
+
p result
|
|
598
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
599
|
+
puts "Error when calling MucRoomApi->get_subscribers: #{e}"
|
|
600
|
+
end
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
#### Using the get_subscribers_with_http_info variant
|
|
604
|
+
|
|
605
|
+
This returns an Array which contains the response data, status code and headers.
|
|
606
|
+
|
|
607
|
+
> <Array(Array<String>, Integer, Hash)> get_subscribers_with_http_info(get_room_affiliations_request)
|
|
608
|
+
|
|
609
|
+
```ruby
|
|
610
|
+
begin
|
|
611
|
+
# List subscribers of a MUC conference.
|
|
612
|
+
data, status_code, headers = api_instance.get_subscribers_with_http_info(get_room_affiliations_request)
|
|
613
|
+
p status_code # => 2xx
|
|
614
|
+
p headers # => { ... }
|
|
615
|
+
p data # => Array<String>
|
|
616
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
617
|
+
puts "Error when calling MucRoomApi->get_subscribers_with_http_info: #{e}"
|
|
618
|
+
end
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
### Parameters
|
|
622
|
+
|
|
623
|
+
| Name | Type | Description | Notes |
|
|
624
|
+
| ---- | ---- | ----------- | ----- |
|
|
625
|
+
| **get_room_affiliations_request** | [**GetRoomAffiliationsRequest**](GetRoomAffiliationsRequest.md) | | |
|
|
626
|
+
|
|
627
|
+
### Return type
|
|
628
|
+
|
|
629
|
+
**Array<String>**
|
|
630
|
+
|
|
631
|
+
### Authorization
|
|
632
|
+
|
|
633
|
+
No authorization required
|
|
634
|
+
|
|
635
|
+
### HTTP request headers
|
|
636
|
+
|
|
637
|
+
- **Content-Type**: application/json
|
|
638
|
+
- **Accept**: application/json
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
## send_direct_invitation
|
|
642
|
+
|
|
643
|
+
> Integer send_direct_invitation(opts)
|
|
644
|
+
|
|
645
|
+
Send a direct invitation to several destinations.
|
|
646
|
+
|
|
647
|
+
### Examples
|
|
648
|
+
|
|
649
|
+
```ruby
|
|
650
|
+
require 'time'
|
|
651
|
+
require 'ejabberd_http_client'
|
|
652
|
+
|
|
653
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
654
|
+
opts = {
|
|
655
|
+
send_direct_invitation_request: EjabberdHttpClient::SendDirectInvitationRequest.new # SendDirectInvitationRequest |
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
begin
|
|
659
|
+
# Send a direct invitation to several destinations.
|
|
660
|
+
result = api_instance.send_direct_invitation(opts)
|
|
661
|
+
p result
|
|
662
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
663
|
+
puts "Error when calling MucRoomApi->send_direct_invitation: #{e}"
|
|
664
|
+
end
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
#### Using the send_direct_invitation_with_http_info variant
|
|
668
|
+
|
|
669
|
+
This returns an Array which contains the response data, status code and headers.
|
|
670
|
+
|
|
671
|
+
> <Array(Integer, Integer, Hash)> send_direct_invitation_with_http_info(opts)
|
|
672
|
+
|
|
673
|
+
```ruby
|
|
674
|
+
begin
|
|
675
|
+
# Send a direct invitation to several destinations.
|
|
676
|
+
data, status_code, headers = api_instance.send_direct_invitation_with_http_info(opts)
|
|
677
|
+
p status_code # => 2xx
|
|
678
|
+
p headers # => { ... }
|
|
679
|
+
p data # => Integer
|
|
680
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
681
|
+
puts "Error when calling MucRoomApi->send_direct_invitation_with_http_info: #{e}"
|
|
682
|
+
end
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
### Parameters
|
|
686
|
+
|
|
687
|
+
| Name | Type | Description | Notes |
|
|
688
|
+
| ---- | ---- | ----------- | ----- |
|
|
689
|
+
| **send_direct_invitation_request** | [**SendDirectInvitationRequest**](SendDirectInvitationRequest.md) | | [optional] |
|
|
690
|
+
|
|
691
|
+
### Return type
|
|
692
|
+
|
|
693
|
+
**Integer**
|
|
694
|
+
|
|
695
|
+
### Authorization
|
|
696
|
+
|
|
697
|
+
No authorization required
|
|
698
|
+
|
|
699
|
+
### HTTP request headers
|
|
700
|
+
|
|
701
|
+
- **Content-Type**: application/json
|
|
702
|
+
- **Accept**: application/json
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
## set_room_affiliation
|
|
706
|
+
|
|
707
|
+
> Integer set_room_affiliation(opts)
|
|
708
|
+
|
|
709
|
+
Change an affiliation in a MUC room.
|
|
710
|
+
|
|
711
|
+
### Examples
|
|
712
|
+
|
|
713
|
+
```ruby
|
|
714
|
+
require 'time'
|
|
715
|
+
require 'ejabberd_http_client'
|
|
716
|
+
|
|
717
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
718
|
+
opts = {
|
|
719
|
+
set_room_affiliation_request: EjabberdHttpClient::SetRoomAffiliationRequest.new # SetRoomAffiliationRequest |
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
begin
|
|
723
|
+
# Change an affiliation in a MUC room.
|
|
724
|
+
result = api_instance.set_room_affiliation(opts)
|
|
725
|
+
p result
|
|
726
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
727
|
+
puts "Error when calling MucRoomApi->set_room_affiliation: #{e}"
|
|
728
|
+
end
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
#### Using the set_room_affiliation_with_http_info variant
|
|
732
|
+
|
|
733
|
+
This returns an Array which contains the response data, status code and headers.
|
|
734
|
+
|
|
735
|
+
> <Array(Integer, Integer, Hash)> set_room_affiliation_with_http_info(opts)
|
|
736
|
+
|
|
737
|
+
```ruby
|
|
738
|
+
begin
|
|
739
|
+
# Change an affiliation in a MUC room.
|
|
740
|
+
data, status_code, headers = api_instance.set_room_affiliation_with_http_info(opts)
|
|
741
|
+
p status_code # => 2xx
|
|
742
|
+
p headers # => { ... }
|
|
743
|
+
p data # => Integer
|
|
744
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
745
|
+
puts "Error when calling MucRoomApi->set_room_affiliation_with_http_info: #{e}"
|
|
746
|
+
end
|
|
747
|
+
```
|
|
748
|
+
|
|
749
|
+
### Parameters
|
|
750
|
+
|
|
751
|
+
| Name | Type | Description | Notes |
|
|
752
|
+
| ---- | ---- | ----------- | ----- |
|
|
753
|
+
| **set_room_affiliation_request** | [**SetRoomAffiliationRequest**](SetRoomAffiliationRequest.md) | | [optional] |
|
|
754
|
+
|
|
755
|
+
### Return type
|
|
756
|
+
|
|
757
|
+
**Integer**
|
|
758
|
+
|
|
759
|
+
### Authorization
|
|
760
|
+
|
|
761
|
+
No authorization required
|
|
762
|
+
|
|
763
|
+
### HTTP request headers
|
|
764
|
+
|
|
765
|
+
- **Content-Type**: application/json
|
|
766
|
+
- **Accept**: application/json
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
## subscribe_to_room
|
|
770
|
+
|
|
771
|
+
> Array<String> subscribe_to_room(opts)
|
|
772
|
+
|
|
773
|
+
Subscribe to a MUC conference.
|
|
774
|
+
|
|
775
|
+
### Examples
|
|
776
|
+
|
|
777
|
+
```ruby
|
|
778
|
+
require 'time'
|
|
779
|
+
require 'ejabberd_http_client'
|
|
780
|
+
|
|
781
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
782
|
+
opts = {
|
|
783
|
+
subscribe_to_room_request: EjabberdHttpClient::SubscribeToRoomRequest.new # SubscribeToRoomRequest |
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
begin
|
|
787
|
+
# Subscribe to a MUC conference.
|
|
788
|
+
result = api_instance.subscribe_to_room(opts)
|
|
789
|
+
p result
|
|
790
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
791
|
+
puts "Error when calling MucRoomApi->subscribe_to_room: #{e}"
|
|
792
|
+
end
|
|
793
|
+
```
|
|
794
|
+
|
|
795
|
+
#### Using the subscribe_to_room_with_http_info variant
|
|
796
|
+
|
|
797
|
+
This returns an Array which contains the response data, status code and headers.
|
|
798
|
+
|
|
799
|
+
> <Array(Array<String>, Integer, Hash)> subscribe_to_room_with_http_info(opts)
|
|
800
|
+
|
|
801
|
+
```ruby
|
|
802
|
+
begin
|
|
803
|
+
# Subscribe to a MUC conference.
|
|
804
|
+
data, status_code, headers = api_instance.subscribe_to_room_with_http_info(opts)
|
|
805
|
+
p status_code # => 2xx
|
|
806
|
+
p headers # => { ... }
|
|
807
|
+
p data # => Array<String>
|
|
808
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
809
|
+
puts "Error when calling MucRoomApi->subscribe_to_room_with_http_info: #{e}"
|
|
810
|
+
end
|
|
811
|
+
```
|
|
812
|
+
|
|
813
|
+
### Parameters
|
|
814
|
+
|
|
815
|
+
| Name | Type | Description | Notes |
|
|
816
|
+
| ---- | ---- | ----------- | ----- |
|
|
817
|
+
| **subscribe_to_room_request** | [**SubscribeToRoomRequest**](SubscribeToRoomRequest.md) | | [optional] |
|
|
818
|
+
|
|
819
|
+
### Return type
|
|
820
|
+
|
|
821
|
+
**Array<String>**
|
|
822
|
+
|
|
823
|
+
### Authorization
|
|
824
|
+
|
|
825
|
+
No authorization required
|
|
826
|
+
|
|
827
|
+
### HTTP request headers
|
|
828
|
+
|
|
829
|
+
- **Content-Type**: application/json
|
|
830
|
+
- **Accept**: application/json
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
## subscribe_to_room_many
|
|
834
|
+
|
|
835
|
+
> Integer subscribe_to_room_many(opts)
|
|
836
|
+
|
|
837
|
+
Subscribe several users to a MUC conference.
|
|
838
|
+
|
|
839
|
+
### Examples
|
|
840
|
+
|
|
841
|
+
```ruby
|
|
842
|
+
require 'time'
|
|
843
|
+
require 'ejabberd_http_client'
|
|
844
|
+
|
|
845
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
846
|
+
opts = {
|
|
847
|
+
subscribe_to_room_many_request: EjabberdHttpClient::SubscribeToRoomManyRequest.new # SubscribeToRoomManyRequest |
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
begin
|
|
851
|
+
# Subscribe several users to a MUC conference.
|
|
852
|
+
result = api_instance.subscribe_to_room_many(opts)
|
|
853
|
+
p result
|
|
854
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
855
|
+
puts "Error when calling MucRoomApi->subscribe_to_room_many: #{e}"
|
|
856
|
+
end
|
|
857
|
+
```
|
|
858
|
+
|
|
859
|
+
#### Using the subscribe_to_room_many_with_http_info variant
|
|
860
|
+
|
|
861
|
+
This returns an Array which contains the response data, status code and headers.
|
|
862
|
+
|
|
863
|
+
> <Array(Integer, Integer, Hash)> subscribe_to_room_many_with_http_info(opts)
|
|
864
|
+
|
|
865
|
+
```ruby
|
|
866
|
+
begin
|
|
867
|
+
# Subscribe several users to a MUC conference.
|
|
868
|
+
data, status_code, headers = api_instance.subscribe_to_room_many_with_http_info(opts)
|
|
869
|
+
p status_code # => 2xx
|
|
870
|
+
p headers # => { ... }
|
|
871
|
+
p data # => Integer
|
|
872
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
873
|
+
puts "Error when calling MucRoomApi->subscribe_to_room_many_with_http_info: #{e}"
|
|
874
|
+
end
|
|
875
|
+
```
|
|
876
|
+
|
|
877
|
+
### Parameters
|
|
878
|
+
|
|
879
|
+
| Name | Type | Description | Notes |
|
|
880
|
+
| ---- | ---- | ----------- | ----- |
|
|
881
|
+
| **subscribe_to_room_many_request** | [**SubscribeToRoomManyRequest**](SubscribeToRoomManyRequest.md) | | [optional] |
|
|
882
|
+
|
|
883
|
+
### Return type
|
|
884
|
+
|
|
885
|
+
**Integer**
|
|
886
|
+
|
|
887
|
+
### Authorization
|
|
888
|
+
|
|
889
|
+
No authorization required
|
|
890
|
+
|
|
891
|
+
### HTTP request headers
|
|
892
|
+
|
|
893
|
+
- **Content-Type**: application/json
|
|
894
|
+
- **Accept**: application/json
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
## unsubscribe_from_room
|
|
898
|
+
|
|
899
|
+
> Integer unsubscribe_from_room(opts)
|
|
900
|
+
|
|
901
|
+
Unsubscribe from a MUC conference.
|
|
902
|
+
|
|
903
|
+
### Examples
|
|
904
|
+
|
|
905
|
+
```ruby
|
|
906
|
+
require 'time'
|
|
907
|
+
require 'ejabberd_http_client'
|
|
908
|
+
|
|
909
|
+
api_instance = EjabberdHttpClient::MucRoomApi.new
|
|
910
|
+
opts = {
|
|
911
|
+
unsubscribe_from_room_request: EjabberdHttpClient::UnsubscribeFromRoomRequest.new # UnsubscribeFromRoomRequest |
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
begin
|
|
915
|
+
# Unsubscribe from a MUC conference.
|
|
916
|
+
result = api_instance.unsubscribe_from_room(opts)
|
|
917
|
+
p result
|
|
918
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
919
|
+
puts "Error when calling MucRoomApi->unsubscribe_from_room: #{e}"
|
|
920
|
+
end
|
|
921
|
+
```
|
|
922
|
+
|
|
923
|
+
#### Using the unsubscribe_from_room_with_http_info variant
|
|
924
|
+
|
|
925
|
+
This returns an Array which contains the response data, status code and headers.
|
|
926
|
+
|
|
927
|
+
> <Array(Integer, Integer, Hash)> unsubscribe_from_room_with_http_info(opts)
|
|
928
|
+
|
|
929
|
+
```ruby
|
|
930
|
+
begin
|
|
931
|
+
# Unsubscribe from a MUC conference.
|
|
932
|
+
data, status_code, headers = api_instance.unsubscribe_from_room_with_http_info(opts)
|
|
933
|
+
p status_code # => 2xx
|
|
934
|
+
p headers # => { ... }
|
|
935
|
+
p data # => Integer
|
|
936
|
+
rescue EjabberdHttpClient::ApiError => e
|
|
937
|
+
puts "Error when calling MucRoomApi->unsubscribe_from_room_with_http_info: #{e}"
|
|
938
|
+
end
|
|
939
|
+
```
|
|
940
|
+
|
|
941
|
+
### Parameters
|
|
942
|
+
|
|
943
|
+
| Name | Type | Description | Notes |
|
|
944
|
+
| ---- | ---- | ----------- | ----- |
|
|
945
|
+
| **unsubscribe_from_room_request** | [**UnsubscribeFromRoomRequest**](UnsubscribeFromRoomRequest.md) | | [optional] |
|
|
946
|
+
|
|
947
|
+
### Return type
|
|
948
|
+
|
|
949
|
+
**Integer**
|
|
950
|
+
|
|
951
|
+
### Authorization
|
|
952
|
+
|
|
953
|
+
No authorization required
|
|
954
|
+
|
|
955
|
+
### HTTP request headers
|
|
956
|
+
|
|
957
|
+
- **Content-Type**: application/json
|
|
958
|
+
- **Accept**: application/json
|
|
959
|
+
|