Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The BLADE module generates URLs that generally rely on ID values of the requested data to ensure that the correct data is returned. Using names instead of IDs can be ambiguous and are subject to naming constraints to be URL compatible. However in certain situations where this limitation of names is acceptable and manageable it can be useful for a person to be able to generate the BLADE URLs manually using names.

...

=> blade/media/ContentGroupName/BinName/ItemName

=> blade/media/ContentGroupName/BinName1/BinName2/ItemName.extension

...

=> blade/score/league/ContentGroupName/LeagueCode/?format=json&logo=false&pretty=falsepretty=false

As of 15.6.3.3 you can filter the scores to a specific home team using

  • Team code

=> blade/score/league/ContentGroupName/LeagueCode/?homeTeam=TeamCode&…

Example 1

In this example the content group name is Global and the league code is MLB:

...

Code Block
blade/score/league/2/?format=json&logo=false&pretty=false
blade/score/league/2/MLB/?format=json&logo=false&pretty=false
blade/score/league/2/RandomText/?format=json&logo=false&pretty=false

Example 2

In this example the content group name is FanScores and the league code is MLB and the team is TOR:

Code Block
blade/score/league/FanScores/MLB/?homeTeam=TOR&format=json&pretty=false

Teams

As of 14.9.3.5 you can access a league’s teams by providing the

  • Content Group name

  • League code

=> blade/league/ContentGroupName/LeagueCode/?format=json&pretty=false

As of 15.6.3.3 you can filter the teams to a specific team using

  • Team code

=> blade/league/ContentGroupName/LeagueCode/?team=TeamCode&…

Example 1

In this example the content group name is Global and the league code is MLB:

Code Block
blade/league/Global/MLB/?format=json&logo=false&pretty=false

Example 2

In this example the content group name is FanScores and the league code is MLB and the team is TOR:

Code Block
blade/league/FanScores/MLB/?team=TOR&format=json&pretty=false