JavaScript is required to use Bungie.net

#programming

впервые опубликовано в:BungieNetPlatform
Изменено (NinerOneThree): 2/17/2016 5:47:35 PM
3

Help Requested -> Public Advisors Feed and Special Events like Crimson Days

Apparently I need to be set straight because now my data is all wonky. Please help me. The intent here is notification of daily and weekly events. I have been pulling data to alert when special events like Iron Banner, Trials, Weekly Crucible, Xur start from the public advisors endpoint: https://www.bungie.net/platform/Destiny/Advisors/ Under there the events endpoint (['Response']['data']['events']['events']) really only provides Xur and Iron Banner. SO I end up checking Brother Vance for bounties to know if Trials has started. The weekly crucible usually has map data under it located at ['Response']['data']['weeklyCrucible'] but now it is empty and I presume it will stay that way until next Tuesday. However, the weekly is Inferno Clash 6v6. So the questions are: 1. How do I correctly find out when trials starts? 2. how do I correctly gather the weekly crucible? 3. What about when a special event happens like SRL or Crimson? Where should I pull that. 4. If these are special events (Trials, SRL, C.Days) why do they not have an entry in the events endpoint feed? Is it because they take over the Weekly Crucible spot in the director? IMHO, I would think this would be easier from both a programming and UI perspective if there were a dedicated octagon on the director for these special events (not Xur obviously), which could lead to consistency within the advisors feed. Obviously this is an over simplification and one really does not correlate to the other, but couldn't all the special events such as I.B., SRL, CD, etc. become lists under the events feed?

Публикуется на языке:

 

Играйте достойно. Потратьте минутку на ознакомление с нашими правилами, прежде чем отправлять вашу запись. Отмена Изменить Создать боевую группу Опубликовать

  • Greetings! Yes, so it sounds like you've got two separate issues here: 1) Various events (trials, SRL, Crimson etc...) aren't defined as Events in the Events endpoint 2) Weekly Crucible data isn't being returned I'll have to investigate (2) - you should be getting data for that, so there could be an error in our configuration of weekly crucible information! We'll look into it! But for (1) it's a bit of a long story. The events endpoint is something that we would manually configure when we needed information to come down that endpoint: we used it to drive certain UI in the mobile applications, and we used to use it for some old elements on the BNet website that have since been deprecated. Many events that were once driven by fixed calendars are now manually configured, so the information about those events are less interesting (as, for example, we can't know via content when a certain event is going to end, only that it's currently active or inactive). We can manually configure when we're told these events are going to end, but it is potentially subject to change and thus the data would be relatively unreliable. Since we've not been using the Events endpoint lately, it has been left neglected for some time now. I will bring it up - though we wouldn't be able to give you some useful information like the specific date that these events are ending in many cases, it would be useful to continue populating that events data for your guys' purpose even though we personally don't use it anymore.

    Публикуется на языке:

     

    Играйте достойно. Потратьте минутку на ознакомление с нашими правилами, прежде чем отправлять вашу запись. Отмена Изменить Создать боевую группу Опубликовать

    6 отв.
    • Just as an update for those of you wondering about the Weekly Crucible, this is indeed a bug on our end. Unfortunately we aren't likely going to patch it in time for it to be relevant this week. We apologize for the inconvenience, and are working to make sure that the weekly crucible data will be correct for upcoming weeks!

      Публикуется на языке:

       

      Играйте достойно. Потратьте минутку на ознакомление с нашими правилами, прежде чем отправлять вашу запись. Отмена Изменить Создать боевую группу Опубликовать

    • If you happened to eventually want Start and End dates for events displayed on Bungie.net there's an undocumented endpoint called GetHomepageContentV2 (/Platform/Content/Site/Homepage/V2/) that will return all the information used to render the frontpage including an "eventCalendar" property with a list of eventItems including assets etc. Here's an example entry: [quote]{ "contentId": "14092", "cType": "CalendarEvent", "cmsPath": "Calendar Event Sparrow Racing League", "creationDate": "2015-12-05T23:13:12Z", "modifyDate": "2015-12-08T01:12:59Z", "allowComments": false, "hasAgeGate": false, "minimumAge": 17, "ratingImagePath": "\/img\/theme\/bungienet\/img\/rating_esrb_t.png", "author": { "membershipId": "22704", "uniqueName": "Cozmo", "displayName": "Cozmo", "profilePicture": 770107, "profileTheme": 67, "userTitle": 0, "successMessageFlags": "59", "isDeleted": false, "about": ""Be excellent to each other."", "firstAccess": "2006-11-16T21:06:56.977Z", "lastUpdate": "2015-12-03T01:02:25.4Z", "psnDisplayName": "Cozmo_BNG", "xboxDisplayName": "BNG Cozmo", "showActivity": true, "followerCount": 2768, "followingUserCount": 335, "locale": "en", "localeInheritDefault": true, "showGroupMessaging": true, "profilePicturePath": "\/img\/profile\/avatars\/admin\/employee_cozmo.jpg", "profileThemeName": "Destiny2", "userTitleDisplay": "Newbie", "statusText": "", "statusDate": "2015-12-03T01:02:25.4Z" }, "autoEnglishPropertyFallback": true, "properties": { "Title": "Sparrow Racing", "Subtitle": "Sparrow Racing", "Icon": "\/pubassets\/49365\/SRLCalendar.png", "Link": "https:\/\/www.bungie.net\/en\/News\/News?aid=14086", "StartDate": { "dateValue": "2015-12-08T08:00:00Z", "dateType": 0, "customText": "", "isSet": true }, "EndDate": { "dateValue": "2015-12-29T08:00:00Z", "dateType": 0, "customText": "", "isSet": true } }, "representations": [], "tags": [], "commentSummary": { "topicId": "0", "commentCount": 0 } }[/quote]

      Публикуется на языке:

       

      Играйте достойно. Потратьте минутку на ознакомление с нашими правилами, прежде чем отправлять вашу запись. Отмена Изменить Создать боевую группу Опубликовать

      2 отв.
      У вас нет прав для просмотра этих материалов.
      ;
      preload icon
      preload icon
      preload icon