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

Access to MLB probabilisticBundles for early GWs #614

Open
mlaneuville opened this issue Aug 31, 2024 · 0 comments
Open

Access to MLB probabilisticBundles for early GWs #614

mlaneuville opened this issue Aug 31, 2024 · 0 comments

Comments

@mlaneuville
Copy link

In MLB, I am trying to access box rewards over time for all players.

I am using this query

query ($after: String){
  so5 {
    so5Fixture(slug: "baseball-26-29-apr-2024") {
      so5Leaderboard(so5LeaderboardType: MLB_LIMITED_NATIONAL_LEAGUE) {
        so5Rewards(after: $after) {
          pageInfo {
            hasNextPage
            endCursor
          }
          nodes {
            probabilisticBundle {
              id
            }
          }
        }
      }
    }
  }
}

This seems to work, but

  • I get {"message": "Response not successful: Received status code 500"} as soon as I add an items field to the probabilisticBundle
  • The so5Rewards field is empty for all GWs prior to Apr 15
  • No probabilisticBundle is reported in GW prior to Apr 29 (although I believe they did exist)

This is the query I am successfully using after Apr 29 to retrieve box reward + content

query ($after: String) {
  so5 {
    so5Fixture(slug: "baseball-5-8-jul-2024") {
      so5Leaderboard(so5LeaderboardType: MLB_LIMITED_NATIONAL_LEAGUE) {
        so5Rankings(after: $after) {
          pageInfo {
            hasNextPage
            endCursor
          }
          nodes {
            score
            user {
              slug
            }
            so5Rewards {
              coinAmount
              amount {
                usd
              }
              rewardCards {
                quality
              }
              probabilisticBundle {
                config {
                  name
                }
                items {
                  id
                  ... on ProbabilisticBundleSlotConversionCreditItem {
                    maxDiscount {
                      usd
                    }
                  }
                  ... on ProbabilisticBundleSlotCardItem {
                    anyCard {
                      slug
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

My questions

  • what is the intended behavior?
  • how can I access boxes prior to Apr 29?
  • is there a way to access a box' content from its id?

I am not sure if this is a bug or intended behavior. Thank you for the clarification!

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

1 participant