[API] partage de mon API - 100% PHP

Hichxm

Membre
Inscription
15 Octobre 2013
Messages
1 118
Réactions
227
Points
5 721
Hey !

Aujourd'hui j'ai créer une api qui facilite
l'utilisation d'une autre API qui est

Donc la voici :)

La documentation est présente ici:

PHP:
vma_getStatus($vma_ip);

return true / error
PHP:
vma_getVersion($vma_ip)

return VersionDuServer
PHP:
vma_getMotd($vma_ip)

return MOTD
PHP:
vma_getPlayer($vma_ip, $arg1)

using "max" or "only"

return max player / pleyer only
PHP:
vma_getList($vma_ip)

return array avec les pseudo (no 100% work)
PHP:
vma_getIcon($vma_ip)

return icon image link
PHP:
vma_get2dAvatar($vma_name, $vma_size)

$vma_name = "PLAYER NAME"
$vma_size = "SIZE FILE"

return avatar 2d image link
PHP:
vma_get3dAvatar($vma_name, $vma_size)

$vma_name = "PLAYER NAME"
$vma_size = "SIZE FILE"

return avatar 3d image link
PHP:
vma_get3dSkin($vma_name, $vma_size)

$vma_name = "PLAYER NAME"
$vma_size = "SIZE FILE"

return skin 3d image link
PHP:
vma_getUuid($vma_name, $arg1)

$vma_name = "PLAYER NAME"
$arg1 = F / O

return UUID of player
PHP:
vma_getName($vma_uuid)

$vma_uuid = "UUID PLAYER"

return Player name
PHP:
vma_getPremium($vma_name)

return true / false
 

AwH

Super Modérateur
Ancien staff
Inscription
28 Septembre 2011
Messages
5 246
Réactions
2 672
Points
7 378
Salut,

Utilises un logiciel de versionning tel que git afin de partager ton code, c'est pus efficace qu'un pastebin.
Deplus, ligne 132:
PHP:
if(isset($vma_name) AND isset($vma_name)){

Tu fais la meme verification ;)

Bonne soiree,
AwH.
 

Hichxm

Membre
Inscription
15 Octobre 2013
Messages
1 118
Réactions
227
Points
5 721
Salut,

Utilises un logiciel de versionning tel que git afin de partager ton code, c'est pus efficace qu'un pastebin.
Deplus, ligne 132:
PHP:
if(isset($vma_name) AND isset($vma_name)){

Tu fais la meme verification ;)

Bonne soiree,
AwH.
Merci de m'avoir dit sa ^^
Le problème avec github c'est qu'il faut payé et .... voila quoi
 

AwH

Super Modérateur
Ancien staff
Inscription
28 Septembre 2011
Messages
5 246
Réactions
2 672
Points
7 378
Git ≠ Github ;)
Et GitHub est gratuit, sauf si tu veux avoir des depots prives
 

AwH

Super Modérateur
Ancien staff
Inscription
28 Septembre 2011
Messages
5 246
Réactions
2 672
Points
7 378
Je rajoute qu'il peut utiliser Bitbucket ! :)
Je ne ferai pas la liste, elle est longue, mais principalement GitHub, Bitbucket, GitLab ;)

Mais GitHub est le plus populaire car il rajoute pas mal de fonctionnalité a git ;)
 
Haut