Skip to content

Commit

Permalink
Added docs for entitylist.API.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
aaront committed Dec 7, 2020
1 parent 4839597 commit e9c1680
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mygeotab/ext/entitylist.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ class API(api.API):
"""

def get(self, type_name, **parameters):
"""Gets entities using the API. Shortcut for using call() with the 'Get' method. This returns an EntityList
with added convience methods.
:param type_name: The type of entity.
:type type_name: str
:param parameters: Additional parameters to send.
:raise MyGeotabException: Raises when an exception occurs on the MyGeotab server.
:raise TimeoutException: Raises when the request does not respond after some time.
:return: The results from the server.
:rtype: EntityList
"""
return EntityList(super().get(type_name, **parameters), type_name=type_name)


Expand Down

0 comments on commit e9c1680

Please sign in to comment.