Skip to content

Commit

Permalink
Add AccessTokensAPI to package API
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlccie committed Sep 9, 2016
1 parent f3ba967 commit 08edded
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ciscosparkapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from exceptions import ciscosparkapiException, SparkApiError
from restsession import RestSession
from api.accesstokens import AccessToken, AccessTokensAPI
from api.people import Person, PeopleAPI
from api.rooms import Room, RoomsAPI
from api.memberships import Membership, MembershipsAPI
Expand Down Expand Up @@ -31,6 +32,7 @@ def __init__(self, access_token, base_url=DEFAULT_BASE_URL, timeout=None):
self.session = RestSession(access_token, base_url, **session_args)

# Spark API wrappers
self.access_tokens = AccessTokensAPI(self.base_url, timeout=timeout)
self.people = PeopleAPI(self.session)
self.rooms = RoomsAPI(self.session)
self.memberships = MembershipsAPI(self.session)
Expand Down

0 comments on commit 08edded

Please sign in to comment.