How to use the zoomus.util.API_VERSION_1 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 / user / test_delete.py View on Github external
def setUp(self):
        self.component = components.user.UserComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / components / meeting / test_list.py View on Github external
def setUp(self):
        self.component = components.meeting.MeetingComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / components / user / test_list.py View on Github external
def setUp(self):
        self.component = components.user.UserComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / components / test_base.py View on Github external
def test_post_request_includes_config_details_in_data_when_there_is_data(self):
        component = components.base.BaseComponent(
            base_uri="http://www.foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
        )
        responses.add(
            responses.POST,
            "http://www.foo.com/foo?foo=bar&api_key=KEY&api_secret=SECRET",
        )
        component.post_request("foo", params={"foo": "bar"})
github actmd / zoomus / tests / zoomus / test_util.py View on Github external
def test_can_delete_request(self):
        responses.add(responses.DELETE, "http://www.foo.com/endpoint")
        client = util.ApiClient(
            base_uri="http://www.foo.com", config={"version": util.API_VERSION_1}
        )
        client.delete_request("endpoint")
github actmd / zoomus / tests / zoomus / components / meeting / test_create.py View on Github external
def setUp(self):
        self.component = components.meeting.MeetingComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / components / user / test_get_by_email.py View on Github external
def setUp(self):
        self.component = components.user.UserComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / components / webinar / test_upcoming.py View on Github external
def setUp(self):
        self.component = components.webinar.WebinarComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / tests / zoomus / components / user / test_cust_create.py View on Github external
def setUp(self):
        self.component = components.user.UserComponent(
            base_uri="http://foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
github actmd / zoomus / zoomus / client.py View on Github external
"""Zoom.us REST API Python Client"""

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,