Usage¶
-
class
TheNounProjectAPI.usage.
Usage
(key=None, secret=None, testing=False, timeout=5.0)¶ Bases:
TheNounProjectAPI.core.Core
Construct a new object for making API requests.
- Parameters
key (str) – The API key from the TheNounProject API. (defaults to None)
secret (str) – The secret key from the TheNounProject API. (defaults to None)
testing (bool) – Whether the methods should return a PreparedRequest, instead of data from the API. Should not be used except for testing this wrapper. (defaults to False)
timeout (Union[float, Tuple[float, float], None]) – Float timeout in seconds, 2-tuples for seperate connect and read timeouts, and None for no timeout. (defaults to 5.0)