yogarine / bungie-d1-sdk-php
These are legacy endpoints for Destiny 1 that are no longer supported officially by Bungie.
v1.0.1
2023-01-07 19:26 UTC
Requires
- php: >=5.6
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-11-07 23:28:14 UTC
README
These are legacy endpoints for Destiny 1 that are no longer supported officially by Bungie.
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Build package: org.openapitools.codegen.languages.PhpClientCodegen For more information, please visit https://github.com/DestinyDevs/BungieNetPlatform
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/yogarine/bungie-d1-sdk-php.git"
}
],
"require": {
"yogarine/bungie-d1-sdk-php": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/bungie-d1-sdk-php/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: apiKey $config = Bungie\D1\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Bungie\D1\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer'); // Configure OAuth2 access token for authorization: oauth2 $config = Bungie\D1\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new Bungie\D1\Api\DestinyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $inlineObject1 = new InlineObject1(); // \Bungie\D1\Model\inline_object_1 | try { $result = $apiInstance->equipItem($inlineObject1); print_r($result); } catch (Exception $e) { echo 'Exception when calling DestinyApi->equipItem: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://bungie.net/d1/Platform
Documentation For Models
- BungieMembershipType
- ComponentPrivacySetting
- DateRange
- ActivityGraphNodeHighlightType
- DestinyBaseItemComponentSetOfuint32
- BucketCategory
- BucketScope
- DestinyChallengeStatus
- DestinyCharacterCustomization
- DestinyCharacterPeerView
- DestinyItemPeerView
- DestinyCollectibleComponent
- DestinyCollectiblesComponent
- DestinyCurrenciesComponent
- DestinyItemPlugComponent
- DestinyKioskItem
- DestinyKiosksComponent
- DestinyPlugSetsComponent
- DestinyPresentationNodeComponent
- DestinyPresentationNodesComponent
- DestinyCharacterRecordsComponent
- DestinyRecordComponent
- DestinyManifest
- GearAssetDataBaseDefinition
- DestinyEnvironmentLocationMapping
- DamageType
- DefinitionType
- DestinyActivityModifierDefinition
- DestinyAnimationReference
- DestinyChecklistDefinition
- DestinyChecklistEntryDefinition
- DestinyCollectibleAcquisitionBlock
- DestinyCollectibleDefinition
- DestinyCollectibleStateBlock
- DestinyDisplayPropertiesDefinition
- DestinyPositionDefinition
- DestinyActivityChallengeDefinition
- DestinyActivityDefinition
- DestinyActivityGraphListEntryDefinition
- DestinyActivityGuidedBlockDefinition
- DestinyActivityInsertionPointDefinition
- DestinyActivityLoadoutRequirement
- DestinyActivityLoadoutRequirementSet
- DestinyActivityMatchmakingBlockDefinition
- DestinyActivityModeDefinition
- DestinyActivityModifierReferenceDefinition
- DestinyActivityPlaylistItemDefinition
- DestinyActivityRewardDefinition
- DestinyActivityTypeDefinition
- DestinyActivityUnlockStringDefinition
- DestinyArtDyeReference
- DestinyBubbleDefinition
- DestinyClassDefinition
- DestinyDamageTypeDefinition
- DestinyDestinationBubbleSettingDefinition
- DestinyDestinationDefinition
- DestinyDisplayCategoryDefinition
- DestinyEquipmentSlotDefinition
- DestinyEquippingBlockDefinition
- DestinyFactionDefinition
- DestinyFactionVendorDefinition
- DestinyGearArtArrangementReference
- DestinyGenderDefinition
- DestinyInventoryBucketDefinition
- DestinyInventoryItemDefinition
- DestinyInventoryItemStatDefinition
- DestinyItemActionBlockDefinition
- DestinyItemActionRequiredItemDefinition
- DestinyItemCategoryDefinition
- DestinyItemCreationEntryLevelDefinition
- DestinyItemGearsetBlockDefinition
- DestinyItemIntrinsicSocketEntryDefinition
- DestinyItemInventoryBlockDefinition
- DestinyItemInvestmentStatDefinition
- DestinyItemObjectiveBlockDefinition
- DestinyItemPerkEntryDefinition
- DestinyItemPreviewBlockDefinition
- DestinyItemQualityBlockDefinition
- DestinyItemSackBlockDefinition
- DestinyItemSetBlockDefinition
- DestinyItemSetBlockEntryDefinition
- DestinyItemSocketBlockDefinition
- DestinyItemSocketCategoryDefinition
- DestinyItemSocketEntryDefinition
- DestinyItemSocketEntryPlugItemDefinition
- DestinyItemSocketEntryPlugItemRandomizedDefinition
- DestinyItemSourceBlockDefinition
- DestinyItemStatBlockDefinition
- DestinyItemSummaryBlockDefinition
- DestinyItemTalentGridBlockDefinition
- DestinyItemTranslationBlockDefinition
- DestinyItemValueBlockDefinition
- DestinyLocationDefinition
- DestinyLocationReleaseDefinition
- DestinyMaterialRequirement
- DestinyMaterialRequirementSetDefinition
- DestinyNodeActivationRequirement
- DestinyNodeSocketReplaceResponse
- DestinyNodeStepDefinition
- DestinyObjectiveDefinition
- DestinyObjectiveDisplayProperties
- DestinyObjectivePerkEntryDefinition
- DestinyObjectiveStatEntryDefinition
- DestinyPlaceDefinition
- DestinyProgressionDefinition
- DestinyProgressionDisplayPropertiesDefinition
- DestinyProgressionMappingDefinition
- DestinyProgressionRewardDefinition
- DestinyProgressionStepDefinition
- DestinyRaceDefinition
- DestinyRewardSourceCategory
- DestinyRewardSourceDefinition
- DestinySandboxPerkDefinition
- DestinyStatDefinition
- DestinyStatDisplayDefinition
- DestinyStatGroupDefinition
- DestinyStatOverrideDefinition
- DestinyTalentExclusiveGroup
- DestinyTalentGridDefinition
- DestinyTalentNodeCategory
- DestinyTalentNodeDefinition
- DestinyTalentNodeExclusiveSetDefinition
- DestinyTalentNodeStepDamageTypes
- DestinyTalentNodeStepGroups
- DestinyTalentNodeStepGuardianAttributes
- DestinyTalentNodeStepImpactEffects
- DestinyTalentNodeStepLightAbilities
- DestinyTalentNodeStepWeaponPerformances
- DestinyUnlockDefinition
- DestinyUnlockExpressionDefinition
- DestinyUnlockValueDefinition
- DestinyVendorAcceptedItemDefinition
- DestinyVendorActionDefinition
- DestinyVendorCategoryEntryDefinition
- DestinyVendorCategoryOverlayDefinition
- DestinyVendorDefinition
- DestinyVendorDisplayPropertiesDefinition
- DestinyVendorGroupDefinition
- DestinyVendorGroupReference
- DestinyVendorInteractionDefinition
- DestinyVendorInteractionReplyDefinition
- DestinyVendorInteractionSackEntryDefinition
- DestinyVendorInventoryFlyoutBucketDefinition
- DestinyVendorInventoryFlyoutDefinition
- DestinyVendorItemDefinition
- DestinyVendorItemQuantity
- DestinyVendorItemSocketOverride
- DestinyVendorRequirementDisplayEntryDefinition
- DestinyVendorSaleItemActionBlockDefinition
- DestinyVendorServiceDefinition
- DestinyActivityGraphArtElementDefinition
- DestinyActivityGraphConnectionDefinition
- DestinyActivityGraphDefinition
- DestinyActivityGraphDisplayObjectiveDefinition
- DestinyActivityGraphDisplayProgressionDefinition
- DestinyActivityGraphNodeActivityDefinition
- DestinyActivityGraphNodeDefinition
- DestinyActivityGraphNodeFeaturingStateDefinition
- DestinyActivityGraphNodeStateEntry
- DestinyLinkedGraphDefinition
- DestinyLinkedGraphEntryDefinition
- DestinyDerivedItemCategoryDefinition
- DestinyDerivedItemDefinition
- DestinyItemPlugDefinition
- DestinyItemTierTypeDefinition
- DestinyItemTierTypeInfusionBlock
- DestinyParentItemOverride
- DestinyPlugRuleDefinition
- DestinyLoreDefinition
- DestinyMilestoneActivityDefinition
- DestinyMilestoneActivityVariantDefinition
- DestinyMilestoneChallengeActivityDefinition
- DestinyMilestoneChallengeActivityGraphNodeEntry
- DestinyMilestoneChallengeActivityPhase
- DestinyMilestoneChallengeDefinition
- DestinyMilestoneDefinition
- DestinyMilestoneQuestDefinition
- DestinyMilestoneQuestRewardItem
- DestinyMilestoneQuestRewardsDefinition
- DestinyMilestoneRewardCategoryDefinition
- DestinyMilestoneRewardEntryDefinition
- DestinyMilestoneType
- DestinyMilestoneValueDefinition
- DestinyMilestoneVendorDefinition
- DestinyPresentationChildBlock
- DestinyPresentationNodeChildEntry
- DestinyPresentationNodeChildrenBlock
- DestinyPresentationNodeCollectibleChildEntry
- DestinyPresentationNodeDefinition
- DestinyPresentationNodeRecordChildEntry
- DestinyPresentationNodeRequirementsBlock
- DestinyProgressionLevelRequirementDefinition
- DestinyRecordCompletionBlock
- DestinyRecordDefinition
- DestinyRecordTitleBlock
- SchemaRecordStateBlock
- DestinyInsertPlugActionDefinition
- DestinyPlugSetDefinition
- DestinyPlugWhitelistEntryDefinition
- DestinySocketCategoryDefinition
- DestinySocketTypeDefinition
- DestinySocketTypeScalarMaterialRequirementEntry
- DestinyItemSourceDefinition
- DestinyVendorLocationDefinition
- DestinyActivity
- DestinyActivityDifficultyTier
- DestinyActivityModeCategory
- DestinyActivityNavPointType
- DestinyAmmunitionType
- DestinyClass
- DestinyCollectibleState
- DestinyEquipItemResult
- DestinyEquipItemResults
- DestinyGatingScope
- DestinyGender
- DestinyGraphNodeState
- DestinyItemQuantity
- DestinyItemSortType
- DestinyItemSubType
- DestinyItemType
- DestinyObjectiveGrantStyle
- DestinyPresentationDisplayStyle
- DestinyPresentationNodeState
- DestinyPresentationNodeType
- DestinyPresentationScreenStyle
- DestinyProgression
- DestinyProgressionScope
- DestinyProgressionStepDisplayEffect
- DestinyRace
- DestinyRecordState
- DestinyRecordToastStyle
- DestinyRecordValueStyle
- DestinyScope
- DestinySocketCategoryStyle
- DestinySocketVisibility
- DestinyStat
- DestinyStatAggregationType
- DestinyStatCategory
- DestinyTalentNode
- DestinyTalentNodeStatBlock
- DestinyTalentNodeState
- DestinyUnlockValueUIStyle
- DestinyVendorInteractionRewardSelection
- DestinyVendorItemRefundPolicy
- DestinyVendorReplyType
- DyeReference
- DestinyCharacterActivitiesComponent
- DestinyCharacterComponent
- DestinyCharacterProgressionComponent
- DestinyCharacterRenderComponent
- DestinyInventoryComponent
- DestinyItemComponent
- DestinyItemInstanceComponent
- DestinyItemObjectivesComponent
- DestinyItemPerksComponent
- DestinyItemRenderComponent
- DestinyItemSocketState
- DestinyItemSocketsComponent
- DestinyItemStatsComponent
- DestinyItemTalentGridComponent
- EquipFailureReason
- EquippingItemBlockAttributes
- DestinyActivityModeType
- ItemBindStatus
- DestinyItemComponentSetOfint64
- ItemLocation
- ItemPerkVisibility
- ItemState
- DestinyMilestone
- DestinyMilestoneActivity
- DestinyMilestoneActivityCompletionStatus
- DestinyMilestoneActivityPhase
- DestinyMilestoneActivityVariant
- DestinyMilestoneChallengeActivity
- DestinyMilestoneQuest
- DestinyMilestoneRewardCategory
- DestinyMilestoneRewardEntry
- DestinyMilestoneVendor
- DestinyColor
- PeriodType
- DestinyPerkReference
- PlugAvailabilityMode
- PlugUiStyles
- DestinyFactionProgression
- DestinyObjectiveProgress
- DestinyQuestStatus
- DestinyCharacterResponse
- SearchDestinyPlayer
- SocketPlugSources
- SocketTypeActionType
- DestinyItemPlug
- SpecialItemType
- TierType
- TransferStatuses
- VendorDisplayCategorySortOrder
- VendorInteractionType
- DictionaryComponentResponseOfint64AndDestinyItemInstanceComponent
- DictionaryComponentResponseOfint64AndDestinyItemObjectivesComponent
- DictionaryComponentResponseOfint64AndDestinyItemPerksComponent
- DictionaryComponentResponseOfint64AndDestinyItemRenderComponent
- DictionaryComponentResponseOfint64AndDestinyItemSocketsComponent
- DictionaryComponentResponseOfint64AndDestinyItemStatsComponent
- DictionaryComponentResponseOfint64AndDestinyItemTalentGridComponent
- DictionaryComponentResponseOfuint32AndDestinyItemObjectivesComponent
- DictionaryComponentResponseOfuint32AndDestinyItemPlugComponent
- PlatformErrorCodes
- InlineObject
- InlineObject1
- InlineObject2
- InlineObject3
- InlineObject4
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2005
- InterpolationPoint
- InterpolationPointFloat
- HyperlinkReference
- SingleComponentResponseOfDestinyCharacterActivitiesComponent
- SingleComponentResponseOfDestinyCharacterComponent
- SingleComponentResponseOfDestinyCharacterProgressionComponent
- SingleComponentResponseOfDestinyCharacterRecordsComponent
- SingleComponentResponseOfDestinyCharacterRenderComponent
- SingleComponentResponseOfDestinyCollectiblesComponent
- SingleComponentResponseOfDestinyCurrenciesComponent
- SingleComponentResponseOfDestinyInventoryComponent
- SingleComponentResponseOfDestinyKiosksComponent
- SingleComponentResponseOfDestinyPlugSetsComponent
- SingleComponentResponseOfDestinyPresentationNodesComponent
- UserInfoCard
Documentation For Authorization
apiKey
- Type: API key
- API key parameter name: X-API-Key
- Location: HTTP header
oauth2
- Type: OAuth
- Flow: accessCode
- Authorization URL: https://www.bungie.net/en/OAuth/Authorize
- Scopes:
- ReadBasicUserProfile: Read basic user profile information such as the user's handle, avatar icon, etc.
- ReadGroups: Read Group/Clan Forums, Wall, and Members for groups and clans that the user has joined.
- WriteGroups: Write Group/Clan Forums, Wall, and Members for groups and clans that the user has joined.
- AdminGroups: Administer Group/Clan Forums, Wall, and Members for groups and clans that the user is a founder or an administrator.
- BnetWrite: Create new groups, clans, and forum posts.
- MoveEquipDestinyItems: Move or equip Destiny items
- ReadDestinyInventoryAndVault: Read Destiny 1 Inventory and Vault contents. For Destiny 2, this scope is needed to read anything regarded as private. This is the only scope a Destiny 2 app needs for read operations against Destiny 2 data such as inventory, vault, currency, vendors, milestones, progression, etc.
- ReadUserData: Read user data such as who they are web notifications, clan/group memberships, recent activity, muted users.
- EditUserData: Edit user data such as preferred language, status, motto, avatar selection and theme.
- ReadDestinyVendorsAndAdvisors: Access vendor and advisor data specific to a user. OBSOLETE. This scope is only used on the Destiny 1 API.
- ReadAndApplyTokens: Read offer history and claim and apply tokens for the user.
- AdvancedWriteActions: Can perform actions that will result in a prompt to the user via the Destiny app.