get.collection_attributes()
Return user-defined attributes of a Rasgo Collection
Parameters
id
:integer:
ID of a Rasgo Collection
Return Object
Rasgo Collection Attributes
Sample Usage
# Connect to rasgo
api_key = '<your api key>'
rasgo = pyrasgo.connect(api_key)
# Return object
response = rasgo.get.collection_attributes(id=#)
# Explore returned object
attr_dict = response.attributes
attr_dict.keys()
attr_dict['key']
Alternate Usage
collection = rasgo.get_collection(#)
attributes = collection.attributes
attr_dict.keys()
attr_dict['key']
Best Practices / Tips
Last updated
Was this helpful?