Sort API methods alphabetically
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fc36fbf10c
commit
8b3243af6b
@ -14,12 +14,20 @@ class EjabberdApiClient
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# API endpoints
|
||||||
|
#
|
||||||
|
|
||||||
def add_rosteritem(payload)
|
def add_rosteritem(payload)
|
||||||
post "add_rosteritem", payload
|
post "add_rosteritem", payload
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_message(payload)
|
def get_vcard2(user, name, subname)
|
||||||
post "send_message", payload
|
payload = {
|
||||||
|
user: user.cn, host: user.ou,
|
||||||
|
name: name, subname: subname
|
||||||
|
}
|
||||||
|
post "get_vcard2", payload
|
||||||
end
|
end
|
||||||
|
|
||||||
def private_get(user, element_name, namespace)
|
def private_get(user, element_name, namespace)
|
||||||
@ -38,11 +46,7 @@ class EjabberdApiClient
|
|||||||
post "private_set", payload
|
post "private_set", payload
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_vcard2(user, name, subname)
|
def send_message(payload)
|
||||||
payload = {
|
post "send_message", payload
|
||||||
user: user.cn, host: user.ou,
|
|
||||||
name: name, subname: subname
|
|
||||||
}
|
|
||||||
post "get_vcard2", payload
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user