|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.notifo.client.NotifoHttpClient
public class NotifoHttpClient
| Constructor Summary | |
|---|---|
NotifoHttpClient(String userName,
String apiKey)
Construct a client with a username and apikey. |
|
| Method Summary | |
|---|---|
NotifoResponse |
sendMessage(NotifoMessage message)
Send a message with the parameters in NotifoMessage |
NotifoResponse |
sendMessage(String messageBody)
Send a message to the default user (you) |
NotifoResponse |
sendMessage(String to,
String messageBody)
Send a message to a particular user |
void |
setHttpClient(org.apache.http.client.HttpClient httpClient)
Override the default http client |
NotifoResponse |
subscribeUser(String userName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotifoHttpClient(String userName,
String apiKey)
userName - apiKey - | Method Detail |
|---|
public NotifoResponse sendMessage(String messageBody)
throws NotifoException
NotifoClient
sendMessage in interface NotifoClientNotifoException
public NotifoResponse sendMessage(String to,
String messageBody)
throws NotifoException
NotifoClient
sendMessage in interface NotifoClientNotifoException
public NotifoResponse sendMessage(NotifoMessage message)
throws NotifoException
NotifoMessage
sendMessage in interface NotifoClientNotifoException
public NotifoResponse subscribeUser(String userName)
throws NotifoException
subscribeUser in interface NotifoClientNotifoExceptionpublic void setHttpClient(org.apache.http.client.HttpClient httpClient)
httpClient -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||