-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
71 additions
and
3 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "ProjectManagerSdk" | ||
version = "99.0.2541" | ||
version = "99.0.2548" | ||
authors = [ | ||
{ name = "ProjectManager.com", email = "[email protected]" } | ||
] | ||
|
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# ProjectManager API for Python | ||
# | ||
# (c) 2023-2023 ProjectManager.com, Inc. | ||
# | ||
# For the full copyright and license information, please view the LICENSE | ||
# file that was distributed with this source code. | ||
# | ||
# @author ProjectManager.com <[email protected]> | ||
# @copyright 2023-2023 ProjectManager.com, Inc. | ||
# @link https://github.com/projectmgr/projectmanager-sdk-python | ||
# | ||
|
||
from ProjectManagerSdk.models.astroresult import AstroResult | ||
from requests.models import Response | ||
import json | ||
|
||
class TeamsClient: | ||
""" | ||
API methods related to Teams | ||
""" | ||
from ProjectManagerSdk.projectmanagerclient import ProjectManagerClient | ||
|
||
def __init__(self, client: ProjectManagerClient): | ||
self.client = client | ||
|
||
def retrieve_zip_file_for_teams_integrations(self) -> Response: | ||
""" | ||
Retrieves zip file for teams integrations. The Teams API is | ||
intended for use by ProjectManager and its business development | ||
partners. Please contact ProjectManager's sales team to request | ||
use of this API. | ||
Parameters | ||
---------- | ||
""" | ||
path = "/api/data/integrations/teams/application" | ||
queryParams = {} | ||
result = self.client.send_request("GET", path, None, queryParams, None) | ||
return result |
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 @@ | |
# @author ProjectManager.com <[email protected]> | ||
# | ||
# @copyright 2023-2023 ProjectManager.com, Inc. | ||
# @version 99.0.2541 | ||
# @version 99.0.2548 | ||
# @link https://github.com/projectmgr/projectmanager-sdk-python | ||
# | ||
|
||
|
@@ -72,6 +72,7 @@ def __init__(self, env: str, appname: str): | |
from ProjectManagerSdk.clients.taskfileclient import TaskFileClient | ||
from ProjectManagerSdk.clients.taskstatusclient import TaskStatusClient | ||
from ProjectManagerSdk.clients.tasktagclient import TaskTagClient | ||
from ProjectManagerSdk.clients.teamsclient import TeamsClient | ||
from ProjectManagerSdk.clients.timesheetclient import TimesheetClient | ||
from ProjectManagerSdk.clients.userroleclient import UserRoleClient | ||
from ProjectManagerSdk.clients.workspaceclient import WorkSpaceClient | ||
|
@@ -106,14 +107,15 @@ def __init__(self, env: str, appname: str): | |
self.taskFile = TaskFileClient(self) | ||
self.taskStatus = TaskStatusClient(self) | ||
self.taskTag = TaskTagClient(self) | ||
self.teams = TeamsClient(self) | ||
self.timesheet = TimesheetClient(self) | ||
self.userRole = UserRoleClient(self) | ||
self.workSpace = WorkSpaceClient(self) | ||
self.serverUrl = env | ||
if env == "production": | ||
self.serverUrl = "https://api.projectmanager.com" | ||
self.sdkName = "Python" | ||
self.sdkVersion = "99.0.2541" | ||
self.sdkVersion = "99.0.2548" | ||
self.machineName = platform.uname().node | ||
self.applicationName = appname | ||
self.bearerToken = None | ||
|