Guest User

Jsonapi

a guest
Jul 15th, 2013
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.04 KB | None | 0 0
  1. Tu fais
  2. [code=php]
  3. $pseudo = "bootmax";
  4. $player = $api->call('getPlayer',array($pseudo));
  5. echo $player['success'][VOIR_PLUS_BAS];
  6. [/code]
  7.  
  8. En requête tu as :
  9. [quote]
  10. Array
  11. (
  12. [result] => success
  13. [source] => getPlayer
  14. [success] => Array
  15. (
  16. [whitelisted] => 1
  17. [firstPlayed] => 1373819987
  18. [worldInfo] => Array
  19. (
  20. [remainingWeatherTicks] => 23827
  21. [hasStorm] =>
  22. [time] => 11175
  23. [environment] => normal
  24. [isThundering] =>
  25. [name] => world
  26. [fullTime] => 1931175
  27. )
  28.  
  29. [op] => 1
  30. [location] => Array
  31. (
  32. [yaw] => 35.777466
  33. [pitch] => 32.549988
  34. [z] => 985.5199128281
  35. [y] => 70.019279972537
  36. [x] => -843.1122605152
  37. )
  38.  
  39. [exhaustion] => 1.3717852
  40. [lastPlayed] => 1373928061
  41. [sleeping] =>
  42. [enderchest] => Array
  43. (
  44. [0] =>
  45. [1] =>
  46. [2] =>
  47. [3] =>
  48. [4] =>
  49. [5] =>
  50. [6] =>
  51. [7] =>
  52. [8] =>
  53. [9] =>
  54. [10] =>
  55. [11] =>
  56. [12] =>
  57. [13] =>
  58. [14] =>
  59. [15] =>
  60. [16] =>
  61. [17] =>
  62. [18] =>
  63. [19] =>
  64. [20] =>
  65. [21] =>
  66. [22] =>
  67. [23] =>
  68. [24] =>
  69. [25] =>
  70. [26] =>
  71. )
  72.  
  73. [health] => 20
  74. [banned] =>
  75. [ip] => /XXX.XXX.XXX.XX
  76. [gameMode] => 1
  77. [inVehicle] =>
  78. [level] => 0
  79. [inventory] => Array
  80. (
  81. [hand] => Array
  82. (
  83. [enchantments] => Array
  84. (
  85. )
  86.  
  87. [amount] => 1
  88. [durability] => 0
  89. [type] => 85
  90. [dataValue] => 0
  91. )
  92.  
  93. [inventory] => Array
  94. (
  95. [0] => Array
  96. (
  97. [enchantments] => Array
  98. (
  99. )
  100.  
  101. [amount] => 1
  102. [durability] => 0
  103. [type] => 85
  104. [dataValue] => 0
  105. )
  106.  
  107. [1] => Array
  108. (
  109. [enchantments] => Array
  110. (
  111. )
  112.  
  113. [amount] => 1
  114. [durability] => 0
  115. [type] => 109
  116. [dataValue] => 0
  117. )
  118.  
  119. [2] => Array
  120. (
  121. [enchantments] => Array
  122. (
  123. )
  124.  
  125. [amount] => 4
  126. [durability] => 0
  127. [type] => 69
  128. [dataValue] => 0
  129. )
  130.  
  131. [3] => Array
  132. (
  133. [enchantments] => Array
  134. (
  135. )
  136.  
  137. [amount] => 1
  138. [durability] => 5
  139. [type] => 44
  140. [dataValue] => 5
  141. )
  142.  
  143. [4] => Array
  144. (
  145. [enchantments] => Array
  146. (
  147. )
  148.  
  149. [amount] => 1
  150. [durability] => 0
  151. [type] => 98
  152. [dataValue] => 0
  153. )
  154.  
  155. [5] => Array
  156. (
  157. [enchantments] => Array
  158. (
  159. )
  160.  
  161. [amount] => 1
  162. [durability] => 0
  163. [type] => 123
  164. [dataValue] => 0
  165. )
  166.  
  167. [6] => Array
  168. (
  169. [enchantments] => Array
  170. (
  171. )
  172.  
  173. [amount] => 1
  174. [durability] => 0
  175. [type] => 271
  176. [dataValue] => 0
  177. )
  178.  
  179. [7] => Array
  180. (
  181. [enchantments] => Array
  182. (
  183. )
  184.  
  185. [amount] => 1
  186. [durability] => 0
  187. [type] => 280
  188. [dataValue] => 0
  189. )
  190.  
  191. [8] => Array
  192. (
  193. [enchantments] => Array
  194. (
  195. )
  196.  
  197. [amount] => 1
  198. [durability] => 0
  199. [type] => 76
  200. [dataValue] => 0
  201. )
  202.  
  203. [9] => Array
  204. (
  205. [enchantments] => Array
  206. (
  207. )
  208.  
  209. [amount] => 1
  210. [durability] => 0
  211. [type] => 37
  212. [dataValue] => 0
  213. )
  214.  
  215. [10] =>
  216. [11] =>
  217. [12] =>
  218. [13] =>
  219. [14] =>
  220. [15] =>
  221. [16] =>
  222. [17] =>
  223. [18] =>
  224. [19] =>
  225. [20] =>
  226. [21] =>
  227. [22] =>
  228. [23] =>
  229. [24] =>
  230. [25] =>
  231. [26] =>
  232. [27] =>
  233. [28] =>
  234. [29] =>
  235. [30] =>
  236. [31] =>
  237. [32] =>
  238. [33] =>
  239. [34] =>
  240. [35] =>
  241. )
  242.  
  243. [armor] => Array
  244. (
  245. [helmet] =>
  246. [boots] =>
  247. [leggings] =>
  248. [chestplate] =>
  249. )
  250.  
  251. )
  252.  
  253. [name] => bootmax
  254. [foodLevel] => 18
  255. [experience] => 4
  256. [itemInHand] => Array
  257. (
  258. [enchantments] => Array
  259. (
  260. )
  261.  
  262. [amount] => 1
  263. [durability] => 0
  264. [type] => 85
  265. [dataValue] => 0
  266. )
  267.  
  268. [sneaking] =>
  269. [world] => 0
  270. [sprinting] =>
  271. )
  272.  
  273. )
  274. [/[quote]]
Advertisement
Add Comment
Please, Sign In to add comment