Beispiel #1
0
    def __init__(self, context):
        """

        :param ClientContext context:
        """
        super().__init__(context)
        self._pendingRequest = ODataRequest(self, V4JsonFormat("minimal"))
        self._service_root_url = f"{context.service_root_url()}v2.1/"
 def __init__(self, tenant, acquire_token_callback):
     self.__service_root_url = "https://graph.microsoft.com/v1.0/"
     super(GraphClient, self).__init__(self.__service_root_url, None)
     self.json_format = V4JsonFormat("minimal")
     self._resource = "https://graph.microsoft.com"
     self._authority_host_url = "https://login.microsoftonline.com"
     self._tenant = tenant
     self._acquire_token_callback = acquire_token_callback
 def __init__(self, context):
     """
     :type  context: office365.sharepoint.client_context.ClientContext
     """
     super().__init__()
     self._auth_context = context.authentication_context
     self._pendingRequest = ODataRequest(self, V4JsonFormat("minimal"))
     self._service_root_url = f"{context.service_root_url()}v2.1/"
 def __init__(self, tenant, acquire_token_callback):
     self.__service_root_url = "https://graph.microsoft.com/v1.0/"
     super(GraphClient, self).__init__(self.__service_root_url, None)
     self._pending_request = ODataRequest(self, V4JsonFormat("minimal"))
     self._pending_request.beforeExecute += self._build_specific_query
     self._resource = "https://graph.microsoft.com"
     self._authority_host_url = "https://login.microsoftonline.com"
     self._tenant = tenant
     self._acquire_token_callback = acquire_token_callback
Beispiel #5
0
    def __init__(self, ctx_auth):
        """
        Office365 Outlook client context
        Status: deprecated, prefer GraphClient instead

        :type ctx_auth: AuthenticationContext
        """
        self.__service_root_url = "https://outlook.office365.com/api/v1.0/"
        super(OutlookClient, self).__init__(self.__service_root_url, ctx_auth)
        self._pendingRequest = ODataRequest(self, V4JsonFormat("minimal"))
        self._pendingRequest.beforeExecute += self._build_specific_query
Beispiel #6
0
    def __init__(self, acquire_token_callback):
        """

        :param () -> dict acquire_token_callback: Acquire token function
        """
        super(GraphClient, self).__init__()
        self._pending_request = ODataRequest(self, V4JsonFormat("minimal"))
        self._pending_request.beforeExecute += self._build_specific_query
        self._resource = "https://graph.microsoft.com"
        self._authority_host_url = "https://login.microsoftonline.com"
        self._acquire_token_callback = acquire_token_callback
    def __init__(self, auth_context):
        """
        Office365 Outlook client context
        Status: deprecated, prefer GraphClient instead

        :type auth_context: AuthenticationContext
        """
        self._resource = "https://outlook.office365.com"
        super(OutlookClient, self).__init__(auth_context)
        self._pendingRequest = ODataRequest(self, V4JsonFormat("minimal"))
        self._pendingRequest.beforeExecute += self._build_specific_query
    def __init__(self, tenant, acquire_token_callback):
        """

        :param (adal.AuthenticationContext) -> dict acquire_token_callback: Acquire token function
        :param str tenant: Tenant name
        """
        self.__service_root_url = "https://graph.microsoft.com/v1.0/"
        super(GraphClient, self).__init__(self.__service_root_url)
        self._pending_request = ODataRequest(self, V4JsonFormat("minimal"))
        self._pending_request.beforeExecute += self._build_specific_query
        self._resource = "https://graph.microsoft.com"
        self._authority_host_url = "https://login.microsoftonline.com"
        self._tenant = tenant
        self._acquire_token_callback = acquire_token_callback
Beispiel #9
0
    def __init__(self, auth_context):
        """
        Office365 Outlook client context
        Status: deprecated, prefer GraphClient instead

        :type auth_context: AuthenticationContext
        """
        self._resource = "https://outlook.office365.com"
        self.__service_root_url = "{resource}/api/v1.0/".format(
            resource=self._resource)
        super(OutlookClient, self).__init__(self.__service_root_url,
                                            auth_context)
        self._pendingRequest = ODataRequest(self, V4JsonFormat("minimal"))
        self._pendingRequest.beforeExecute += self._build_specific_query
        self._token_parameters = None
 def __init__(self, ctx_auth):
     self.__service_root_url = "https://outlook.office365.com/api/v1.0/"
     super(OutlookClient, self).__init__(self.__service_root_url, ctx_auth)
     self.json_format = V4JsonFormat("minimal")
Beispiel #11
0
 def __init__(self, ctx_auth):
     self.__service_root_url = "https://outlook.office365.com/api/v1.0/"
     super(OutlookClient, self).__init__(self.__service_root_url, ctx_auth)
     self._pendingRequest = ODataRequest(self, V4JsonFormat("minimal"))
     self._pendingRequest.beforeExecute += self._build_specific_query