djtech42 / YikYakTerminal

Python implementation of Yik Yak using the pyak API by joseph346. Read, post, upvote, and downvote yaks.
GNU General Public License v2.0
73 stars 36 forks source link

Voting #2

Closed alecm858 closed 10 years ago

alecm858 commented 10 years ago

Any idea how to get voting and commenting to work with this code? How about vote bombs?

djtech42 commented 10 years ago

Yes, there are methods in the API for voting and commenting. I just have to make sure the hash and salt are correct for them, as well as figure out how to implement the interface for them. I'm thinking maybe labeling each yak with a number so you just enter "U 23" and it would upvote the 23rd latest yak (based on the last time you loaded them so it would stay the same.) Another option would be to add the ability to load an individual yak and ask the user what to do with it (upvote, downvote, comment, delete if it's yours).

I have tried vote bombing in an Objective-C version I was making, but it didn't seem to work.

Edit: I created an experimental version on a new beta branch that includes upvoting and downvoting yaks.

djtech42 commented 10 years ago

Commenting has been added to the beta.

thaguy55 commented 10 years ago

Downvoting doesn't seem to work

djtech42 commented 10 years ago

It seems like it might be a problem on the server side. I'm getting 200 status, so it should be sending the request correctly.

djtech42 commented 10 years ago

I changed the user agent, which seemed to fix the downvoting issue.