Skip to content

Limit not returning what I expected #45

Description

@asantaga

Hi there,

Slightly confused at what the limit operation does.. I expected it to limit the number of records returned but it seams to be indicating how many records to query from the api , regardless of type.

eg.

from ring_doorbell import Ring
myring = Ring('xxxxx@gmail.com', 'yyyy')
print ("did we connect %s " % myring.is_connected)
for bells in list(myring.doorbells):
    for event in bells.history(limit=15,kind='ding'):
        print('ID:       %s' % event['id'])
        print('Kind:     %s' % event['kind'])
        print('Answered: %s' % event['answered'])
        print('When:     %s' % event['created_at'])
        print('--' * 50)

I expected to return the last 15 "dings" but it returns nothing
if I change the limit to 1000 then I get a couple but not 5-10 or so..

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions