from tago import Tago
import json
ACCOUNT_TOKEN = '9740f4d7-6031-4195-8ad4-4bc73e25c79e'
account_devices = Devices(ACCOUNT_TOKEN)
tags = [{
'key': 'analysis',
'value': 'geotraq',
}]
my_filter = {
'tags': tags
}
devices = account_devices.list(1, ['id', 'tags'], my_filter, 1000)
print(devices)```
@felipefdl
Problem: I was trying to create a function to list devices by tag with a Python parsing. However, every attempt I made to create this function returned all devices to me. Like I'm not passing a filter to the function. The code for this is below: