An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Remote Messages
[![Build Status](https://travis-ci.org/stevesoltys/remote-messages.svg?branch=master)](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).