forked from makah/pushover-vba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.bas
37 lines (24 loc) · 1 KB
/
Test.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Sub Example1()
Dim myApp As String, theGroup As String
myApp = "my_application_token"
theGroup = "my_Group_or_user_token"
pushover.Post(app:=myApp, group:=theGroup, message:="Hello my PushoOver-VBA Helper")
End Sub
Sub Example2()
Dim myApp As String, theGroup As String
myApp = "my_application_token"
theGroup = "my_Group_or_user_token"
Dim ok As Boolean = pushover.Post(myApp, theGroup, "Hello my PushoOver-VBA Helper 2")
If ok = True Then
Debug.WriteLine("Pushover worked")
Else
MsgBox("There was a pushover Error")
End If
End Sub
Sub Example3()
Dim myApp As String, theGroup As String, Message As String
myApp = "my_application_token"
theGroup = "my_Group_or_user_token"
Message = "Hello my PushoOver-VBA Helper 3"
Debug.WriteLine(pushover.PostOp(myApp, theGroup, Message, "sound", "cosmic", "title", "My new Title"))
End Sub