Open zykrah opened 4 years ago
there is an error in my code with unreachable code. The print() in follow() and unfollow(). But it has no relevancy to the issue, just thought i'd point out that i already fixed that issue.
I can successfully grab a profile using the code using
prof = bot.profile_endpoint.of_user("therock")
however, when i try to follow the profile using
bot.profile_endpoint.follow(prof)
It doesn't work, and returns False (when you print the line above)
One more thing. I have tested both Followers and Following Endpoints, and have no issues with either so far.
I seemed to have solve the issue (sorta).
def profile_endpoint(self):
return endpoints.factory.create("profile", self.api)
By using the above code, replacing:
self.profile_endpoint = self.endpoints.factory.create("profile", self.api)
and by referring to the endpoint as
bot.profile_endpoint()
Though i dont see why i couldnt use my original code... please correct me if i am wrong!
Above is my code
Above is what i want to work, but cant get to work
Above is a way around the issue i made, but it is really inconvenient...
Please help!