JodelRaccoons / jodel_api

Unoffical Python Interface to the Jodel API
https://github.com/nborrmann/jodel_api
MIT License
18 stars 7 forks source link

Fixed post search #21

Closed ExTBH closed 2 years ago

ExTBH commented 2 years ago
def post_search(self, message, skip=0, limit=60, **kwargs):
        params = {"skip": skip, "limit": limit}
        payload = {"message": message}
        return self._send_request("POST", "/v3/posts/search", params=params, payload=payload, **kwargs)

Don't work ^

def post_search(self, message, skip=0, limit=60, **kwargs):
        params = {"message": message, "skip": skip, "limit": limit }
        return self._send_request("GET", "/v3/posts/textSearch?", params=params, **kwargs)

Fixed one ^

Unbrick commented 2 years ago

Nice, thank you! Tested and pushed with commit 66e3f66aa0645e6ed456d2fec0131fd6eb2ab345!