Jump to content

Yosodog

Members
  • Posts

    927
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Yosodog

  1. So I know there's a thread in the closed dev group, but not all of us are privileged like that. So I'm going to create a thread here to discuss why the proposed implementation of the API is a horrible, horrible, horrible idea. First, the main issue here is the rate limiting. For $5, you can make 50 requests a day which is almost completely useless. If you wanted to make a script that kept statistics of alliances that aren't available in the alliances API, you need to make one request to the alliances API to get the alliance IDs, and 293 requests to get the rest. Now you could barebones it and only take stats of the top 50, but that's bad. 294 requests a day is next to nothing. I develop extensive scripts and projects that use the API heavily because it's a lot better than scraping the website. I would go through 50 requests a minute after midnight. Sure, you can "upgrade" your API key. Level 2 is 110 requests, level 3 is 190, but you don't get into the real numbers until you get to about level 15 with 6,350 requests. Which, during a war, is still nothing. $71.75 real life dollars for a level 15 API key. Simply put, it's a rip-off. And I understand that these numbers can be changed, but they'd have to be changed pretty dramatically to even make this half way decent. Next thing, if people are going to be required to pay for the API, the API better be a very good API. I'm talking proper RESTful practices, endpoints for almost everything, and versioning the API. At its current state, the API does not follow RESTful practices such as proper HTTP status codes (I shouldn't get a 200 response if the nation doesn't exist), sorting or filtering, pagination, and versioning to name a few. That isn't even talking about the severe lack of endpoints such as the ability to send money through the bank, get tax info, send and get messages, editing a city, editing nation, buying military, managing alliance, WAR INFO, etc. Simply put, if people are being forced to pay for the API, they should be getting a quality product. In its current state, no one really complains because it's free. Yeah, we'd like a lot of improvements but we'll take what we can get. I read that you're going to be adding things to the API which is cool, but it's going to have to be A LOT and be very good in order to justify the price. And finally, more of an implementation compliant, having the API token appended using a GET parameter isn't the best method. The best way to do it would be an oAuth2 server which would be absolutely fantastic. Another simple but less awesome way is using HTTP basic auth. Appending the API token to the URL, and even HTTP basic auth, is very outdated but I don't really mind; it's not my main complaint. I do think that if the API is causing a resource drain on the server, rate limits should be implemented. I just think that the way that this is currently being implemented is almost the worst possible way. If making people pay to use the API will motivate you to make more endpoints and make the API a lot better, then full steam ahead. However, the current proposed plan is theft. We can have rate-limited API hidden behind a token-based authentication system that you have to use credits for, but it needs to be realistically implemented. So here's my suggestions: Rather than a daily limit, have it be limited by the minute. 30-40 requests a minute or hell even 10 requests a minute works. Daily limits are just baaaaaad. Restrict access to only VIPs. This would add another major incentive to buy VIP monthly and could actually result in more money. Tier the API rate limits. A free tier could be 10 requests a minute, a level 1 tier could be 40 requests a minute, and so on. Keep it free, but have rate limiting by the minute. Keep it the way it is now. We might not get more endpoints but it currently works for us. If it ain't broke, don't fix it. There are many ways to properly implement these restrictions without making the API completely useless. I hope you take some of my suggestions. I am a very heavy user of the API; I build lots and lots of tools and even full blown programs that interact with PW and honestly it's one of the main reasons I have an interest in this game. The current proposed plan would kill the API completely and no one would use it. I agree that there should be rate limiting and if you want to put it behind a paywall, I'm all for it. I just do not want it to be a complete rip-off.
  2. We also lost like 10 members. Everyone is abandoning BK in our time of need. I wish i could tell you all that we can win this, but we can't. It's over. BK is over. Avansies has brought us to our knees. The only thing we can do now is hope that they show mercy on us.
  3. How in the !@#$ is "Yosodog stepping down as Emperor" a funny event? It was the beginning of the end for BK. You sadist mother !@#$ers.
  4. Bro wtf? There's no way we can crush them. We're !@#$ed.
  5. It's called shitposting for a reason.
  6. Avansies has attacked. We're !@#$ed. It's been nice meming with you all.
  7. Still no OO sphere treaty. I'm waiting, Kastor.
  8. If you like debating what the freshest memes are, BK is your alliance. Have Harambe memes been shot dead? Will dat boi make a comeback? How long will Bee Movie memes say fresh? Are Robbie Rotten memes the next big thing? Our debates can get heated, especially over the Harambe ones -- tensions are still high over that incident. However, we are all always respectful of one another. But if you like mass debating over memes, BK is your alliance.
  9. Holy shit. I'm honestly offended. His shitposts are low quality. At least mine have some kind of meaning to them. For example, BK will start building up for a war next week and then declare war on SK. WATCH.
  10. You can never hold a !@#$ down. Let me fly.
  11. Flag so it's obviously official I didn't. FIND OUT NEXT TIME ON DRAGON BALL Z
  12. ffs !@#$ off with your message. I'm taking my vacation in meme island smh
  13. I mean, it is a test server for a reason. At least this was discovered and reported before it made it to the live server.
  14. About time someone stands up to tS. They're always the bully of the little guy and it's about time the little guy stands up for himself and takes down the tyrannical tS.
  15. smh I'm half tempted to use cleverbot to respond to people's replies.
  16. It's showing that the wars are expired lmao
  17. I was kidding. I know you wouldn't do that Nice knowing this though. I'll just have to offer more money on my next bribe.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.