×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Atelier 801
  • /
  • Discussions
  • /
  • Atelier801 Api - Forum profile picture (Also tfm discussion)
Atelier801 Api - Forum profile picture (Also tfm discussion)
Antonio
« Sénateur »
1445128980000
    • Antonio#9975
    • Profil
    • Derniers messages
    • Tribu
#1
  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
    • Mcfloy#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  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
    • Hydroper#0528
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Mcfloy a dit :
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

It didn't works to divide the user ID for 10000, some other idea?

Dernière modification le 1445162760000
Mcfloy
« Citoyen »
1445163060000
    • Mcfloy#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
profiver a dit :
Mcfloy a dit :
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

It didn't works to divide the user ID for 10000, some other idea?

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
    • Hydroper#0528
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Mcfloy a dit :
profiver a dit :
Mcfloy a dit :
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

It didn't works to divide the user ID for 10000, some other idea?

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

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
    • Antonio#9975
    • Profil
    • Derniers messages
    • Tribu
#6
  1
What if i want to fetch profile picture like username not id.....
Nicolasledu
« Citoyen »
1445188260000
    • Nicolasledu#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Use this :D :

http://outil.derpolino.shost.ca/avatar/avatar.php?p=Nicolasledu
http://outil.derpolino.shost.ca/avatar/avatar.php?p=Nicolasledu

Dernière modification le 1445188320000
Hydroper
« Citoyen »
1445190180000
    • Hydroper#0528
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Nicolasledu a dit :
Use this :D :

http://outil.derpolino.shost.ca/avatar/avatar.php?p=Nicolasledu
http://outil.derpolino.shost.ca/avatar/avatar.php?p=Nicolasledu

This server is slower.

Dernière modification le 1445190240000
Antonio
« Sénateur »
1445262060000
    • Antonio#9975
    • Profil
    • Derniers messages
    • Tribu
#9
  1
Nicolasledu a dit :
Use this :D :

http://outil.derpolino.shost.ca/avatar/avatar.php?p=Nicolasledu
http://outil.derpolino.shost.ca/avatar/avatar.php?p=Nicolasledu

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
  • Forums
  • /
  • Atelier 801
  • /
  • Discussions
  • /
  • Atelier801 Api - Forum profile picture (Also tfm discussion)
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27