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.") }
func AuthCodeURL(s *pushes.State) string { return config().AuthCodeURL(s.State()) }
func Push(s *pushes.State, title, body string) error { if s.CanPush() { return push(s, title, body) } return errors.New("Push not enabled.") }