Compare commits
3 Commits
9394f649a6
...
e2716d94c0
Author | SHA1 | Date | |
---|---|---|---|
e2716d94c0 | |||
8b3243af6b | |||
fc36fbf10c |
@ -14,12 +14,20 @@ class EjabberdApiClient
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# API endpoints
|
||||
#
|
||||
|
||||
def add_rosteritem(payload)
|
||||
post "add_rosteritem", payload
|
||||
end
|
||||
|
||||
def send_message(payload)
|
||||
post "send_message", payload
|
||||
def get_vcard2(user, name, subname)
|
||||
payload = {
|
||||
user: user.cn, host: user.ou,
|
||||
name: name, subname: subname
|
||||
}
|
||||
post "get_vcard2", payload
|
||||
end
|
||||
|
||||
def private_get(user, element_name, namespace)
|
||||
@ -37,4 +45,8 @@ class EjabberdApiClient
|
||||
}
|
||||
post "private_set", payload
|
||||
end
|
||||
|
||||
def send_message(payload)
|
||||
post "send_message", payload
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user