-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for multiple app tokens
GitHub issue #29
- Loading branch information
1 parent
10de64d
commit 8c2ff1d
Showing
6 changed files
with
176 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,4 +96,9 @@ ENV/ | |
.ropeproject | ||
|
||
# PyCharm project data | ||
.idea | ||
.idea | ||
.DS_Store | ||
|
||
Pushover.indigoPlugin.zip | ||
|
||
Multiple_API_Tokens.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
Pushover.indigoPlugin/Contents/Server Plugin/MenuItems.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<MenuItems> | ||
<MenuItem id="manageTokens"> | ||
<Name>Manage App Tokens...</Name> | ||
<ConfigUI> | ||
<Field id="appName" type="textfield"> | ||
<Label>App Name:</Label> | ||
</Field> | ||
<Field id="appToken" type="textfield"> | ||
<Label>App Token:</Label> | ||
</Field> | ||
<Field id="hlpApiToken" type="label" fontSize="mini" alignWithControl="true"> | ||
<Label>Created at https://pushover.net/apps/clone/indigo_domotics</Label> | ||
</Field> | ||
<Field id="addToken" type="button"> | ||
<Label/> | ||
<Title>Add/Update Token</Title> | ||
<CallbackMethod>addToken</CallbackMethod> | ||
</Field> | ||
<Field id="appTokenList" type="list" rows="15"> | ||
<Label>Available App Tokens:</Label> | ||
<List class="self" method="get_app_tokens" dynamicReload="true"/> | ||
</Field> | ||
<Field id="deleteTokens" type="button"> | ||
<Label/> | ||
<Title>Delete Tokens</Title> | ||
<CallbackMethod>deleteTokens</CallbackMethod> | ||
</Field> | ||
</ConfigUI> | ||
</MenuItem> | ||
<MenuItem id="listTokens"> | ||
<CallbackMethod>listTokens</CallbackMethod> | ||
<Name>Print App Token List to Log</Name> | ||
</MenuItem> | ||
|
||
</MenuItems> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters