SpiderStrategies / node-tweet-stream

Node twitter module to hook into the public filter streaming, seamlessly updating the tracking keywords.
210 stars 43 forks source link

remove filters by category #41

Open ruslanrf opened 8 years ago

nathanbowser commented 8 years ago

Generally I already think the API is bloated. This makes it worse. Can you think of a way to condense all these methods?

ruslanrf commented 8 years ago

This functionality is necessary if the filter with an array of elements has to be cleaned by a specific category (e.g. follow or location), otherwise, a user has to call corresponding functions for each item in the array in the filter. (e.g. unfollow() for each user id added with the function follow() )... Maybe an alternative approach can be just to expose (add "this") variables such as FILTER_TYPE_TRACKING, FILTER_TYPE_LOCATION, FILTER_TYPE_FOLLOW, and FILTER_TYPE_LANGUAGE? As well as removeFilter(), removeAllFilters()?

nathanbowser commented 8 years ago

Yea, that might be nicer. Want to give it a shot?