func (pb *Pushbullet) GetDevices() ([]*responses.Device, error) {
	req, err := http.NewRequest("GET", ENDPOINT_DEVICES, nil)
	if err != nil {
		return nil, err
	}
	req.SetBasicAuth(pb.token, "")
	res, err := pb.client.Do(req)
	if err != nil {
		return nil, err
	}
	if res.StatusCode != 200 {
		return nil, errors.New(res.Status)
	}
	var devices *devicesResponse
	decoder := json.NewDecoder(res.Body)
	if err := decoder.Decode(&devices); err != nil {
		return nil, err
	}
	return devices.Devices, nil
}
Get the devices thath can be pushed to.
package pushbullet
import (
	"encoding/json"
	"errors"
	"net/http"
	"github.com/mitsuse/pushbullet-go/responses"
)