-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Locate Free Extension & Powered by OS (#150)
Co-authored-by: Olivia Curtis <[email protected]> Co-authored-by: Malkin0xb <[email protected]> Co-authored-by: CHOPP3D <[email protected]> Co-authored-by: Malkin0xb <[email protected]>
- Loading branch information
1 parent
f93caec
commit 30703fa
Showing
59 changed files
with
1,493 additions
and
132 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ api.get.user_services_assigned() | |
|
||
### Return | ||
|
||
* JSON: A JSON formatted report of service packs assigned in the group. | ||
* dict: A dictionary containting service packs assigned in the group. | ||
|
||
### How To Use: | ||
|
||
|
@@ -32,68 +32,73 @@ from odins_spear import api | |
my_api= api.Api(base_url="https://base_url/api/vx", username="john.smith", password="ODIN_INSTANCE_1") | ||
my_api.authenticate() | ||
|
||
print( | ||
my_api.scripter.aa_cc_hg_audit( | ||
"serviceProviderId", | ||
"groupId" | ||
) | ||
print(my_api.scripter.aa_cc_hg_audit( | ||
"serviceProviderId", | ||
"groupId" | ||
) | ||
) | ||
``` | ||
|
||
### Example returned data (formatted): | ||
|
||
```json | ||
{ | ||
"auto_attendants": [ | ||
{ | ||
"serviceUserId": "my_aa", | ||
"services": [ | ||
{ | ||
"serviceName": "Alternate Numbers" | ||
} | ||
] | ||
} | ||
], | ||
"call_centers": [ | ||
{ | ||
"serviceUserId": "my_cc", | ||
"type": "Premium", | ||
"services": [] | ||
}, | ||
{ | ||
"serviceUserId": "my_cc_2", | ||
"type": "Premium", | ||
"services": [ | ||
{ | ||
"serviceName": "Call Forwarding Busy", | ||
"isActive": false | ||
} | ||
] | ||
} | ||
], | ||
"hunt_groups": [ | ||
{ | ||
"serviceUserId": "my_hg_1", | ||
"services": [ | ||
{ | ||
"serviceName": "Call Forwarding Selective", | ||
"isActive": true | ||
} | ||
] | ||
}, | ||
{ | ||
"serviceUserId": "my_hg_2", | ||
"services": [ | ||
{ | ||
"serviceName": "Call Forwarding Always", | ||
"isActive": false | ||
} | ||
] | ||
}, | ||
{ | ||
"serviceUserId": "my_hg_3", | ||
"services": [] | ||
} | ||
] | ||
"autoAttendants":[ | ||
{ | ||
"serviceUserId":"[email protected]", | ||
"type":"Basic", | ||
"services":[ | ||
|
||
] | ||
} | ||
], | ||
"callCenters":[ | ||
{ | ||
"serviceUserId":"[email protected]", | ||
"type":"Basic", | ||
"services":[ | ||
|
||
] | ||
} | ||
], | ||
"huntGroups":[ | ||
{ | ||
"serviceUserId":"[email protected]", | ||
"services":[ | ||
|
||
] | ||
}, | ||
{ | ||
"serviceUserId":"[email protected]", | ||
"services":[ | ||
|
||
] | ||
}, | ||
{ | ||
"serviceUserId":"[email protected]", | ||
"services":[ | ||
|
||
] | ||
}, | ||
{ | ||
"serviceUserId":"[email protected]", | ||
"services":[ | ||
|
||
] | ||
}, | ||
{ | ||
"serviceUserId":"[email protected]", | ||
"services":[ | ||
|
||
] | ||
}, | ||
{ | ||
"serviceUserId":"[email protected]", | ||
"services":[ | ||
|
||
] | ||
} | ||
] | ||
} | ||
|
||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ The search is conducted in two phases: | |
1. Collecting details of AAs, HGs, and CCs and checking for the aliases. | ||
2. If not found, search through the users for the alias. | ||
|
||
If the alias is found, the method returns a string specifying the type of entity and its name or userID. If the alias is not found after checking all entities, an AOAliasNotFound exception is raised. | ||
If the alias is found, the method returns a dict specifying the type of entity and its name or userID. If the alias is not found after checking all entities, an AOAliasNotFound exception is raised. | ||
|
||
The script makes use of the following methods: | ||
|
||
|
@@ -31,7 +31,7 @@ api.get.users() | |
|
||
### Return | ||
|
||
* Returns type and name/ userId of entity where alias located. | ||
* dict: Returns dictionary with type, userserviceid, name and alias. | ||
|
||
### Raise | ||
|
||
|
@@ -47,20 +47,19 @@ my_api = api.Api(base_url="https://base_url/api/vx", username="john.smith", pass | |
my_api.authenticate() | ||
|
||
# find alias method | ||
print(magic.scripter.find_alias('Service Provider ID', 'Group ID', alias=11)) | ||
print(my_api.scripter.find_alias('Service Provider ID', 'Group ID', alias=12)) | ||
``` | ||
{% endcode %} | ||
|
||
### Terminal Output | ||
|
||
{% code overflow="wrap" fullWidth="false" %} | ||
``` | ||
Fetching AA, HG, and CC details: 100%|██████████████████████████████████████████████████████████████████████████ | ||
Searching AA, HG, and CC for alias 11: 100%|████████████████████████████████████████████████████████████████████ | ||
2024-01-03 13:05:33,003 - INFO - Fetched users. | ||
Searching Users for alias: 11: 38%|███████████████████████████████████████████████▎ | ||
Alias (11) found: User - [email protected] | ||
``` | ||
{% endcode %} | ||
### Formatted Output | ||
|
||
```json | ||
{ | ||
"type":"HG", | ||
"service_user_id":"TESTHG", | ||
"name":"Test HG", | ||
"aliases":[ | ||
"12@PROXYADDRESS" | ||
] | ||
} | ||
``` |
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
Oops, something went wrong.