Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to transfer/equip items and loadouts #16

Open
aidanjacobson opened this issue Jun 28, 2020 · 4 comments
Open

API to transfer/equip items and loadouts #16

aidanjacobson opened this issue Jun 28, 2020 · 4 comments

Comments

@aidanjacobson
Copy link

Proposed change
I would like to see an API added to DIM that would allow people to access DIM from their own apps, for example switching loadouts to a saved one in DIM. This would allow people to write apps that interface with other technologies, like voice control software (e.g. Google Assistant, Alexa)

How does this fit into your workflow?
Being on console makes it annoying to have to open my inventory every time and wait for it to load, so I would love to just be able to say something like "OK Google, tell Destiny to switch to my PVP loadout". Of course it would be up to other developers to write a skill for Google Assistant or Alexa, unless you develop that too.

@bhollis
Copy link
Contributor

bhollis commented Jul 1, 2020

Good idea! We in fact already have this planned, but have some other features ahead of it in priority.

@bhollis bhollis transferred this issue from DestinyItemManager/DIM Jul 1, 2020
@bhollis
Copy link
Contributor

bhollis commented Jul 1, 2020

This would be extremely useful for both an Alexa skill, and for Streamdeck integration.

To achieve this, we'd need to build two major pieces:

  1. Opt-in storage of a new, confidential-oauth token that allows the DIM API to take action on its own.
  2. A stripped-down version of the item move logic and load out application logic that can run in the API. This will be a challenge since it'll need to load and process inventory, then issue all the moves, in the process of that call - it'll be very slow!

@bhollis bhollis changed the title Create an easy-to-use api for DIM-related actions API to transfer/equip items and loadouts Jul 3, 2020
@GeekyEggo
Copy link

GeekyEggo commented Aug 30, 2020

@bhollis a possible solution could be to utilise a user's existing local instance of DIM, and then provide communication to that local instance (e.g. via WebRTC).

  • A DIM server would act as a pairing service (some form of auth required).
  • Bungie OAuth tokens would remain local.
  • Existing logic for moving items would remain mostly unchanged.

@bhollis
Copy link
Contributor

bhollis commented Aug 30, 2020

I think for a bunch of reasons we'll be going the route of having the server affect the moves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants