I've been working on this for a while now, and while it's not anywhere near finished yet, I wanted to publish it here since it's in a somewhat usable state now.
https://github.com/dazarobbo/BungieNetPlatform
You can do some fun things with it like:
[quote]$db = new ContentDatabase('/path/to/sqlite/database');
Hash::setDefaultTranslator(new CachedHashTranslator($db));
$hash = new Hash('2271682572', HashType::CLASS_DEFINITION());
$classDef = $hash->getContent();
$classDef->Name; //Warlock[/quote]
[quote]$platform = new Platform('API KEY');
$r = $platform->DestinyService->getAccount(
BungieMembershipType::TIGER_PSN(),
'4611686018429501017');
print_r($r->getInnerResponse()->getResponse()); //DeeJ's Destiny account[/quote]
[quote]$platform = new Platform('API KEY');
$platform->setUser(new PsnUser('email@address.com', 'hunter2');
$platform->authenticateUser();
$platform->setUserContext(true);
$r = $platform->DestinyService->getVault(
BungieMembershipType::TIGER_PSN(),
'account id here'); //Get your vault[/quote]
It's still woefully underdone, though. So feel free to fork it or use it however you like, but I will be maintaining this for the foreseeable future. Some notes if you do use it:
- You'll find it uses some data structures that aren't in the PHP core, like ArrayList, Enum, BitwiseEnum, Set, etc... These are from [url=https://github.com/dazarobbo/Cola]another library[/url] I'm writing alongside this one.
- It largely follows [url=http://bungienetplatform.wikia.com/]the wiki[/url], so you'll find the phpDocs will often point to there.
- The responses from calling a platform service current return a base response type, but this won't always be the case. I endeavour to parse these into more useful PHP classes. The same for getting associated Hash content.
- Even if you're not wanting to use all of it, you'll probably still get something out of the [url=https://github.com/dazarobbo/BungieNetPlatform/tree/master/src/Services/Destiny/Manifest]Manifest[/url] namespace, [url=https://github.com/dazarobbo/BungieNetPlatform/tree/master/src/Exceptions/Platform]platform exceptions[/url], and [url=https://github.com/dazarobbo/BungieNetPlatform/tree/master/src/Enums]enums[/url].
- It's [b]not[/b] on packagist.org yet, so you won't be able to install it via composer without [url=https://getcomposer.org/doc/05-repositories.md#vcs]a little workaround[/url].
Como moderador, puedes vetar inmediatamente a este usuario para que no pueda enviar mensajes (saltándote la cola de denuncias) si seleccionas un castigo.
Veto de 7 días
Veto de 7 días
Veto de 30 días
Veto permanente
Este sitio usa cookies con el fin de ofrecer la mejor experiencia del usuario. Al hacer clic en "Aceptar", aceptas la política documentada en Política de cookies y en Política de privacidad.
Aceptar
Este sitio usa cookies con el fin de ofrecer la mejor experiencia del usuario. Al continuar navegando el sitio, aceptas la política documentada en Política de cookies y en Política de privacidad.
close
Nuestra política ha cambiado recientemente. Al hacer clic en "Aceptar", aceptas la política actualizada documentada en Política de cookies y en Política de privacidad.
Aceptar
Nuestra política ha cambiado recientemente. Al continuar navegando el sitio, aceptas la política actualizada documentada en Política de cookies y en Política de privacidad.