How to use the zoomus.components.report function in zoomus

To help you get started, we’ve selected a few zoomus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github actmd / zoomus / tests / zoomus / components / report / test_get_user_report.py View on Github external
def setUp(self):
        self.component = components.report.ReportComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / components / report / test_get_account_report.py View on Github external
def setUp(self):
        self.component = components.report.ReportComponentV2(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_2,
            },
github actmd / zoomus / tests / zoomus / test_client.py View on Github external
]
            ),
            set(client.components.keys()),
        )
        self.assertIsInstance(
            client.components["meeting"], components.meeting.MeetingComponentV2
        )
        self.assertIsInstance(
            client.components["metric"], components.metric.MetricComponentV2
        )
        self.assertIsInstance(
            client.components["past_meeting"],
            components.past_meeting.PastMeetingComponentV2,
        )
        self.assertIsInstance(
            client.components["report"], components.report.ReportComponentV2
        )
        self.assertIsInstance(
            client.components["user"], components.user.UserComponentV2
        )
        self.assertIsInstance(
            client.components["webinar"], components.webinar.WebinarComponentV2
        )
        self.assertIsInstance(
            client.components["recording"], components.recording.RecordingComponentV2
        )
        self.assertIsInstance(
            client.components["phone"], components.phone.PhoneComponentV2
        )
github actmd / zoomus / tests / zoomus / components / report / test_get_daily_report.py View on Github external
def setUp(self):
        self.component = components.report.ReportComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / components / report / test_get_daily_report.py View on Github external
def setUp(self):
        self.component = components.report.ReportComponentV2(
            base_uri="http://foo.com", config={"api_key": "KEY", "api_secret": "SECRET"}
        )
github actmd / zoomus / tests / zoomus / components / report / test_get_account_report.py View on Github external
def setUp(self):
        self.component = components.report.ReportComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / test_client.py View on Github external
def test_can_get_report_component(self):
        client = ZoomClient("KEY", "SECRET")
        self.assertIsInstance(client.report, components.report.ReportComponentV2)
github actmd / zoomus / tests / zoomus / components / report / test_get_user_report.py View on Github external
def setUp(self):
        self.component = components.report.ReportComponentV2(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_2,
            },
github actmd / zoomus / zoomus / client.py View on Github external
}

COMPONENT_CLASSES = {
    API_VERSION_1: {
        "user": components.user.UserComponent,
        "meeting": components.meeting.MeetingComponent,
        "report": components.report.ReportComponent,
        "webinar": components.webinar.WebinarComponent,
        "recording": components.recording.RecordingComponent,
    },
    API_VERSION_2: {
        "user": components.user.UserComponentV2,
        "meeting": components.meeting.MeetingComponentV2,
        "metric": components.metric.MetricComponentV2,
        "past_meeting": components.past_meeting.PastMeetingComponentV2,
        "report": components.report.ReportComponentV2,
        "webinar": components.webinar.WebinarComponentV2,
        "recording": components.recording.RecordingComponentV2,
        "phone": components.phone.PhoneComponentV2,
    },
}


class ZoomClient(util.ApiClient):
    """Zoom.us REST API Python Client"""

    """Base URL for Zoom API"""

    def __init__(
        self, api_key, api_secret, data_type="json", timeout=15, version=API_VERSION_2
    ):
        """Create a new Zoom client
github actmd / zoomus / zoomus / client.py View on Github external
from __future__ import absolute_import, unicode_literals

from zoomus import components, util
from zoomus.util import API_VERSION_1, API_VERSION_2


API_BASE_URIS = {
    API_VERSION_1: "https://api.zoom.us/v1",
    API_VERSION_2: "https://api.zoom.us/v2",
}

COMPONENT_CLASSES = {
    API_VERSION_1: {
        "user": components.user.UserComponent,
        "meeting": components.meeting.MeetingComponent,
        "report": components.report.ReportComponent,
        "webinar": components.webinar.WebinarComponent,
        "recording": components.recording.RecordingComponent,
    },
    API_VERSION_2: {
        "user": components.user.UserComponentV2,
        "meeting": components.meeting.MeetingComponentV2,
        "metric": components.metric.MetricComponentV2,
        "past_meeting": components.past_meeting.PastMeetingComponentV2,
        "report": components.report.ReportComponentV2,
        "webinar": components.webinar.WebinarComponentV2,
        "recording": components.recording.RecordingComponentV2,
        "phone": components.phone.PhoneComponentV2,
    },
}