@Service public class TextlineClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SMS_SERVICE_IDENTIFIER |
| Constructor and Description |
|---|
TextlineClient() |
| Modifier and Type | Method and Description |
|---|---|
TextlineAccessToken |
fetchAccessToken()
Fetches an access token to be used with the next request
https://textline.docs.apiary.io/#reference/conversations/access-token
|
TextlineMessageResponse |
sendMessageToPhoneNumber(TextlineMessage message)
Sends a TextlineMessage to the phone number specified in the message
|
public static String SMS_SERVICE_IDENTIFIER
public TextlineAccessToken fetchAccessToken() throws FailedDependencyException
FailedDependencyException - if API is inaccessiblepublic TextlineMessageResponse sendMessageToPhoneNumber(TextlineMessage message) throws FailedDependencyException
https://textline.docs.apiary.io/#reference/conversations/conversation/message-a-phone-number
message - The Textline message to sendFailedDependencyException - if API is inaccessibleCopyright © 2019. All rights reserved.