https://github.com/stevesoltys/remote-messages
A Remote Messages client library.
https://github.com/stevesoltys/remote-messages
client imessage remotemessages
Last synced: over 1 year ago
JSON representation
A Remote Messages client library.
- Host: GitHub
- URL: https://github.com/stevesoltys/remote-messages
- Owner: stevesoltys
- License: mit
- Created: 2019-01-19T09:38:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-20T15:37:47.000Z (over 7 years ago)
- Last Synced: 2025-01-27T11:49:44.320Z (over 1 year ago)
- Topics: client, imessage, remotemessages
- Language: Java
- Size: 19.5 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Remote Messages
[](https://travis-ci.org/stevesoltys/remote-messages)
A [Remote Messages](http://remotemessages.com/) client library.
This allows for sending and receiving iMessages programmatically with an iOS device that has Remote Messages installed.
## Installation
```groovy
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.stevesoltys:remote-messages:0.1.5'
}
```
## Usage
Create a `RemoteMessagesClient` instance with the base URL, optional credentials, and make a query.
Here's an example:
```java
RemoteMessagesClient client = RemoteMessagesClient.builder()
.baseUrl("http://192.168.1.5:333")
.username("admin").password("password")
.build();
List conversations = client.getConversations();
Conversation conversation = conversations.get(0);
ConversationMessages messages = client.getMessages(conversation.getId());
messages.getMessages().forEach(System.out::println);
client.sendMessage(OutgoingMessage.builder()
.conversationId(conversation.getId())
.message("Hello!")
.build());
```
## Notes
Please note that this has only been tested on the legacy version of Remote Messages (v2).
Testing for other versions would be appreciated.
## License
This application is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).