self.readonly = True
def method_start(self, method, path, base, params, stream, links={}):
+ def transform(value):
+ if isinstance(value, bool):
+ return {False:"false", True:"true"}[value]
+ return value
+ params = {key: transform(value) for key, value in params.items()}
headers = {}
if self.bearer_token is not None:
headers['Authorization'] = 'Bearer ' + self.bearer_token
class PublicTimelineFeed(IncrementalServerFeed):
def __init__(self, client, local):
super().__init__(client, "timelines/public", {
- 'local': {False:"false", True:"true"}[local]
+ 'local': local
})
class MentionsFeed(IncrementalServerFeed):