# go-rockseven [![Build Status](https://travis-ci.org/JanBerktold/go-rockblock.svg)](https://travis-ci.org/JanBerktold/go-rockblock)

A simple package for interacting with your http://www.rock7mobile.com/ devices using a web interface.

Sending a message to an endpoint, providing the IMEI number:

	import (
		"fmt"
		"github.com/janberktold/go-rockseven"
	)

	client := rock7.NewClient("user", "pass")

	if code, err := client.SendString("1234689", "Hello, world!"); err == nil {
		fmt.Printf("Sent message, assigned messageId: %v", code)
	} else {
		fmt.Printf("Failed sending message %q", err.Error())
	}

Alternatively, you can set a default IMEI number.

	client.SetDefaultIMEI("1234689")
	code, err := client.SendStringToDefault("Hello, world!")


Sending a byte slice can be done using the corresponding methods:

	client.SetDefaultIMEI("1234689")
	code, err := client.SendToDefault([]byte{79, 75})

or

	code, err := client.SendT("1234689", []byte{79, 75})

# go-rockseven [![Build Status](https://travis-ci.org/JanBerktold/go-rockseven.svg)](https://travis-ci.org/JanBerktold/go-rockseven)

A simple package for interacting with your http://www.rock7mobile.com/ devices using a web interface.

## Sending

Sending a message to an endpoint, providing the IMEI number:

	import (
		"fmt"
		"github.com/janberktold/go-rockseven"
	)

	client := rock7.NewClient("user", "pass")

	if code, err := client.SendString("1234689", "Hello, world!"); err == nil {
		fmt.Printf("Sent message, assigned messageId: %v", code)
	} else {
		fmt.Printf("Failed sending message %q", err.Error())
	}

Alternatively, you can set a default IMEI number.

	client.SetDefaultIMEI("1234689")
	code, err := client.SendStringToDefault("Hello, world!")


Sending a byte slice can be done using the corresponding methods:

	client.SetDefaultIMEI("1234689")
	code, err := client.SendToDefault([]byte{79, 75})

or

	code, err := client.SendT("1234689", []byte{79, 75})

## Receiving

Work in progress.

Set right build status image
Set right build status image
