All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
srg_create | POST /api/srg_create | Create a Shared Roster Group. |
srg_delete | POST /api/srg_delete | Delete a Shared Roster Group. |
srg_get_info | POST /api/srg_get_info | Get info of a Shared Roster Group. |
srg_get_members | POST /api/srg_get_members | Get members of a Shared Roster Group. |
srg_list | POST /api/srg_list | List the Shared Roster Groups in a host. |
srg_user_add | POST /api/srg_user_add | Add the JID user@host to a Shared Roster Group. |
srg_user_del | POST /api/srg_user_del | Delete the JID user@host from a Shared Roster Group. |
Integer srg_create(opts)
Create a Shared Roster Group.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::SharedRosterGroupApi.new
opts = {
srg_create_request: EjabberdHttpClient::SrgCreateRequest.new # SrgCreateRequest |
}
begin
# Create a Shared Roster Group.
result = api_instance.srg_create(opts)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_create: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Integer, Integer, Hash)> srg_create_with_http_info(opts)
begin
# Create a Shared Roster Group.
data, status_code, headers = api_instance.srg_create_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Integer
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_create_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
srg_create_request | SrgCreateRequest | [optional] |
Integer
No authorization required
- Content-Type: application/json
- Accept: application/json
Integer srg_delete(opts)
Delete a Shared Roster Group.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::SharedRosterGroupApi.new
opts = {
srg_delete_request: EjabberdHttpClient::SrgDeleteRequest.new # SrgDeleteRequest |
}
begin
# Delete a Shared Roster Group.
result = api_instance.srg_delete(opts)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_delete: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Integer, Integer, Hash)> srg_delete_with_http_info(opts)
begin
# Delete a Shared Roster Group.
data, status_code, headers = api_instance.srg_delete_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Integer
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_delete_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
srg_delete_request | SrgDeleteRequest | [optional] |
Integer
No authorization required
- Content-Type: application/json
- Accept: application/json
<Array> srg_get_info(opts)
Get info of a Shared Roster Group.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::SharedRosterGroupApi.new
opts = {
srg_delete_request: EjabberdHttpClient::SrgDeleteRequest.new # SrgDeleteRequest |
}
begin
# Get info of a Shared Roster Group.
result = api_instance.srg_get_info(opts)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_get_info: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(<Array>, Integer, Hash)> srg_get_info_with_http_info(opts)
begin
# Get info of a Shared Roster Group.
data, status_code, headers = api_instance.srg_get_info_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Array<SrgGetInfo200ResponseInner>>
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_get_info_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
srg_delete_request | SrgDeleteRequest | [optional] |
Array<SrgGetInfo200ResponseInner>
No authorization required
- Content-Type: application/json
- Accept: application/json
Array<String> srg_get_members(opts)
Get members of a Shared Roster Group.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::SharedRosterGroupApi.new
opts = {
srg_delete_request: EjabberdHttpClient::SrgDeleteRequest.new # SrgDeleteRequest |
}
begin
# Get members of a Shared Roster Group.
result = api_instance.srg_get_members(opts)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_get_members: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Array<String>, Integer, Hash)> srg_get_members_with_http_info(opts)
begin
# Get members of a Shared Roster Group.
data, status_code, headers = api_instance.srg_get_members_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Array<String>
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_get_members_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
srg_delete_request | SrgDeleteRequest | [optional] |
Array<String>
No authorization required
- Content-Type: application/json
- Accept: application/json
Array<String> srg_list(opts)
List the Shared Roster Groups in a host.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::SharedRosterGroupApi.new
opts = {
connected_users_v_host_request: EjabberdHttpClient::ConnectedUsersVHostRequest.new # ConnectedUsersVHostRequest |
}
begin
# List the Shared Roster Groups in a host.
result = api_instance.srg_list(opts)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_list: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Array<String>, Integer, Hash)> srg_list_with_http_info(opts)
begin
# List the Shared Roster Groups in a host.
data, status_code, headers = api_instance.srg_list_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Array<String>
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_list_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
connected_users_v_host_request | ConnectedUsersVHostRequest | [optional] |
Array<String>
No authorization required
- Content-Type: application/json
- Accept: application/json
Integer srg_user_add(opts)
Add the JID user@host to a Shared Roster Group.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::SharedRosterGroupApi.new
opts = {
srg_user_add_request: EjabberdHttpClient::SrgUserAddRequest.new # SrgUserAddRequest |
}
begin
# Add the JID user@host to a Shared Roster Group.
result = api_instance.srg_user_add(opts)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_user_add: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Integer, Integer, Hash)> srg_user_add_with_http_info(opts)
begin
# Add the JID user@host to a Shared Roster Group.
data, status_code, headers = api_instance.srg_user_add_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Integer
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_user_add_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
srg_user_add_request | SrgUserAddRequest | [optional] |
Integer
No authorization required
- Content-Type: application/json
- Accept: application/json
Integer srg_user_del(opts)
Delete the JID user@host from a Shared Roster Group.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::SharedRosterGroupApi.new
opts = {
srg_user_add_request: EjabberdHttpClient::SrgUserAddRequest.new # SrgUserAddRequest |
}
begin
# Delete the JID user@host from a Shared Roster Group.
result = api_instance.srg_user_del(opts)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_user_del: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Integer, Integer, Hash)> srg_user_del_with_http_info(opts)
begin
# Delete the JID user@host from a Shared Roster Group.
data, status_code, headers = api_instance.srg_user_del_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Integer
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling SharedRosterGroupApi->srg_user_del_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
srg_user_add_request | SrgUserAddRequest | [optional] |
Integer
No authorization required
- Content-Type: application/json
- Accept: application/json