Using this .NET 4.0 SC2Ranks API is easy, and it only takes a couple of steps to get everything working!
While this release is still currently in BETA, it is mostly functional. When problems arrive, post them in the issue tracker, and I will help out!

Firstly, you must include the dll of the SC2Ranks API in your program, and create a reference to it.

Next, you must define the service, this can be done by defining a variable, such as

Dim service As New SC2Ranks.SC2RanksService("domain.com")

The following are the functions and their descriptions, with which you can access the SC2Ranks data.

Battle.NET ID's can be found through the Battle.NET profile of a character. The location of the ID is in the URL:

http://us.battle.net/sc2/en/profile/*ID*/1/*Name*/

 

 

 

Dim info = service.GetBaseCharacterInfoByCharacterCode(region, characterName, characterCode)

This is not recommended as Battle.NET has stopped giving out character codes to sites such as SC2Ranks, so characters may not appear.

This function will retrieve the character's achievement points, character code, and Battle.NET ID.


Dim info = GetBaseCharacterInfoByBnetID(region, characterName, bnetID)

This function will retrieve the character's achievement points, character code, and Battle.NET ID.

 

Dim info = GetBaseTeamCharacterInfoByCharacterCode(region, characterName, characterCode)

This is not recommended as Battle.NET has stopped giving out character codes to sites such as SC2Ranks, so characters may not appear.

This function will retrieve the base character data, as well as the base data for all the character's teams. This is useful if you need to retrieve team member names.

 

Dim info = GetBaseTeamCharacterInfoByBNetID(region, characterName, bnetID)

This function will retrieve the base character data, as well as the base data for all the character's teams. This is useful if you need to retrieve team member names.

 

Dim info = GetTeamInfoByCharacterCode(region, characterName, int characterCode, bracket)

This is not recommended as Battle.NET has stopped giving out character codes to sites such as SC2Ranks, so characters may not appear.

This function will retrieve the base character data, as well as extended data on the passed bracket (1v1 = 1, 2v2=2, and so on).

 

Dim info = GetTeamInfoByBNetID(region, characterName, bnetID, int bracket)

This function will retrieve the base character data, as well as extended data on the passed bracket (1v1 = 1, 2v2=2, and so on).

 

 

Dim info = GetCustomDivision(customDivisionID, region, league, bracket)

This function will retrieve an array of information of each character added to an SC2Ranks Custom Division.

Region/League may be left empty to query all characters in the division.

 

Please remember - Cache your requests and link back to SC2Ranks.com!

Last edited Jul 2, 2012 at 12:20 PM by smoogipoo, version 2

Comments

No comments yet.