Keys¶
-
class
TheNounProjectAPI.keys.Keys¶ Bases:
object-
set_api_key(key)¶ Sets API key.
- Parameters
key (str) – The API key from the TheNounProject API.
- Return type
None
-
property
api_key¶ Getter for api_key property.
- Returns
The API key from the TheNounProject API.
- Return type
str
-
set_secret_key(secret)¶ Sets API secret.
- Parameters
secret (str) – The secret key from the TheNounProject API
- Return type
None
-
property
secret_key¶ Getter for secret_key property.
- Returns
The secret key from the TheNounProject API.
- Return type
str
-
_get_oauth()¶ Asserts that both api and secret keys have been set.
- Raises
APIKeyNotSet – Raises exception when api or secret keys have not been set.
- Returns
Returns an OAuth object using this object’s API and secret key.
- Return type
OAuth1
-