当前位置: 首页>>代码示例>>Python>>正文


Python ApiClient.get方法代码示例

本文整理汇总了Python中okta.framework.ApiClient.ApiClient.get方法的典型用法代码示例。如果您正苦于以下问题:Python ApiClient.get方法的具体用法?Python ApiClient.get怎么用?Python ApiClient.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在okta.framework.ApiClient.ApiClient的用法示例。


在下文中一共展示了ApiClient.get方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: get_paged_users

# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import get [as 别名]
    def get_paged_users(self, limit=None, filter_string=None, after=None, url=None):
        """Get a paged list of Users

        :param limit: maximum number of users to return
        :type limit: int or None
        :param filter_string: string to filter users
        :type filter_string: str or None
        :param after: user id that filtering will resume after
        :type after: str
        :param url: url that returns a list of User
        :type url: str
        :rtype: PagedResults of User
        """
        if url:
            response = ApiClient.get(self, url)

        else:
            params = {
                'limit': limit,
                'after': after,
                'filter': filter_string
            }
            response = ApiClient.get_path(self, '/', params=params)

        return PagedResults(response, User)
开发者ID:MattParr,项目名称:oktasdk-python,代码行数:27,代码来源:UsersClient.py

示例2: get_paged_events

# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import get [as 别名]
    def get_paged_events(self, limit=None, start_date=None, after=None, filter_string=None, url=None):
        """Get a paged list of Events

        :param limit: maximum number of events to return
        :type limit: int or None
        :param filter_string: string to filter events
        :type filter_string: str or None
        :param after: event id that filtering will resume after
        :type after: str or None
        :param url: url that returns a list of Event
        :type url: str or None
        :rtype: PagedResults of Event
        """
        if url:
            response = ApiClient.get(self, url)

        else:
            params = {
                'limit': limit,
                'startDate': start_date,
                'after': after,
                'filter': filter_string
            }
            response = ApiClient.get_path(self, '/', params=params)

        return PagedResults(response, Event)
开发者ID:okta,项目名称:oktasdk-python,代码行数:28,代码来源:EventsClient.py

示例3: get_paged_groups

# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import get [as 别名]
    def get_paged_groups(self, limit=None, after=None, url=None):
        """Get a paged list of UserGroups

        :param limit: maximum number of groups to return
        :type limit: int or None
        :param after: group id that filtering will resume after
        :type after: str
        :param url: url that returns a list of UserGroup
        :type url: str
        :rtype: PagedResults of UserGroup
        """
        if url:
            response = ApiClient.get(self, url)

        else:
            params = {
                'limit': limit,
                'after': after
            }
            response = ApiClient.get_path(self, '/', params=params)

        return PagedResults(response, User)
开发者ID:MattParr,项目名称:oktasdk-python,代码行数:24,代码来源:UserGroupsClient.py

示例4: get_app_paged_users

# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import get [as 别名]
    def get_app_paged_users(self, gid=None, limit=None, after=None, url=None):
        """Get a paged list of AppUsers of an app

        :param gid: the app id
        :type gid: str
        :param limit: maximum number of AppUser to return
        :type limit: int or None
        :param after: app id that filtering will resume after
        :type after: str
        :param url: url that returns a list of AppUser
        :type url: str
        :rtype: AppUser
        """
        if url:
            response = ApiClient.get(self, url)
        else:
            params = {
                'limit': limit,
                'after': after
            }
            response = ApiClient.get_path(self, '/{0}/users'.format(gid), params=params)

        return PagedResults(response, AppUser)
开发者ID:PerGon,项目名称:oktasdk-python,代码行数:25,代码来源:AppInstanceClient.py


注:本文中的okta.framework.ApiClient.ApiClient.get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。