originally posted in:BungieNetPlatform
Hello all! I recently started to dabble in the API with PHP. It is my first time doing anything with JSon and I have done well so far.
My hangup is getting the data from Xur. I cant seem to get the data from Response->definitions->events->5.
I have tried:
Response->definitions->events->5->title;
Response->definitions->events[0]->title;
Response->definitions->events[5]->title;
This also is tripping me up on the items for sale. Can anyone help?
P.S. - Im also looking to get the current bounties available from anyone offering them, but don't know the endpoints to look at/
-
Definitions are static. Try using [url=http://bungienetplatform.wikia.com/wiki/GetPublicVendor]GetPublicVendor[/url] and [url=http://bungienetplatform.wikia.com/wiki/GetPublicXurVendor]GetPublicXurVendor[/url].
-
Thank you for pointing me in the right direction. I managed to get xurs in for be for he left and scammed the fraction id's from another site to get some data to work with the vendors. Still lost on getting the vendor id's honestly. I also discovered the explore endpoint and I'm now thinking of setting a database up. Just need to figure out what all the data is.
-
Try Response->definitions->events->{ '5' }->title