Skip to content

EnableThrottling for GetFollowersIdsAll #253

@xfreakart

Description

@xfreakart

Hi,

I'm trying to get all Followers Id's of a "big" account. Twitter limits 5K results per page (pagination) every 15 min. So I tried to set EnableThrottling with:

	api := anaconda.NewTwitterApiWithCredentials(AT, ATS, CK, CS)
	api.EnableThrottling(duration, 1)

When I call GetFollowersIdsAll I though that internally even that is just one query that I'm making it would apply EnableThrottling.

result := api.GetFollowersIdsAll(v)
	for id := range result {
		fmt.Println(id)
	}

It does not. It follows the pagination so when It has to load the second part It gets the error "Rate limit exceded".

returned status 429, {"errors":[{"message":"Rate limit exceeded","code":88}]}}

Was this a misunderstanding of EnableThrottling usage or there is another aproach for this?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions