Atelier801 Api - Forum profile picture (Also tfm discussion) |
Antonio « Sénateur » 1445128980000
| 1 | ||
I was hoping if there was a website that can fetch the forum profile pic with an api (like a json). I could down the image but i want it to auto update like the stats json. This is all that i can find but it doesn't work. https://api801.herokuapp.com I would request for the api but my project (CheeseStatz) isn't done. So if anyone know where to get this stuff from then feel free to reply. Also let's talk about api's. Here is some more info http://cheese.formice.com/forum/threads/cheeseformice-apis.23440/ |
Mcfloy « Citoyen » 1445162040000
| 0 | ||
I think CFM API will give you the ID of the player you want, then make the id modulo 10000 and you'll obtain the id folder of the avatar. You'll have this kind of url : avatars.atelier801.com/[Id % 10000]/[Id].jpg |
Hydroper « Citoyen » 1445162340000
| 0 | ||
Mcfloy a dit : It didn't works to divide the user ID for 10000, some other idea? Dernière modification le 1445162760000 |
Mcfloy « Citoyen » 1445163060000
| 0 | ||
profiver a dit : Your id is 65772150. If you divide it (with the modulo) by 10000 you'll get 2150, that's your folder id. Then your avatar is : http://avatars.atelier801.com/2150/65772150.jpg |
Hydroper « Citoyen » 1445163420000
| 0 | ||
Mcfloy a dit : It works powerfully, before I've used normal Windows calculator, well, it's the first time I seeing this such Modulo. Also, for avoid old cache of avatar, you can make a variable with current timestamp in avatar URL, example: http://avatars.atelier801.com/folder/avatar.jpg?t=123161995 |
Antonio « Sénateur » 1445185680000
| 1 | ||
What if i want to fetch profile picture like username not id..... |
Nicolasledu « Citoyen » 1445188260000
| 0 | ||
Use this :D : http://outil.derpolino.shost.ca/avatar/avatar.php?p=Nicolasledu Dernière modification le 1445188320000 |
Hydroper « Citoyen » 1445190180000
| 0 | ||
Nicolasledu a dit : This server is slower. Dernière modification le 1445190240000 |
Antonio « Sénateur » 1445262060000
| 1 | ||
Nicolasledu a dit : Works wonderful thx. All I need is run for cheese stats api and forum api stats (date register, soulmate, etc) Here is what i got so far. http://cheesezwheel.byethost7.com |