1: <?php
2: /**
3: * Maniaplanet Web Services SDK for PHP
4: *
5: * @see http://code.google.com/p/maniaplanet-ws-sdk/
6: * @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
7: * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
8: * @author $Author: baptiste33@gmail.com $:
9: * @version $Revision: 150 $:
10: * @date $Date: 2012-08-20 16:41:44 +0200 (lun., 20 août 2012) $:
11: */
12:
13: namespace Maniaplanet\WebServices;
14:
15: class Players extends HTTPClient
16: {
17:
18: /**
19: * @param string $login Login of a Maniaplanet account
20: * @return object
21: * @throws \Maniaplanet\WebServices\Exception
22: */
23: function get($login)
24: {
25: if(!$login)
26: {
27: throw new Exception('Invalid login');
28: }
29: return $this->execute('GET', '/players/%s/', array($login));
30: }
31: }
32:
33: ?>