Example #1
0
func Confirm(s *pushes.State) error {
	if s.CanConfirm() {
		return push(s, "Pushbullet PIN = "+s.Pin,
			"Tell sp0rkle 'push auth <pin>' to complete setup.")
	}
	return errors.New("Not in correct state to send confirmation push.")
}
Example #2
0
func AuthCodeURL(s *pushes.State) string {
	return config().AuthCodeURL(s.State())
}
Example #3
0
func Push(s *pushes.State, title, body string) error {
	if s.CanPush() {
		return push(s, title, body)
	}
	return errors.New("Push not enabled.")
}