wargaming

package
v0.0.0-...-eaf9504 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RealmAsia Asia.
	RealmAsia = realmS{
				// contains filtered or unexported fields
	}
	// RealmEu Europe.
	RealmEu = realmS{
			// contains filtered or unexported fields
	}
	// RealmNa North America.
	RealmNa = realmS{
			// contains filtered or unexported fields
	}
	// RealmWgcb Wgcb.
	RealmWgcb = realmS{
				// contains filtered or unexported fields
	}
)
View Source
var (
	InvalidResponse = errors.New("invalid response, 'status' was not ok but missing 'error'")
)

Functions

func Bool

func Bool(val bool) *bool

Bool is a helper function that allocates a new bool value to store val and returns a pointer to it.

func Int

func Int(val int) *int

Int is a helper function that allocates a new int value to store val and returns a pointer to it.

func String

func String(val string) *string

String is a helper function that allocates a new string value to store val and returns a pointer to it.

Types

type BadStatusCode

type BadStatusCode int

func (BadStatusCode) Error

func (err BadStatusCode) Error() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for all api requests. As a quick start:

// create client
client := wargaming.NewClient("a7f838650dcb008552966db063eeeb35", nil)
// get account list
res, meta, err := client.Wot.AccountList(context.Background(), wargaming.realmEu, "Yzne", nil)
// print out
if err != nil {
	// handle a Wargaming Response Error, returned by the API itself
	var respErr *wargaming.ResponseError
	if errors.As(err, &respErr) {
		fmt.Println(respErr.Error())
	} else {
		// handle client or other error
		fmt.Println(err.Error())
	}
} else {
	for _, value := range res {
		fmt.Println(value)
	}
	fmt.Println(*meta.Count)
}
// get account list with options
res, _, err = client.Wot.AccountList(context.Background(), wargaming.realmEu, "Lichtgeschwindigkeit", &wot.AccountListOptions{
	Fields: []string{"nickname"},
})

or with a custom http.Client

	client := wargaming.NewClient("a7f838650dcb008552966db063eeeb35", &wargaming.ClientOptions{
   HTTPClient: &http.Client{
       Timeout: 10 * time.Second,
   },
	})

func NewClient

func NewClient(applicationId string, options *ClientOptions) *Client

NewClient creates a new API client. Pass nil as options if you want to use none.

func (*Client) Request

func (client *Client) Request(req *http.Request, returnData any, metaData any) error

type ClientOptions

type ClientOptions struct {
	HTTPClient *pester.Client
}

type GenericMeta

type GenericMeta struct {
	Count     *int  `json:"count,omitempty"`
	Hidden    []int `json:"hidden,omitempty"`
	Limit     *int  `json:"limit,omitempty"`
	Page      *int  `json:"page,omitempty"`
	PageTotal *int  `json:"page_total,omitempty"`
	Total     *int  `json:"total,omitempty"`
}

GenericMeta contains all possible values which can be returned as metadata. Explicitly check against non nil, before using them. The returned meta values are not documented by Wargaming.

type InvalidRealm

type InvalidRealm struct {
	Realm Realm
}

func (InvalidRealm) Error

func (err InvalidRealm) Error() string

type Realm

type Realm interface {
	Name() string
	Index() string
	TLD() string
}

type ResponseError

type ResponseError struct {
	Field   string `json:"field"`
	Message string `json:"message"`
	Code    int    `json:"code"`
	Value   string `json:"value"`
}

ResponseError contains the fields returned by the Wargaming API. https://developers.wargaming.net/documentation/guide/getting-started/

_, err := client.Wot.AccountList(context.Background(), RealmEu, "Licht", nil)
	var respErr *ResponseError
	if errors.As(err, &respErr) {
		fmt.Println(respErr.Error())
	}
}

func (ResponseError) Description

func (err ResponseError) Description() string

Description will return a detailed description about the error, will return "" if no description can be provided.

func (ResponseError) Error

func (err ResponseError) Error() string

type WgnService

type WgnService service

WgnService Wargaming.NET service.

func (*WgnService) AccountInfo

func (service *WgnService) AccountInfo(ctx context.Context, realm Realm, accountId []int, options *wgn.AccountInfoOptions) (*wgn.AccountInfo, *GenericMeta, error)

AccountInfo returns Wargaming account details.

https://developers.wargaming.net/reference/all/wgn/account/info

realm:

Valid realms: RealmEu, RealmNa

accountId:

Player ID. Maximum limit: 100.

func (*WgnService) AccountList

func (service *WgnService) AccountList(ctx context.Context, realm Realm, search string, options *wgn.AccountListOptions) ([]*wgn.AccountList, *GenericMeta, error)

AccountList returns partial list of players who have ever accessed in any Wargaming game. The list is filtered by name or by initial characters of user name and sorted alphabetically.

https://developers.wargaming.net/reference/all/wgn/account/list

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

search:

Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.

func (*WgnService) ClansGlossary deprecated

func (service *WgnService) ClansGlossary(ctx context.Context, realm Realm, options *wgn.ClansGlossaryOptions) (*wgn.ClansGlossary, error)

ClansGlossary returns information on clan entities in World of Tanks and World of Warplanes.This method will be removed. Use method Clan glossary (World of Tanks)

https://developers.wargaming.net/reference/all/wgn/clans/glossary

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WgnService) ClansInfo deprecated

func (service *WgnService) ClansInfo(ctx context.Context, realm Realm, clanId []int, options *wgn.ClansInfoOptions) (*wgn.ClansInfo, error)

ClansInfo returns detailed clan information. Information is available for World of Tanks and World of Warplanes clans.This method will be removed. Use method Clan details (World of Tanks)

https://developers.wargaming.net/reference/all/wgn/clans/info

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. Maximum limit: 100.

func (*WgnService) ClansList deprecated

func (service *WgnService) ClansList(ctx context.Context, realm Realm, options *wgn.ClansListOptions) (*wgn.ClansList, error)

ClansList searches and sorts clans by the following logic:

exact match of clan tag placed first exact match of clan name placed second name or tag matches are placed next all comparisons are performed case insensitive expression [wg] is converted to wg and considered as the clan tag search for expression "[wg] clan" is performed by exact match of clan name and tag

Disbanded, NPC and technically frozen clans are excluded from response. Search is executed across World of Tanks and World of Warplanes.This method will be removed. Use method Clans (World of Tanks)

https://developers.wargaming.net/reference/all/wgn/clans/list

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WgnService) ClansMemberhistory deprecated

func (service *WgnService) ClansMemberhistory(ctx context.Context, realm Realm, accountId int, options *wgn.ClansMemberhistoryOptions) (*wgn.ClansMemberhistory, error)

ClansMemberhistory returns information about player's clan history. Data on 10 last clan memberships are presented in the response.This method will be removed. Use method Player's clan history (World of Tanks)

https://developers.wargaming.net/reference/all/wgn/clans/memberhistory

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Account ID. Min value is 1.

func (*WgnService) ClansMembersinfo deprecated

func (service *WgnService) ClansMembersinfo(ctx context.Context, realm Realm, accountId []int, options *wgn.ClansMembersinfoOptions) (*wgn.ClansMembersinfo, error)

ClansMembersinfo returns detailed clan member information and brief clan details. Information is available for World of Tanks and World of Warplanes clans.This method will be removed. Use method Clan member details (World of Tanks)

https://developers.wargaming.net/reference/all/wgn/clans/membersinfo

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Account ID. Maximum limit: 100. Min value is 1.

func (*WgnService) ClansMessageboard deprecated

func (service *WgnService) ClansMessageboard(ctx context.Context, realm Realm, accessToken string, options *wgn.ClansMessageboardOptions) (*wgn.ClansMessageboard, error)

ClansMessageboard returns messages of clan message board.This method will be removed. Use method Message board (World of Tanks)

https://developers.wargaming.net/reference/all/wgn/clans/messageboard

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

func (*WgnService) ServersInfo

func (service *WgnService) ServersInfo(ctx context.Context, realm Realm, options *wgn.ServersInfoOptions) (*wgn.ServersInfo, error)

ServersInfo returns the number of online players on the servers.

https://developers.wargaming.net/reference/all/wgn/servers/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WgnService) WgtvTags

func (service *WgnService) WgtvTags(ctx context.Context, realm Realm, options *wgn.WgtvTagsOptions) (*wgn.WgtvTags, *GenericMeta, error)

WgtvTags returns lists of game projects, categories, and programs.

https://developers.wargaming.net/reference/all/wgn/wgtv/tags

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WgnService) WgtvVehicles

func (service *WgnService) WgtvVehicles(ctx context.Context, realm Realm, options *wgn.WgtvVehiclesOptions) (*wgn.WgtvVehicles, *GenericMeta, error)

WgtvVehicles returns list of vehicles sorted by games and covered by videos.

https://developers.wargaming.net/reference/all/wgn/wgtv/vehicles

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WgnService) WgtvVideos

func (service *WgnService) WgtvVideos(ctx context.Context, realm Realm, options *wgn.WgtvVideosOptions) ([]*wgn.WgtvVideos, *GenericMeta, error)

WgtvVideos returns list of videos filtered by the specified parameter.

https://developers.wargaming.net/reference/all/wgn/wgtv/videos

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

type WotService

type WotService service

WotService World Of Tanks service.

func (*WotService) AccountAchievements

func (service *WotService) AccountAchievements(ctx context.Context, realm Realm, accountId []int, options *wot.AccountAchievementsOptions) (*wot.AccountAchievements, *GenericMeta, error)

AccountAchievements returns players' achievement details. Achievement properties define the achievements field values:

1-4 for Mastery Badges and Stage Achievements (type: "class"); maximum value of Achievement series (type: "series"); number of achievements earned from sections: Battle Hero, Epic Achievements, Group Achievements, Special Achievements, etc. (type: "repeatable, single, custom").

https://developers.wargaming.net/reference/all/wot/account/achievements

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

func (*WotService) AccountInfo

func (service *WotService) AccountInfo(ctx context.Context, realm Realm, accountId []int, options *wot.AccountInfoOptions) (*wot.AccountInfo, *GenericMeta, error)

AccountInfo returns player details.

https://developers.wargaming.net/reference/all/wot/account/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

func (*WotService) AccountList

func (service *WotService) AccountList(ctx context.Context, realm Realm, search string, options *wot.AccountListOptions) ([]*wot.AccountList, *GenericMeta, error)

AccountList returns partial list of players. The list is filtered by initial characters of user name and sorted alphabetically.

https://developers.wargaming.net/reference/all/wot/account/list

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

search:

Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.

func (*WotService) AccountTanks

func (service *WotService) AccountTanks(ctx context.Context, realm Realm, accountId []int, options *wot.AccountTanksOptions) (*wot.AccountTanks, *GenericMeta, error)

AccountTanks returns details on player's vehicles.

https://developers.wargaming.net/reference/all/wot/account/tanks

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

func (*WotService) AuthLogin

func (service *WotService) AuthLogin(ctx context.Context, realm Realm, options *wot.AuthLoginOptions) (*wot.AuthLogin, error)

AuthLogin authenticates user based on Wargaming.net ID (OpenID) which is used in World of Tanks, World of Tanks Blitz, World of Warships, World of Warplanes, and WarGag.ru. To log in, player must enter email and password used for creating account, or use a social network profile. Authentication is not available for iOS Game Center users in the following cases:

the account is not linked to a social network account, or
email and password are not specified in the profile.

Information on authorization status is sent to URL specified in redirect_uri parameter. If authentication is successful, the following parameters are sent to redirect_uri:

status: ok - successful authentication access_token - access token is passed in to all methods that require authentication expires_at - expiration date of access_token account_id - user ID nickname - user name.

If authentication fails, the following parameters are sent to redirect_uri:

status: error - authentication error code - error code message - error message.

https://developers.wargaming.net/reference/all/wot/auth/login

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) AuthLogout

func (service *WotService) AuthLogout(ctx context.Context, realm Realm, accessToken string) error

AuthLogout deletes user's access_token. After this method is called, access_token becomes invalid.

https://developers.wargaming.net/reference/all/wot/auth/logout

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

func (*WotService) AuthProlongate

func (service *WotService) AuthProlongate(ctx context.Context, realm Realm, accessToken string, options *wot.AuthProlongateOptions) (*wot.AuthProlongate, error)

AuthProlongate generates new access_token based on the current token. This method is used when the player is still using the application but the current access_token is about to expire.

https://developers.wargaming.net/reference/all/wot/auth/prolongate

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

func (*WotService) ClanratingsClans

func (service *WotService) ClanratingsClans(ctx context.Context, realm Realm, clanId []int, options *wot.ClanratingsClansOptions) (*wot.ClanratingsClans, *GenericMeta, error)

ClanratingsClans returns clan ratings by specified IDs.

https://developers.wargaming.net/reference/all/wot/clanratings/clans

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan IDs. Maximum limit: 100.

func (*WotService) ClanratingsDates

func (service *WotService) ClanratingsDates(ctx context.Context, realm Realm, options *wot.ClanratingsDatesOptions) (*wot.ClanratingsDates, *GenericMeta, error)

ClanratingsDates returns dates with available rating data.

https://developers.wargaming.net/reference/all/wot/clanratings/dates

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) ClanratingsNeighbors

func (service *WotService) ClanratingsNeighbors(ctx context.Context, realm Realm, clanId int, rankField string, options *wot.ClanratingsNeighborsOptions) ([]*wot.ClanratingsNeighbors, *GenericMeta, error)

ClanratingsNeighbors returns list of adjacent positions in specified clan rating.

https://developers.wargaming.net/reference/all/wot/clanratings/neighbors

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID

rankField:

Rating category

func (*WotService) ClanratingsTop

func (service *WotService) ClanratingsTop(ctx context.Context, realm Realm, rankField string, options *wot.ClanratingsTopOptions) ([]*wot.ClanratingsTop, *GenericMeta, error)

ClanratingsTop returns the list of top clans by specified parameters.

https://developers.wargaming.net/reference/all/wot/clanratings/top

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

rankField:

Rating category

func (*WotService) ClanratingsTypes

func (service *WotService) ClanratingsTypes(ctx context.Context, realm Realm) (*wot.ClanratingsTypes, *GenericMeta, error)

ClanratingsTypes returns details on ratings types and categories.

https://developers.wargaming.net/reference/all/wot/clanratings/types

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) ClansAccountinfo

func (service *WotService) ClansAccountinfo(ctx context.Context, realm Realm, accountId []int, options *wot.ClansAccountinfoOptions) (*wot.ClansAccountinfo, *GenericMeta, error)

ClansAccountinfo returns detailed clan member information and brief clan details.

https://developers.wargaming.net/reference/all/wot/clans/accountinfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Account ID. Maximum limit: 100. Min value is 1.

func (*WotService) ClansGlossary

func (service *WotService) ClansGlossary(ctx context.Context, realm Realm, options *wot.ClansGlossaryOptions) (*wot.ClansGlossary, error)

ClansGlossary returns information on clan entities.

https://developers.wargaming.net/reference/all/wot/clans/glossary

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) ClansInfo

func (service *WotService) ClansInfo(ctx context.Context, realm Realm, clanId []int, options *wot.ClansInfoOptions) (*wot.ClansInfo, *GenericMeta, error)

ClansInfo returns detailed clan information.

https://developers.wargaming.net/reference/all/wot/clans/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. Maximum limit: 100.

func (*WotService) ClansList

func (service *WotService) ClansList(ctx context.Context, realm Realm, options *wot.ClansListOptions) ([]*wot.ClansList, *GenericMeta, error)

ClansList searches through clans and sorts them in a specified order.

https://developers.wargaming.net/reference/all/wot/clans/list

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) ClansMemberhistory

func (service *WotService) ClansMemberhistory(ctx context.Context, realm Realm, accountId int, options *wot.ClansMemberhistoryOptions) (*wot.ClansMemberhistory, *GenericMeta, error)

ClansMemberhistory returns information about player's clan history. Data on 10 last clan memberships are presented in the response.This method will be removed. Use method Player's clan history (World of Tanks)

https://developers.wargaming.net/reference/all/wot/clans/memberhistory

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Account ID. Min value is 1.

func (*WotService) ClansMessageboard

func (service *WotService) ClansMessageboard(ctx context.Context, realm Realm, accessToken string, options *wot.ClansMessageboardOptions) (map[string][]*wot.ClansMessageboard, error)

ClansMessageboard returns messages of clan message board.This method will be removed. Use method Message board (World of Tanks)

https://developers.wargaming.net/reference/all/wot/clans/messageboard

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

func (*WotService) EncyclopediaAchievements

func (service *WotService) EncyclopediaAchievements(ctx context.Context, realm Realm, options *wot.EncyclopediaAchievementsOptions) (*wot.EncyclopediaAchievements, *GenericMeta, error)

EncyclopediaAchievements returns information about achievements.

https://developers.wargaming.net/reference/all/wot/encyclopedia/achievements

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaArenas

func (service *WotService) EncyclopediaArenas(ctx context.Context, realm Realm, options *wot.EncyclopediaArenasOptions) (*wot.EncyclopediaArenas, *GenericMeta, error)

EncyclopediaArenas returns information about maps.

https://developers.wargaming.net/reference/all/wot/encyclopedia/arenas

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaBadges

func (service *WotService) EncyclopediaBadges(ctx context.Context, realm Realm, options *wot.EncyclopediaBadgesOptions) (*wot.EncyclopediaBadges, *GenericMeta, error)

EncyclopediaBadges returns list of available badges a player can gain in Ranked Battles.

https://developers.wargaming.net/reference/all/wot/encyclopedia/badges

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaBoosters

func (service *WotService) EncyclopediaBoosters(ctx context.Context, realm Realm, options *wot.EncyclopediaBoostersOptions) (*wot.EncyclopediaBoosters, *GenericMeta, error)

EncyclopediaBoosters returns information about Personal Reserves.

https://developers.wargaming.net/reference/all/wot/encyclopedia/boosters

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaCrewroles

func (service *WotService) EncyclopediaCrewroles(ctx context.Context, realm Realm, options *wot.EncyclopediaCrewrolesOptions) (*wot.EncyclopediaCrewroles, *GenericMeta, error)

EncyclopediaCrewroles returns full description of all crew qualifications.

https://developers.wargaming.net/reference/all/wot/encyclopedia/crewroles

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaCrewskills

func (service *WotService) EncyclopediaCrewskills(ctx context.Context, realm Realm, options *wot.EncyclopediaCrewskillsOptions) (*wot.EncyclopediaCrewskills, *GenericMeta, error)

EncyclopediaCrewskills returns full description of all crew skills.

https://developers.wargaming.net/reference/all/wot/encyclopedia/crewskills

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaInfo

func (service *WotService) EncyclopediaInfo(ctx context.Context, realm Realm, options *wot.EncyclopediaInfoOptions) (*wot.EncyclopediaInfo, *GenericMeta, error)

EncyclopediaInfo returns information about Tankopedia.

https://developers.wargaming.net/reference/all/wot/encyclopedia/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaModules

func (service *WotService) EncyclopediaModules(ctx context.Context, realm Realm, options *wot.EncyclopediaModulesOptions) (*wot.EncyclopediaModules, *GenericMeta, error)

EncyclopediaModules returns list of available modules that can be installed on vehicles, such as engines, turrets, etc. At least one input filter parameter (module ID, type) is required to be indicated.

https://developers.wargaming.net/reference/all/wot/encyclopedia/modules

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaPersonalmissions

func (service *WotService) EncyclopediaPersonalmissions(ctx context.Context, realm Realm, options *wot.EncyclopediaPersonalmissionsOptions) (*wot.EncyclopediaPersonalmissions, *GenericMeta, error)

EncyclopediaPersonalmissions returns details on Personal Missions on the basis of specified campaign IDs, operation IDs, mission branch and tag IDs.

https://developers.wargaming.net/reference/all/wot/encyclopedia/personalmissions

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaProvisions

func (service *WotService) EncyclopediaProvisions(ctx context.Context, realm Realm, options *wot.EncyclopediaProvisionsOptions) (*wot.EncyclopediaProvisions, *GenericMeta, error)

EncyclopediaProvisions returns a list of available equipment and consumables.

https://developers.wargaming.net/reference/all/wot/encyclopedia/provisions

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaTankchassis deprecated

func (service *WotService) EncyclopediaTankchassis(ctx context.Context, realm Realm, options *wot.EncyclopediaTankchassisOptions) (*wot.EncyclopediaTankchassis, error)

EncyclopediaTankchassis returns list of suspensions.

https://developers.wargaming.net/reference/all/wot/encyclopedia/tankchassis

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaTankengines deprecated

func (service *WotService) EncyclopediaTankengines(ctx context.Context, realm Realm, options *wot.EncyclopediaTankenginesOptions) (*wot.EncyclopediaTankengines, error)

EncyclopediaTankengines returns list of engines.

https://developers.wargaming.net/reference/all/wot/encyclopedia/tankengines

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaTankguns deprecated

func (service *WotService) EncyclopediaTankguns(ctx context.Context, realm Realm, options *wot.EncyclopediaTankgunsOptions) (*wot.EncyclopediaTankguns, error)

EncyclopediaTankguns returns a tanks' gun list. The logic of this method and some field values may vary according to optional parameters passed. Changeable fields:

damage piercing_power rate price_credit price_gold

Optional input parameters work as follows:

correct turret_id passed - tank guns are filtered by whether they are placed on the turret and the abovementioned values change according to the turret; correct turret_id and module_id passed - the method returns details on each module with the abovementioned values changed according to the turret, or returns null if the module is not compatible with the turret; correct tank_id passed - if tank type matches one of AT-SPG, SPG, mediumTank, tank guns are filtered by whether they belong to the tank, the abovementioned values change according to the tank; otherwise, returns an error and requests turret_id. If module_id is also passed, the method returns details on each module with the abovementioned values changed according to the tank, or returns null if the module is not compatible with the tank; compatible turret_id and tank_id passed - tank guns are filtered by whether they belong to the tank and are placed on the turret, the abovementioned values changed according to the turret.

https://developers.wargaming.net/reference/all/wot/encyclopedia/tankguns

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaTankinfo deprecated

func (service *WotService) EncyclopediaTankinfo(ctx context.Context, realm Realm, tankId []int, options *wot.EncyclopediaTankinfoOptions) (*wot.EncyclopediaTankinfo, error)

EncyclopediaTankinfo returns vehicle details from Tankopedia.

https://developers.wargaming.net/reference/all/wot/encyclopedia/tankinfo

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tankId:

Vehicle ID. Maximum limit: 1000.

func (*WotService) EncyclopediaTankradios deprecated

func (service *WotService) EncyclopediaTankradios(ctx context.Context, realm Realm, options *wot.EncyclopediaTankradiosOptions) (*wot.EncyclopediaTankradios, error)

EncyclopediaTankradios returns list of radios.

https://developers.wargaming.net/reference/all/wot/encyclopedia/tankradios

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaTanks deprecated

func (service *WotService) EncyclopediaTanks(ctx context.Context, realm Realm, options *wot.EncyclopediaTanksOptions) (*wot.EncyclopediaTanks, error)

EncyclopediaTanks returns list of all vehicles from Tankopedia.

https://developers.wargaming.net/reference/all/wot/encyclopedia/tanks

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaTankturrets deprecated

func (service *WotService) EncyclopediaTankturrets(ctx context.Context, realm Realm, options *wot.EncyclopediaTankturretsOptions) (*wot.EncyclopediaTankturrets, error)

EncyclopediaTankturrets returns list of turrets.

https://developers.wargaming.net/reference/all/wot/encyclopedia/tankturrets

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) EncyclopediaVehicleprofile

func (service *WotService) EncyclopediaVehicleprofile(ctx context.Context, realm Realm, tankId int, options *wot.EncyclopediaVehicleprofileOptions) (*wot.EncyclopediaVehicleprofile, *GenericMeta, error)

EncyclopediaVehicleprofile returns vehicle configuration characteristics based on the specified module IDs.

https://developers.wargaming.net/reference/all/wot/encyclopedia/vehicleprofile

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tankId:

Vehicle ID

func (*WotService) EncyclopediaVehicleprofiles

func (service *WotService) EncyclopediaVehicleprofiles(ctx context.Context, realm Realm, tankId int, options *wot.EncyclopediaVehicleprofilesOptions) (*wot.EncyclopediaVehicleprofiles, *GenericMeta, error)

EncyclopediaVehicleprofiles returns vehicle configuration characteristics.

https://developers.wargaming.net/reference/all/wot/encyclopedia/vehicleprofiles

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tankId:

Vehicle ID

func (*WotService) EncyclopediaVehicles

func (service *WotService) EncyclopediaVehicles(ctx context.Context, realm Realm, options *wot.EncyclopediaVehiclesOptions) (*wot.EncyclopediaVehicles, *GenericMeta, error)

EncyclopediaVehicles returns list of available vehicles.

https://developers.wargaming.net/reference/all/wot/encyclopedia/vehicles

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) GlobalmapClanbattles

func (service *WotService) GlobalmapClanbattles(ctx context.Context, realm Realm, clanId int, options *wot.GlobalmapClanbattlesOptions) ([]*wot.GlobalmapClanbattles, *GenericMeta, error)

GlobalmapClanbattles returns list of clan's battles on the Global Map.

https://developers.wargaming.net/reference/all/wot/globalmap/clanbattles

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. To get a clan ID, use the Clans method.

func (*WotService) GlobalmapClaninfo

func (service *WotService) GlobalmapClaninfo(ctx context.Context, realm Realm, clanId []int, options *wot.GlobalmapClaninfoOptions) (*wot.GlobalmapClaninfo, *GenericMeta, error)

GlobalmapClaninfo returns clan data on the Global Map.

https://developers.wargaming.net/reference/all/wot/globalmap/claninfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. To get a clan ID, use the Clans method. Maximum limit: 10.

func (*WotService) GlobalmapClanprovinces

func (service *WotService) GlobalmapClanprovinces(ctx context.Context, realm Realm, clanId []int, options *wot.GlobalmapClanprovincesOptions) (*wot.GlobalmapClanprovinces, *GenericMeta, error)

GlobalmapClanprovinces returns lists of clans provinces.

https://developers.wargaming.net/reference/all/wot/globalmap/clanprovinces

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

List of clan IDs. To get a clan ID, use the Clans method. Maximum limit: 10.

func (*WotService) GlobalmapEventaccountinfo

func (service *WotService) GlobalmapEventaccountinfo(ctx context.Context, realm Realm, eventId string, frontId []string, options *wot.GlobalmapEventaccountinfoOptions) (*wot.GlobalmapEventaccountinfo, *GenericMeta, error)

GlobalmapEventaccountinfo returns player's statistics for a specific event

https://developers.wargaming.net/reference/all/wot/globalmap/eventaccountinfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

eventId:

Event ID. To get an event ID, use the Events method.

frontId:

Front ID. To get a front ID, use the Fronts method. Maximum limit: 10.

func (*WotService) GlobalmapEventaccountratingneighbors

func (service *WotService) GlobalmapEventaccountratingneighbors(ctx context.Context, realm Realm, accountId int, eventId string, frontId string, options *wot.GlobalmapEventaccountratingneighborsOptions) ([]*wot.GlobalmapEventaccountratingneighbors, error)

GlobalmapEventaccountratingneighbors returns adjacent position in account event rating.

https://developers.wargaming.net/reference/all/wot/globalmap/eventaccountratingneighbors

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Account ID. Min value is 1.

eventId:

Event ID. To get an event ID, use the Events method.

frontId:

Front ID. To get a front ID, use the Fronts method.

func (*WotService) GlobalmapEventaccountratings

func (service *WotService) GlobalmapEventaccountratings(ctx context.Context, realm Realm, eventId string, frontId string, options *wot.GlobalmapEventaccountratingsOptions) ([]*wot.GlobalmapEventaccountratings, error)

GlobalmapEventaccountratings returns account event rating.

https://developers.wargaming.net/reference/all/wot/globalmap/eventaccountratings

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

eventId:

Event ID. To get an event ID, use the Events method.

frontId:

Front ID. To get a front ID, use the Fronts method.

func (*WotService) GlobalmapEventclaninfo

func (service *WotService) GlobalmapEventclaninfo(ctx context.Context, realm Realm, clanId int, eventId string, frontId []string, options *wot.GlobalmapEventclaninfoOptions) (*wot.GlobalmapEventclaninfo, *GenericMeta, error)

GlobalmapEventclaninfo returns clan's statistics for a specific event.

https://developers.wargaming.net/reference/all/wot/globalmap/eventclaninfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. To get a clan ID, use the Clans method. Min value is 1.

eventId:

Event ID. To get an event ID, use the Events method.

frontId:

Front ID. To get a front ID, use the Fronts method. Maximum limit: 10.

func (*WotService) GlobalmapEventrating

func (service *WotService) GlobalmapEventrating(ctx context.Context, realm Realm, eventId string, frontId string, options *wot.GlobalmapEventratingOptions) ([]*wot.GlobalmapEventrating, error)

GlobalmapEventrating returns event clan rating

https://developers.wargaming.net/reference/all/wot/globalmap/eventrating

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

eventId:

Event ID. To get an event ID, use the Events method.

frontId:

Front ID. To get a front ID, use the Fronts method.

func (*WotService) GlobalmapEventratingneighbors

func (service *WotService) GlobalmapEventratingneighbors(ctx context.Context, realm Realm, clanId int, eventId string, frontId string, options *wot.GlobalmapEventratingneighborsOptions) ([]*wot.GlobalmapEventratingneighbors, error)

GlobalmapEventratingneighbors returns list of adjacent positions in event clan rating

https://developers.wargaming.net/reference/all/wot/globalmap/eventratingneighbors

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. To get a clan ID, use the Clans method. Min value is 1.

eventId:

Event ID. To get an event ID, use the Events method.

frontId:

Front ID. To get a front ID, use the Fronts method.

func (*WotService) GlobalmapEvents

func (service *WotService) GlobalmapEvents(ctx context.Context, realm Realm, options *wot.GlobalmapEventsOptions) ([]*wot.GlobalmapEvents, *GenericMeta, error)

GlobalmapEvents returns events information.

https://developers.wargaming.net/reference/all/wot/globalmap/events

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) GlobalmapFronts

func (service *WotService) GlobalmapFronts(ctx context.Context, realm Realm, options *wot.GlobalmapFrontsOptions) ([]*wot.GlobalmapFronts, *GenericMeta, error)

GlobalmapFronts returns information about the Global Map Fronts.

https://developers.wargaming.net/reference/all/wot/globalmap/fronts

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) GlobalmapInfo

func (service *WotService) GlobalmapInfo(ctx context.Context, realm Realm, options *wot.GlobalmapInfoOptions) (*wot.GlobalmapInfo, *GenericMeta, error)

GlobalmapInfo returns general information about the Global Map.

https://developers.wargaming.net/reference/all/wot/globalmap/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) GlobalmapProvinces

func (service *WotService) GlobalmapProvinces(ctx context.Context, realm Realm, frontId string, options *wot.GlobalmapProvincesOptions) ([]*wot.GlobalmapProvinces, *GenericMeta, error)

GlobalmapProvinces returns information about the Global Map provinces.

https://developers.wargaming.net/reference/all/wot/globalmap/provinces

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

frontId:

Front ID. To get a front ID, use the Fronts method.

func (*WotService) GlobalmapSeasonaccountinfo

func (service *WotService) GlobalmapSeasonaccountinfo(ctx context.Context, realm Realm, accountId int, seasonId string, vehicleLevel []string, options *wot.GlobalmapSeasonaccountinfoOptions) (*wot.GlobalmapSeasonaccountinfo, *GenericMeta, error)

GlobalmapSeasonaccountinfo returns player's statistics for a specific season.

https://developers.wargaming.net/reference/all/wot/globalmap/seasonaccountinfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Account ID. Min value is 1.

seasonId:

Season ID. To get a season ID, use the Seasons method.

vehicleLevel:

List of vehicle Tiers. Maximum limit: 100. Valid values:

"6" - Vehicles of Tier 6
"8" - Vehicles of Tier 8
"10" - Vehicles of Tier 10

func (*WotService) GlobalmapSeasonclaninfo

func (service *WotService) GlobalmapSeasonclaninfo(ctx context.Context, realm Realm, clanId int, seasonId string, vehicleLevel []string, options *wot.GlobalmapSeasonclaninfoOptions) (*wot.GlobalmapSeasonclaninfo, *GenericMeta, error)

GlobalmapSeasonclaninfo returns clan's statistics for a specific season.

https://developers.wargaming.net/reference/all/wot/globalmap/seasonclaninfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. To get a clan ID, use the Clans method. Min value is 1.

seasonId:

Season ID. To get a season ID, use the Seasons method.

vehicleLevel:

List of vehicle Tiers. Maximum limit: 100. Valid values:

"6" - Vehicles of Tier 6
"8" - Vehicles of Tier 8
"10" - Vehicles of Tier 10

func (*WotService) GlobalmapSeasonrating

func (service *WotService) GlobalmapSeasonrating(ctx context.Context, realm Realm, seasonId string, vehicleLevel string, options *wot.GlobalmapSeasonratingOptions) ([]*wot.GlobalmapSeasonrating, *GenericMeta, error)

GlobalmapSeasonrating returns season clan rating.

https://developers.wargaming.net/reference/all/wot/globalmap/seasonrating

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

seasonId:

Season ID. To get a season ID, use the Seasons method.

vehicleLevel:

Vehicle Tier. Valid values:

"6" - Vehicles of Tier 6
"8" - Vehicles of Tier 8
"10" - Vehicles of Tier 10

func (*WotService) GlobalmapSeasonratingneighbors

func (service *WotService) GlobalmapSeasonratingneighbors(ctx context.Context, realm Realm, clanId int, seasonId string, vehicleLevel string, options *wot.GlobalmapSeasonratingneighborsOptions) ([]*wot.GlobalmapSeasonratingneighbors, *GenericMeta, error)

GlobalmapSeasonratingneighbors returns list of adjacent positions in season clan rating.

https://developers.wargaming.net/reference/all/wot/globalmap/seasonratingneighbors

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. To get a clan ID, use the Clans method. Min value is 1.

seasonId:

Season ID. To get a season ID, use the Seasons method.

vehicleLevel:

Vehicle Tier. Valid values:

"6" - Vehicles of Tier 6
"8" - Vehicles of Tier 8
"10" - Vehicles of Tier 10

func (*WotService) GlobalmapSeasons

func (service *WotService) GlobalmapSeasons(ctx context.Context, realm Realm, options *wot.GlobalmapSeasonsOptions) ([]*wot.GlobalmapSeasons, *GenericMeta, error)

GlobalmapSeasons returns information about seasons.

https://developers.wargaming.net/reference/all/wot/globalmap/seasons

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) RatingsAccounts deprecated

func (service *WotService) RatingsAccounts(ctx context.Context, realm Realm, accountId []int, typ string, options *wot.RatingsAccountsOptions) (*wot.RatingsAccounts, error)

RatingsAccounts returns player ratings by specified IDs.

https://developers.wargaming.net/reference/all/wot/ratings/accounts

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

IDs of player accounts. Maximum limit: 100.

typ:

Rating period. For valid values, check the Types of ratings method.

func (*WotService) RatingsDates deprecated

func (service *WotService) RatingsDates(ctx context.Context, realm Realm, typ string, options *wot.RatingsDatesOptions) (*wot.RatingsDates, error)

RatingsDates returns dates with available rating data.

https://developers.wargaming.net/reference/all/wot/ratings/dates

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

typ:

Rating period. For valid values, check the Types of ratings method.

func (*WotService) RatingsNeighbors deprecated

func (service *WotService) RatingsNeighbors(ctx context.Context, realm Realm, accountId int, rankField string, typ string, options *wot.RatingsNeighborsOptions) (*wot.RatingsNeighbors, error)

RatingsNeighbors returns list of adjacent positions in specified rating.

https://developers.wargaming.net/reference/all/wot/ratings/neighbors

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID

rankField:

Rating category

typ:

Rating period. For valid values, check the Types of ratings method.

func (*WotService) RatingsTop deprecated

func (service *WotService) RatingsTop(ctx context.Context, realm Realm, rankField string, typ string, options *wot.RatingsTopOptions) (*wot.RatingsTop, error)

RatingsTop returns list of top players by specified parameter.

https://developers.wargaming.net/reference/all/wot/ratings/top

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

rankField:

Rating category

typ:

Rating period. For valid values, check the Types of ratings method.

func (*WotService) RatingsTypes deprecated

func (service *WotService) RatingsTypes(ctx context.Context, realm Realm, options *wot.RatingsTypesOptions) (*wot.RatingsTypes, error)

RatingsTypes returns dictionary of rating periods and ratings details.

https://developers.wargaming.net/reference/all/wot/ratings/types

Deprecated: Attention! The method is deprecated.

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotService) StrongholdActivateclanreserve

func (service *WotService) StrongholdActivateclanreserve(ctx context.Context, realm Realm, accessToken string, reserveLevel int, reserveType string, options *wot.StrongholdActivateclanreserveOptions) (*wot.StrongholdActivateclanreserve, error)

StrongholdActivateclanreserve This method activates an available clan Reserve. A clan Reserve can be activated only by a clan member with the required permission.

https://developers.wargaming.net/reference/all/wot/stronghold/activateclanreserve

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

reserveLevel:

Level of clan Reserve to be activated

reserveType:

Type of clan Reserve to be activated

func (*WotService) StrongholdClaninfo

func (service *WotService) StrongholdClaninfo(ctx context.Context, realm Realm, clanId []int, options *wot.StrongholdClaninfoOptions) (*wot.StrongholdClaninfo, *GenericMeta, error)

StrongholdClaninfo returns general information and the battle statistics of clans in the Stronghold mode. Please note that information about the number of battles fought as well as the number of defeats and victories is updated once every 24 hours.

https://developers.wargaming.net/reference/all/wot/stronghold/claninfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. To get a clan ID, use the Clans method. Maximum limit: 10.

func (*WotService) StrongholdClanreserves

func (service *WotService) StrongholdClanreserves(ctx context.Context, realm Realm, accessToken string, options *wot.StrongholdClanreservesOptions) ([]*wot.StrongholdClanreserves, error)

StrongholdClanreserves returns information about available Reserves and their current status.

https://developers.wargaming.net/reference/all/wot/stronghold/clanreserves

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

func (*WotService) TanksAchievements

func (service *WotService) TanksAchievements(ctx context.Context, realm Realm, accountId int, options *wot.TanksAchievementsOptions) (*wot.TanksAchievements, *GenericMeta, error)

TanksAchievements returns list of achievements on all player's vehicles. Achievement properties define the achievements field values:

1-4 for Mastery Badges and Stage Achievements (type: "class"); maximum value of Achievement series (type: "series"); number of achievements earned from sections: Battle Hero, Epic Achievements, Group Achievements, Special Achievements, etc. (type: "repeatable, single, custom").

https://developers.wargaming.net/reference/all/wot/tanks/achievements

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID

func (*WotService) TanksMastery

func (service *WotService) TanksMastery(ctx context.Context, realm Realm, distribution string, percentile []int, options *wot.TanksMasteryOptions) (*wot.TanksMastery, *GenericMeta, error)

TanksMastery The method returns percentiles of the distribution of average damage or experience values for each piece of equipment

https://developers.wargaming.net/reference/all/wot/tanks/mastery

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

distribution:

Type of data. Valid values:

"damage" - Use damage distribution
"xp" - Use a distribution based on experience

percentile:

A list of percentiles to be included in the response. Maximum limit: 10. Min value is 1. Maximum value: 100.

func (*WotService) TanksStats

func (service *WotService) TanksStats(ctx context.Context, realm Realm, accountId int, options *wot.TanksStatsOptions) (*wot.TanksStats, *GenericMeta, error)

TanksStats returns overall statistics, Tank Company statistics, and clan statistics per each vehicle for each user.

https://developers.wargaming.net/reference/all/wot/tanks/stats

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID

type WotbService

type WotbService service

WotbService World Of Tanks Blitz service.

func (*WotbService) AccountAchievements

func (service *WotbService) AccountAchievements(ctx context.Context, realm Realm, accountId []int, options *wotb.AccountAchievementsOptions) (*wotb.AccountAchievements, *GenericMeta, error)

AccountAchievements returns players' achievement details.

https://developers.wargaming.net/reference/all/wotb/account/achievements

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

func (*WotbService) AccountInfo

func (service *WotbService) AccountInfo(ctx context.Context, realm Realm, accountId []int, options *wotb.AccountInfoOptions) (*wotb.AccountInfo, *GenericMeta, error)

AccountInfo returns player details.

https://developers.wargaming.net/reference/all/wotb/account/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

func (*WotbService) AccountList

func (service *WotbService) AccountList(ctx context.Context, realm Realm, search string, options *wotb.AccountListOptions) ([]*wotb.AccountList, *GenericMeta, error)

AccountList returns partial list of players. The list is filtered by initial characters of user name and sorted alphabetically.

https://developers.wargaming.net/reference/all/wotb/account/list

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

search:

Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.

func (*WotbService) AccountTankstats

func (service *WotbService) AccountTankstats(ctx context.Context, realm Realm, accountId []int, tankId int, options *wotb.AccountTankstatsOptions) (*wotb.AccountTankstats, *GenericMeta, error)

AccountTankstats returns players' statistics on the vehicle.

https://developers.wargaming.net/reference/all/wotb/account/tankstats

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

tankId:

Player's vehicle ID

func (*WotbService) ClanmessagesCreate

func (service *WotbService) ClanmessagesCreate(ctx context.Context, realm Realm, accessToken string, expiresAt wgnTime.UnixTime, importance string, text string, title string, typ string) (*wotb.ClanmessagesCreate, error)

ClanmessagesCreate creates a message on clan message board.

https://developers.wargaming.net/reference/all/wotb/clanmessages/create

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

expiresAt:

Date when message will become irrelevant. Date in UNIX timestamp or ISO 8601 format. E.g.: 1376542800 or 2013-08-15T00:00:00. Date must be in the future.

importance:

Message importance. Valid values:

"important" - Important messages
"standard" - Standard messages

text:

Message text. Max. length: 1000. Maximum length: 1000.

title:

Message title. Max. length: 100. Maximum length: 100.

typ:

Message type. Valid values:

"general" - General messages
"training" - Training messages
"meeting" - Meeting messages
"battle" - Battle messages

func (*WotbService) ClanmessagesDelete

func (service *WotbService) ClanmessagesDelete(ctx context.Context, realm Realm, accessToken string, messageId int) error

ClanmessagesDelete removes a message on clan message board.

https://developers.wargaming.net/reference/all/wotb/clanmessages/delete

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

messageId:

Message ID

func (*WotbService) ClanmessagesLike

func (service *WotbService) ClanmessagesLike(ctx context.Context, realm Realm, accessToken string, action string, messageId int) error

ClanmessagesLike likes or unlikes a message on clan message board.

https://developers.wargaming.net/reference/all/wotb/clanmessages/like

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

action:

Action. Valid values:

"add" - Set a like for message
"remove" - Remove a like for message

messageId:

Message ID

func (*WotbService) ClanmessagesLikes

func (service *WotbService) ClanmessagesLikes(ctx context.Context, realm Realm, accessToken string, messageId []int, options *wotb.ClanmessagesLikesOptions) ([]*wotb.ClanmessagesLikes, error)

ClanmessagesLikes returns message likes on clan message board.

https://developers.wargaming.net/reference/all/wotb/clanmessages/likes

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

messageId:

Message ID. Maximum limit: 10.

func (*WotbService) ClanmessagesMessages

func (service *WotbService) ClanmessagesMessages(ctx context.Context, realm Realm, accessToken string, options *wotb.ClanmessagesMessagesOptions) (map[string][]*wotb.ClanmessagesMessages, error)

ClanmessagesMessages returns messages of clan message board. If a single message requested by ID, all filters are ignored and total equals null.

https://developers.wargaming.net/reference/all/wotb/clanmessages/messages

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

func (*WotbService) ClanmessagesUpdate

func (service *WotbService) ClanmessagesUpdate(ctx context.Context, realm Realm, accessToken string, messageId int, options *wotb.ClanmessagesUpdateOptions) (*wotb.ClanmessagesUpdate, error)

ClanmessagesUpdate updates a message on clan message board. At least one changed parameter should be specified.

https://developers.wargaming.net/reference/all/wotb/clanmessages/update

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

messageId:

Message ID

func (*WotbService) ClansAccountinfo

func (service *WotbService) ClansAccountinfo(ctx context.Context, realm Realm, accountId []int, options *wotb.ClansAccountinfoOptions) (*wotb.ClansAccountinfo, *GenericMeta, error)

ClansAccountinfo returns player clan data. Player clan data exist only for accounts, that were participating in clan activities: sent join requests, were clan members etc.

https://developers.wargaming.net/reference/all/wotb/clans/accountinfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Account ID. Maximum limit: 100. Min value is 1.

func (*WotbService) ClansGlossary

func (service *WotbService) ClansGlossary(ctx context.Context, realm Realm, options *wotb.ClansGlossaryOptions) (*wotb.ClansGlossary, error)

ClansGlossary returns information on clan entities.

https://developers.wargaming.net/reference/all/wotb/clans/glossary

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) ClansInfo

func (service *WotbService) ClansInfo(ctx context.Context, realm Realm, clanId []int, options *wotb.ClansInfoOptions) (*wotb.ClansInfo, *GenericMeta, error)

ClansInfo returns detailed clan information.

https://developers.wargaming.net/reference/all/wotb/clans/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. Maximum limit: 100. Min value is 1.

func (*WotbService) ClansList

func (service *WotbService) ClansList(ctx context.Context, realm Realm, options *wotb.ClansListOptions) ([]*wotb.ClansList, *GenericMeta, error)

ClansList searches through clans and sorts them in a specified order.

https://developers.wargaming.net/reference/all/wotb/clans/list

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) EncyclopediaAchievements

func (service *WotbService) EncyclopediaAchievements(ctx context.Context, realm Realm, options *wotb.EncyclopediaAchievementsOptions) (*wotb.EncyclopediaAchievements, *GenericMeta, error)

EncyclopediaAchievements returns information about achievements.

https://developers.wargaming.net/reference/all/wotb/encyclopedia/achievements

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) EncyclopediaCrewskills

func (service *WotbService) EncyclopediaCrewskills(ctx context.Context, realm Realm, options *wotb.EncyclopediaCrewskillsOptions) (*wotb.EncyclopediaCrewskills, error)

EncyclopediaCrewskills returns information about crew skills.

https://developers.wargaming.net/reference/all/wotb/encyclopedia/crewskills

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) EncyclopediaInfo

func (service *WotbService) EncyclopediaInfo(ctx context.Context, realm Realm, options *wotb.EncyclopediaInfoOptions) (*wotb.EncyclopediaInfo, error)

EncyclopediaInfo returns information about Tankopedia.

https://developers.wargaming.net/reference/all/wotb/encyclopedia/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) EncyclopediaModules

func (service *WotbService) EncyclopediaModules(ctx context.Context, realm Realm, options *wotb.EncyclopediaModulesOptions) (*wotb.EncyclopediaModules, error)

EncyclopediaModules returns list of available modules, such as guns, engines, etc.

https://developers.wargaming.net/reference/all/wotb/encyclopedia/modules

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) EncyclopediaProvisions

func (service *WotbService) EncyclopediaProvisions(ctx context.Context, realm Realm, options *wotb.EncyclopediaProvisionsOptions) (*wotb.EncyclopediaProvisions, *GenericMeta, error)

EncyclopediaProvisions returns list of available equipment and consumables.

https://developers.wargaming.net/reference/all/wotb/encyclopedia/provisions

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) EncyclopediaVehicleprofile

func (service *WotbService) EncyclopediaVehicleprofile(ctx context.Context, realm Realm, tankId int, options *wotb.EncyclopediaVehicleprofileOptions) (*wotb.EncyclopediaVehicleprofile, *GenericMeta, error)

EncyclopediaVehicleprofile returns vehicle configuration characteristics based on the specified module IDs.

https://developers.wargaming.net/reference/all/wotb/encyclopedia/vehicleprofile

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tankId:

Vehicle ID

func (*WotbService) EncyclopediaVehicleprofiles

func (service *WotbService) EncyclopediaVehicleprofiles(ctx context.Context, realm Realm, tankId []int, options *wotb.EncyclopediaVehicleprofilesOptions) (*wotb.EncyclopediaVehicleprofiles, *GenericMeta, error)

EncyclopediaVehicleprofiles returns vehicle configuration characteristics.

https://developers.wargaming.net/reference/all/wotb/encyclopedia/vehicleprofiles

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tankId:

Vehicle ID. Maximum limit: 25.

func (*WotbService) EncyclopediaVehicles

func (service *WotbService) EncyclopediaVehicles(ctx context.Context, realm Realm, options *wotb.EncyclopediaVehiclesOptions) (*wotb.EncyclopediaVehicles, *GenericMeta, error)

EncyclopediaVehicles returns list of available vehicles.

https://developers.wargaming.net/reference/all/wotb/encyclopedia/vehicles

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) TanksAchievements

func (service *WotbService) TanksAchievements(ctx context.Context, realm Realm, accountId int, options *wotb.TanksAchievementsOptions) (*wotb.TanksAchievements, *GenericMeta, error)

TanksAchievements returns list of player's achievements on all vehicles.

https://developers.wargaming.net/reference/all/wotb/tanks/achievements

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID

func (*WotbService) TanksStats

func (service *WotbService) TanksStats(ctx context.Context, realm Realm, accountId int, options *wotb.TanksStatsOptions) (*wotb.TanksStats, *GenericMeta, error)

TanksStats returns general statistics for each vehicle of each player.

https://developers.wargaming.net/reference/all/wotb/tanks/stats

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID

func (*WotbService) TournamentsInfo

func (service *WotbService) TournamentsInfo(ctx context.Context, realm Realm, tournamentId []int, options *wotb.TournamentsInfoOptions) (*wotb.TournamentsInfo, *GenericMeta, error)

TournamentsInfo returns detailed information on the specified tournament.

https://developers.wargaming.net/reference/all/wotb/tournaments/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tournamentId:

Tournament ID that can be retrieved from the Tournaments list method. Maximum limit: 25.

func (*WotbService) TournamentsList

func (service *WotbService) TournamentsList(ctx context.Context, realm Realm, options *wotb.TournamentsListOptions) ([]*wotb.TournamentsList, *GenericMeta, error)

TournamentsList returns list of tournaments.

https://developers.wargaming.net/reference/all/wotb/tournaments/list

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WotbService) TournamentsMatches

func (service *WotbService) TournamentsMatches(ctx context.Context, realm Realm, stageId int, tournamentId int, options *wotb.TournamentsMatchesOptions) (*wotb.TournamentsMatches, error)

TournamentsMatches returns information about matches of a particular tournament and stage.

https://developers.wargaming.net/reference/all/wotb/tournaments/matches

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

stageId:

Stage ID that can be retrieved from the Tournaments Stages method.

tournamentId:

Tournament ID that can be retrieved from the Tournaments list method.

func (*WotbService) TournamentsStages

func (service *WotbService) TournamentsStages(ctx context.Context, realm Realm, tournamentId int, options *wotb.TournamentsStagesOptions) ([]*wotb.TournamentsStages, *GenericMeta, error)

TournamentsStages returns list of stages in specified tournament.

https://developers.wargaming.net/reference/all/wotb/tournaments/stages

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tournamentId:

Tournament ID that can be retrieved from the Tournaments list method.

func (*WotbService) TournamentsStandings

func (service *WotbService) TournamentsStandings(ctx context.Context, realm Realm, tournamentId int, options *wotb.TournamentsStandingsOptions) ([]*wotb.TournamentsStandings, error)

TournamentsStandings returns tournament results of each team.

https://developers.wargaming.net/reference/all/wotb/tournaments/standings

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tournamentId:

Tournament ID that can be retrieved from the Tournaments list method.

func (*WotbService) TournamentsTables

func (service *WotbService) TournamentsTables(ctx context.Context, realm Realm, stageId int, tournamentId int, options *wotb.TournamentsTablesOptions) ([]*wotb.TournamentsTables, error)

TournamentsTables returns tournament brackets.

https://developers.wargaming.net/reference/all/wotb/tournaments/tables

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

stageId:

Stage ID that can be retrieved from the Tournaments Stages method.

tournamentId:

Tournament ID that can be retrieved from the Tournaments list method.

func (*WotbService) TournamentsTeams

func (service *WotbService) TournamentsTeams(ctx context.Context, realm Realm, tournamentId int, options *wotb.TournamentsTeamsOptions) ([]*wotb.TournamentsTeams, *GenericMeta, error)

TournamentsTeams returns list of teams in tournament.

https://developers.wargaming.net/reference/all/wotb/tournaments/teams

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

tournamentId:

Tournament ID that can be retrieved from the Tournaments list method.

type WotxService

type WotxService service

WotxService World Of Tanks Console service.

func (*WotxService) AccountAchievements

func (service *WotxService) AccountAchievements(ctx context.Context, realm Realm, accountId []int, options *wotx.AccountAchievementsOptions) (*wotx.AccountAchievements, *GenericMeta, error)

AccountAchievements returns players' achievement details. Achievement properties define the achievements field values

1-4 for Mastery Badges and Stage Achievements (type: "class"); maximum value of Achievement series (type: "series"); number of achievements earned from sections: Battle Hero, Epic Achievements, Group Achievements, Special Achievements, etc. (type: "repeatable, single, custom").

https://developers.wargaming.net/reference/all/wotx/account/achievements

realm:

Valid realms: RealmWgcb

accountId:

Player account ID. Maximum limit: 100.

func (*WotxService) AccountInfo

func (service *WotxService) AccountInfo(ctx context.Context, realm Realm, accountId []int, options *wotx.AccountInfoOptions) (*wotx.AccountInfo, *GenericMeta, error)

AccountInfo returns player details.

https://developers.wargaming.net/reference/all/wotx/account/info

realm:

Valid realms: RealmWgcb

accountId:

Player account ID. Maximum limit: 100.

func (*WotxService) AccountList

func (service *WotxService) AccountList(ctx context.Context, realm Realm, search string, options *wotx.AccountListOptions) ([]*wotx.AccountList, *GenericMeta, error)

AccountList returns partial list of players. The list is filtered by initial characters of user name and sorted alphabetically.

https://developers.wargaming.net/reference/all/wotx/account/list

realm:

Valid realms: RealmWgcb

search:

Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.

func (*WotxService) AccountPsninfo

func (service *WotxService) AccountPsninfo(ctx context.Context, realm Realm, psnid []string) ([]*wotx.AccountPsninfo, error)

AccountPsninfo returns player data based on Play Station UID

https://developers.wargaming.net/reference/all/wotx/account/psninfo

realm:

Valid realms: RealmWgcb

psnid:

Play Station UID. Maximum limit: 100.

func (*WotxService) AccountXuidinfo

func (service *WotxService) AccountXuidinfo(ctx context.Context, realm Realm, xuid []int) ([]*wotx.AccountXuidinfo, error)

AccountXuidinfo returns player details based on the player Microsoft XUID.

https://developers.wargaming.net/reference/all/wotx/account/xuidinfo

realm:

Valid realms: RealmWgcb

xuid:

Player Microsoft XUID. Maximum limit: 100.

func (*WotxService) AuthLogin

func (service *WotxService) AuthLogin(ctx context.Context, realm Realm, options *wotx.AuthLoginOptions) (*wotx.AuthLogin, error)

AuthLogin authenticates user based on PlayStation Network ID which is used in World of Tanks PlayStation 4. To log in, player must enter PlayStation Network ID and password. Information on authorization status is sent to URL specified in redirect_uri parameter. If authentication is successful, the following parameters are sent to redirect_uri:

status: ok - successful authentication access_token - access token is passed in to all methods that require authentication expires_at - expiration date of access_token account_id - user ID nickname - user name psn_access_token - PlayStation Network access token psn_access_token_expires_at - expiration date of psn_access_token.

If authentication fails, the following parameters are sent to redirect_uri:

status: error - authentication error code - error code message - error message.

https://developers.wargaming.net/reference/all/wotx/auth/login

realm:

Valid realms: RealmWgcb

func (*WotxService) AuthLogout

func (service *WotxService) AuthLogout(ctx context.Context, realm Realm, accessToken string) error

AuthLogout deletes user's access_token. After this method is called, access_token becomes invalid.

https://developers.wargaming.net/reference/all/wotx/auth/logout

realm:

Valid realms: RealmWgcb

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

func (*WotxService) AuthProlongate

func (service *WotxService) AuthProlongate(ctx context.Context, realm Realm, accessToken string, options *wotx.AuthProlongateOptions) (*wotx.AuthProlongate, error)

AuthProlongate generates new access_token based on the current token. This method is used when the player is still using the application but the current access_token is about to expire.

https://developers.wargaming.net/reference/all/wotx/auth/prolongate

realm:

Valid realms: RealmWgcb

accessToken:

Access token for the private data of a user's account; can be received via the authorization method; valid within a stated time period

func (*WotxService) ClansAccountinfo

func (service *WotxService) ClansAccountinfo(ctx context.Context, realm Realm, accountId []int, options *wotx.ClansAccountinfoOptions) (*wotx.ClansAccountinfo, *GenericMeta, error)

ClansAccountinfo returns player clan data. Player clan data exist only for accounts, that were clan members at least once.

https://developers.wargaming.net/reference/all/wotx/clans/accountinfo

realm:

Valid realms: RealmWgcb

accountId:

Account ID. Maximum limit: 100. Min value is 1.

func (*WotxService) ClansGlossary

func (service *WotxService) ClansGlossary(ctx context.Context, realm Realm, options *wotx.ClansGlossaryOptions) (*wotx.ClansGlossary, error)

ClansGlossary returns general information about clans.

https://developers.wargaming.net/reference/all/wotx/clans/glossary

realm:

Valid realms: RealmWgcb

func (*WotxService) ClansInfo

func (service *WotxService) ClansInfo(ctx context.Context, realm Realm, clanId []int, options *wotx.ClansInfoOptions) (*wotx.ClansInfo, *GenericMeta, error)

ClansInfo returns detailed clan information.

https://developers.wargaming.net/reference/all/wotx/clans/info

realm:

Valid realms: RealmWgcb

clanId:

Clan ID. Maximum limit: 100. Min value is 1.

func (*WotxService) ClansList

func (service *WotxService) ClansList(ctx context.Context, realm Realm, options *wotx.ClansListOptions) ([]*wotx.ClansList, *GenericMeta, error)

ClansList returns partial list of clans in alphabetical order by clan name or tag.

https://developers.wargaming.net/reference/all/wotx/clans/list

realm:

Valid realms: RealmWgcb

func (*WotxService) EncyclopediaAchievements

func (service *WotxService) EncyclopediaAchievements(ctx context.Context, realm Realm, options *wotx.EncyclopediaAchievementsOptions) (*wotx.EncyclopediaAchievements, *GenericMeta, error)

EncyclopediaAchievements returns list of awards, medals, ribbons.

https://developers.wargaming.net/reference/all/wotx/encyclopedia/achievements

realm:

Valid realms: RealmWgcb

func (*WotxService) EncyclopediaArenas

func (service *WotxService) EncyclopediaArenas(ctx context.Context, realm Realm, options *wotx.EncyclopediaArenasOptions) (*wotx.EncyclopediaArenas, *GenericMeta, error)

EncyclopediaArenas returns information about maps.

https://developers.wargaming.net/reference/all/wotx/encyclopedia/arenas

realm:

Valid realms: RealmWgcb

func (*WotxService) EncyclopediaCrewroles

func (service *WotxService) EncyclopediaCrewroles(ctx context.Context, realm Realm, options *wotx.EncyclopediaCrewrolesOptions) (*wotx.EncyclopediaCrewroles, *GenericMeta, error)

EncyclopediaCrewroles returns information about crews.

https://developers.wargaming.net/reference/all/wotx/encyclopedia/crewroles

realm:

Valid realms: RealmWgcb

func (*WotxService) EncyclopediaInfo

func (service *WotxService) EncyclopediaInfo(ctx context.Context, realm Realm, options *wotx.EncyclopediaInfoOptions) (*wotx.EncyclopediaInfo, error)

EncyclopediaInfo returns information about Tankopedia.

https://developers.wargaming.net/reference/all/wotx/encyclopedia/info

realm:

Valid realms: RealmWgcb

func (*WotxService) EncyclopediaModules

func (service *WotxService) EncyclopediaModules(ctx context.Context, realm Realm, options *wotx.EncyclopediaModulesOptions) (*wotx.EncyclopediaModules, *GenericMeta, error)

EncyclopediaModules returns list of available modules that can be installed on vehicles, such as engines, turrets, etc. At least one input filter parameter (module ID, type) is required to be indicated.

https://developers.wargaming.net/reference/all/wotx/encyclopedia/modules

realm:

Valid realms: RealmWgcb

func (*WotxService) EncyclopediaVehicleprofile

func (service *WotxService) EncyclopediaVehicleprofile(ctx context.Context, realm Realm, tankId int, options *wotx.EncyclopediaVehicleprofileOptions) (*wotx.EncyclopediaVehicleprofile, *GenericMeta, error)

EncyclopediaVehicleprofile returns vehicle configuration characteristics based on the specified module IDs.

https://developers.wargaming.net/reference/all/wotx/encyclopedia/vehicleprofile

realm:

Valid realms: RealmWgcb

tankId:

Vehicle ID

func (*WotxService) EncyclopediaVehicles

func (service *WotxService) EncyclopediaVehicles(ctx context.Context, realm Realm, options *wotx.EncyclopediaVehiclesOptions) (*wotx.EncyclopediaVehicles, *GenericMeta, error)

EncyclopediaVehicles returns list of available vehicles.

https://developers.wargaming.net/reference/all/wotx/encyclopedia/vehicles

realm:

Valid realms: RealmWgcb

func (*WotxService) EncyclopediaVehicleupgrades

func (service *WotxService) EncyclopediaVehicleupgrades(ctx context.Context, realm Realm, tankId []int, options *wotx.EncyclopediaVehicleupgradesOptions) (*wotx.EncyclopediaVehicleupgrades, *GenericMeta, error)

EncyclopediaVehicleupgrades returns list of vehicle equipment and consumables.

https://developers.wargaming.net/reference/all/wotx/encyclopedia/vehicleupgrades

realm:

Valid realms: RealmWgcb

tankId:

Vehicle ID. Maximum limit: 100.

func (*WotxService) TanksAchievements

func (service *WotxService) TanksAchievements(ctx context.Context, realm Realm, accountId int, options *wotx.TanksAchievementsOptions) (*wotx.TanksAchievements, *GenericMeta, error)

TanksAchievements returns players' achievement details. Achievement properties define the achievements field values

1-4 for Mastery Badges and Stage Achievements (type: "class"); maximum value of Achievement series (type: "series"); number of achievements earned from sections: Battle Hero, Epic Achievements, Group Achievements, Special Achievements, etc. (type: "repeatable, single, custom").

https://developers.wargaming.net/reference/all/wotx/tanks/achievements

realm:

Valid realms: RealmWgcb

accountId:

Player account ID. Min value is 0.

func (*WotxService) TanksStats

func (service *WotxService) TanksStats(ctx context.Context, realm Realm, accountId int, options *wotx.TanksStatsOptions) (*wotx.TanksStats, *GenericMeta, error)

TanksStats returns overall statistics, Tank Company statistics, and clan statistics per each vehicle for each user.

https://developers.wargaming.net/reference/all/wotx/tanks/stats

realm:

Valid realms: RealmWgcb

accountId:

Player account ID. Min value is 0.

type WowpService

type WowpService service

WowpService World Of Warplanes service.

func (*WowpService) AccountAchievements

func (service *WowpService) AccountAchievements(ctx context.Context, realm Realm, accountId []int, options *wowp.AccountAchievementsOptions) (*wowp.AccountAchievements, *GenericMeta, error)

AccountAchievements returns players' achievement details.

https://developers.wargaming.net/reference/all/wowp/account/achievements

realm:

Valid realms: RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

func (*WowpService) AccountInfo2

func (service *WowpService) AccountInfo2(ctx context.Context, realm Realm, accountId []int, options *wowp.AccountInfo2Options) (*wowp.AccountInfo2, *GenericMeta, error)

AccountInfo2 returns player details.

https://developers.wargaming.net/reference/all/wowp/account/info2

realm:

Valid realms: RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

func (*WowpService) AccountList

func (service *WowpService) AccountList(ctx context.Context, realm Realm, search string, options *wowp.AccountListOptions) ([]*wowp.AccountList, *GenericMeta, error)

AccountList returns partial list of players. The list is filtered by initial characters of user name and sorted alphabetically.

https://developers.wargaming.net/reference/all/wowp/account/list

realm:

Valid realms: RealmEu, RealmNa

search:

Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.

func (*WowpService) ClansAccountinfo

func (service *WowpService) ClansAccountinfo(ctx context.Context, realm Realm, accountId []int, options *wowp.ClansAccountinfoOptions) (*wowp.ClansAccountinfo, *GenericMeta, error)

ClansAccountinfo returns player clan data. Player clan data exist only for accounts, that were participating in clan activities: sent join requests, were clan members etc.

https://developers.wargaming.net/reference/all/wowp/clans/accountinfo

realm:

Valid realms: RealmEu, RealmNa

accountId:

Account ID. Maximum limit: 100. Min value is 1.

func (*WowpService) ClansGlossary

func (service *WowpService) ClansGlossary(ctx context.Context, realm Realm, options *wowp.ClansGlossaryOptions) (*wowp.ClansGlossary, error)

ClansGlossary returns information on clan entities.

https://developers.wargaming.net/reference/all/wowp/clans/glossary

realm:

Valid realms: RealmEu, RealmNa

func (*WowpService) ClansInfo

func (service *WowpService) ClansInfo(ctx context.Context, realm Realm, clanId []int, options *wowp.ClansInfoOptions) (*wowp.ClansInfo, *GenericMeta, error)

ClansInfo returns detailed clan information.

https://developers.wargaming.net/reference/all/wowp/clans/info

realm:

Valid realms: RealmEu, RealmNa

clanId:

Clan ID. Maximum limit: 100. Min value is 1.

func (*WowpService) ClansList

func (service *WowpService) ClansList(ctx context.Context, realm Realm, options *wowp.ClansListOptions) ([]*wowp.ClansList, *GenericMeta, error)

ClansList searches through clans and sorts them in a specified order.

https://developers.wargaming.net/reference/all/wowp/clans/list

realm:

Valid realms: RealmEu, RealmNa

func (*WowpService) EncyclopediaAchievements

func (service *WowpService) EncyclopediaAchievements(ctx context.Context, realm Realm, options *wowp.EncyclopediaAchievementsOptions) (*wowp.EncyclopediaAchievements, *GenericMeta, error)

EncyclopediaAchievements returns dictionary of achievements from Encyclopedia.

https://developers.wargaming.net/reference/all/wowp/encyclopedia/achievements

realm:

Valid realms: RealmEu, RealmNa

func (*WowpService) EncyclopediaInfo

func (service *WowpService) EncyclopediaInfo(ctx context.Context, realm Realm) (*wowp.EncyclopediaInfo, *GenericMeta, error)

EncyclopediaInfo returns information about Encyclopedia.

https://developers.wargaming.net/reference/all/wowp/encyclopedia/info

realm:

Valid realms: RealmEu, RealmNa

func (*WowpService) EncyclopediaPlaneinfo

func (service *WowpService) EncyclopediaPlaneinfo(ctx context.Context, realm Realm, planeId []int, options *wowp.EncyclopediaPlaneinfoOptions) (*wowp.EncyclopediaPlaneinfo, *GenericMeta, error)

EncyclopediaPlaneinfo returns aircraft details from Encyclopedia.

https://developers.wargaming.net/reference/all/wowp/encyclopedia/planeinfo

realm:

Valid realms: RealmEu, RealmNa

planeId:

Aircraft ID. Maximum limit: 1000.

func (*WowpService) EncyclopediaPlanemodules

func (service *WowpService) EncyclopediaPlanemodules(ctx context.Context, realm Realm, planeId []int, options *wowp.EncyclopediaPlanemodulesOptions) (*wowp.EncyclopediaPlanemodules, *GenericMeta, error)

EncyclopediaPlanemodules returns information from Encyclopedia about modules available for specified aircrafts.

https://developers.wargaming.net/reference/all/wowp/encyclopedia/planemodules

realm:

Valid realms: RealmEu, RealmNa

planeId:

Aircraft ID. Maximum limit: 1000.

func (*WowpService) EncyclopediaPlanes

func (service *WowpService) EncyclopediaPlanes(ctx context.Context, realm Realm, options *wowp.EncyclopediaPlanesOptions) (*wowp.EncyclopediaPlanes, *GenericMeta, error)

EncyclopediaPlanes returns list of all aircrafts from Encyclopedia.

https://developers.wargaming.net/reference/all/wowp/encyclopedia/planes

realm:

Valid realms: RealmEu, RealmNa

func (*WowpService) EncyclopediaPlanespecification

func (service *WowpService) EncyclopediaPlanespecification(ctx context.Context, realm Realm, planeId int, options *wowp.EncyclopediaPlanespecificationOptions) (*wowp.EncyclopediaPlanespecification, *GenericMeta, error)

EncyclopediaPlanespecification returns information from Encyclopedia about aircraft specifications depending on installed modules.

https://developers.wargaming.net/reference/all/wowp/encyclopedia/planespecification

realm:

Valid realms: RealmEu, RealmNa

planeId:

Aircraft ID

func (*WowpService) EncyclopediaPlaneupgrades

func (service *WowpService) EncyclopediaPlaneupgrades(ctx context.Context, realm Realm, planeId []int, options *wowp.EncyclopediaPlaneupgradesOptions) (*wowp.EncyclopediaPlaneupgrades, *GenericMeta, error)

EncyclopediaPlaneupgrades returns information from Encyclopedia about slots of aircrafts and lists of modules which are compatible with specified slots.

https://developers.wargaming.net/reference/all/wowp/encyclopedia/planeupgrades

realm:

Valid realms: RealmEu, RealmNa

planeId:

Aircraft ID. Maximum limit: 100.

func (*WowpService) PlanesAchievements

func (service *WowpService) PlanesAchievements(ctx context.Context, realm Realm, accountId int, options *wowp.PlanesAchievementsOptions) (*wowp.PlanesAchievements, *GenericMeta, error)

PlanesAchievements returns achievements on player's aircraft.

https://developers.wargaming.net/reference/all/wowp/planes/achievements

realm:

Valid realms: RealmEu, RealmNa

accountId:

Player account ID

func (*WowpService) PlanesStats

func (service *WowpService) PlanesStats(ctx context.Context, realm Realm, accountId int, options *wowp.PlanesStatsOptions) (*wowp.PlanesStats, *GenericMeta, error)

PlanesStats returns statistics on player's aircraft.

https://developers.wargaming.net/reference/all/wowp/planes/stats

realm:

Valid realms: RealmEu, RealmNa

accountId:

Player account ID

func (*WowpService) RatingsAccounts

func (service *WowpService) RatingsAccounts(ctx context.Context, realm Realm, accountId []int, typ string, options *wowp.RatingsAccountsOptions) (*wowp.RatingsAccounts, *GenericMeta, error)

RatingsAccounts returns player ratings by specified IDs.

https://developers.wargaming.net/reference/all/wowp/ratings/accounts

realm:

Valid realms: RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100.

typ:

Rating period. For valid values, check the Types of ratings method.

func (*WowpService) RatingsDates

func (service *WowpService) RatingsDates(ctx context.Context, realm Realm, typ string, options *wowp.RatingsDatesOptions) (*wowp.RatingsDates, *GenericMeta, error)

RatingsDates returns dates with available rating data.

https://developers.wargaming.net/reference/all/wowp/ratings/dates

realm:

Valid realms: RealmEu, RealmNa

typ:

Rating period. For valid values, check the Types of ratings method.

func (*WowpService) RatingsNeighbors

func (service *WowpService) RatingsNeighbors(ctx context.Context, realm Realm, accountId int, rankField string, typ string, options *wowp.RatingsNeighborsOptions) ([]*wowp.RatingsNeighbors, *GenericMeta, error)

RatingsNeighbors returns list of adjacent positions in specified rating.

https://developers.wargaming.net/reference/all/wowp/ratings/neighbors

realm:

Valid realms: RealmEu, RealmNa

accountId:

Player account ID

rankField:

Rating category

typ:

Rating period. For valid values, check the Types of ratings method.

func (*WowpService) RatingsTop

func (service *WowpService) RatingsTop(ctx context.Context, realm Realm, rankField string, typ string, options *wowp.RatingsTopOptions) ([]*wowp.RatingsTop, *GenericMeta, error)

RatingsTop returns list of top players by specified parameter.

https://developers.wargaming.net/reference/all/wowp/ratings/top

realm:

Valid realms: RealmEu, RealmNa

rankField:

Rating category

typ:

Rating period. For valid values, check the Types of ratings method.

func (*WowpService) RatingsTypes

func (service *WowpService) RatingsTypes(ctx context.Context, realm Realm, options *wowp.RatingsTypesOptions) (*wowp.RatingsTypes, *GenericMeta, error)

RatingsTypes returns dictionary of rating periods and ratings details.

https://developers.wargaming.net/reference/all/wowp/ratings/types

realm:

Valid realms: RealmEu, RealmNa

type WowsService

type WowsService service

WowsService World Of Warships service.

func (*WowsService) AccountAchievements

func (service *WowsService) AccountAchievements(ctx context.Context, realm Realm, accountId []int, options *wows.AccountAchievementsOptions) (*wows.AccountAchievements, *GenericMeta, error)

AccountAchievements returns information about players' achievements. Accounts with hidden game profiles are excluded from response. Hidden profiles are listed in the field meta.hidden.

https://developers.wargaming.net/reference/all/wows/account/achievements

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100. Min value is 1.

func (*WowsService) AccountInfo

func (service *WowsService) AccountInfo(ctx context.Context, realm Realm, accountId []int, options *wows.AccountInfoOptions) (map[int]*wows.AccountInfo, *GenericMeta, error)

AccountInfo returns player details. Players may hide their game profiles, use field hidden_profile for determination.

https://developers.wargaming.net/reference/all/wows/account/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100. Min value is 1.

func (*WowsService) AccountList

func (service *WowsService) AccountList(ctx context.Context, realm Realm, search string, options *wows.AccountListOptions) ([]*wows.AccountList, *GenericMeta, error)

AccountList returns partial list of players. The list is filtered by initial characters of user name and sorted alphabetically.

https://developers.wargaming.net/reference/all/wows/account/list

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

search:

Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.

func (*WowsService) AccountStatsbydate

func (service *WowsService) AccountStatsbydate(ctx context.Context, realm Realm, accountId int, options *wows.AccountStatsbydateOptions) (*wows.AccountStatsbydate, *GenericMeta, error)

AccountStatsbydate returns statistics slices by dates in specified time span.

https://developers.wargaming.net/reference/all/wows/account/statsbydate

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID

func (*WowsService) ClansAccountinfo

func (service *WowsService) ClansAccountinfo(ctx context.Context, realm Realm, accountId []int, options *wows.ClansAccountinfoOptions) (map[int]*wows.ClansAccountinfo, *GenericMeta, error)

ClansAccountinfo returns player clan data. Player clan data exist only for accounts, that were participating in clan activities: sent join requests, were clan members etc.

https://developers.wargaming.net/reference/all/wows/clans/accountinfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Account ID. Maximum limit: 100. Min value is 1.

func (*WowsService) ClansGlossary

func (service *WowsService) ClansGlossary(ctx context.Context, realm Realm, options *wows.ClansGlossaryOptions) (*wows.ClansGlossary, error)

ClansGlossary returns information on clan entities.

https://developers.wargaming.net/reference/all/wows/clans/glossary

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) ClansInfo

func (service *WowsService) ClansInfo(ctx context.Context, realm Realm, clanId []int, options *wows.ClansInfoOptions) (map[int]*wows.ClansInfo, *GenericMeta, error)

ClansInfo returns detailed clan information.

https://developers.wargaming.net/reference/all/wows/clans/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

clanId:

Clan ID. Maximum limit: 100. Min value is 1.

func (*WowsService) ClansList

func (service *WowsService) ClansList(ctx context.Context, realm Realm, options *wows.ClansListOptions) ([]*wows.ClansList, *GenericMeta, error)

ClansList searches through clans and sorts them in a specified order.

https://developers.wargaming.net/reference/all/wows/clans/list

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) ClansSeason

func (service *WowsService) ClansSeason(ctx context.Context, realm Realm, options *wows.ClansSeasonOptions) (*wows.ClansSeason, *GenericMeta, error)

ClansSeason returns information about Clan Battles season.

https://developers.wargaming.net/reference/all/wows/clans/season

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaAccountlevels

func (service *WowsService) EncyclopediaAccountlevels(ctx context.Context, realm Realm, options *wows.EncyclopediaAccountlevelsOptions) (*wows.EncyclopediaAccountlevels, *GenericMeta, error)

EncyclopediaAccountlevels returns information about Service Record levels.

https://developers.wargaming.net/reference/all/wows/encyclopedia/accountlevels

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaAchievements

func (service *WowsService) EncyclopediaAchievements(ctx context.Context, realm Realm, options *wows.EncyclopediaAchievementsOptions) (*wows.EncyclopediaAchievements, *GenericMeta, error)

EncyclopediaAchievements returns information about achievements.

https://developers.wargaming.net/reference/all/wows/encyclopedia/achievements

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaBattlearenas

func (service *WowsService) EncyclopediaBattlearenas(ctx context.Context, realm Realm, options *wows.EncyclopediaBattlearenasOptions) (*wows.EncyclopediaBattlearenas, *GenericMeta, error)

EncyclopediaBattlearenas returns the information about maps.

https://developers.wargaming.net/reference/all/wows/encyclopedia/battlearenas

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaBattletypes

func (service *WowsService) EncyclopediaBattletypes(ctx context.Context, realm Realm, options *wows.EncyclopediaBattletypesOptions) (*wows.EncyclopediaBattletypes, *GenericMeta, error)

EncyclopediaBattletypes returns information about battle types.

https://developers.wargaming.net/reference/all/wows/encyclopedia/battletypes

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaCollectioncards

func (service *WowsService) EncyclopediaCollectioncards(ctx context.Context, realm Realm, options *wows.EncyclopediaCollectioncardsOptions) (*wows.EncyclopediaCollectioncards, *GenericMeta, error)

EncyclopediaCollectioncards returns information about items that are included in the collection.

https://developers.wargaming.net/reference/all/wows/encyclopedia/collectioncards

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaCollections

func (service *WowsService) EncyclopediaCollections(ctx context.Context, realm Realm, options *wows.EncyclopediaCollectionsOptions) (*wows.EncyclopediaCollections, *GenericMeta, error)

EncyclopediaCollections returns information about collections.

https://developers.wargaming.net/reference/all/wows/encyclopedia/collections

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaConsumables

func (service *WowsService) EncyclopediaConsumables(ctx context.Context, realm Realm, options *wows.EncyclopediaConsumablesOptions) (*wows.EncyclopediaConsumables, *GenericMeta, error)

EncyclopediaConsumables returns information about consumables: camouflages, flags, and upgrades.

https://developers.wargaming.net/reference/all/wows/encyclopedia/consumables

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaCrewranks

func (service *WowsService) EncyclopediaCrewranks(ctx context.Context, realm Realm, options *wows.EncyclopediaCrewranksOptions) (*wows.EncyclopediaCrewranks, *GenericMeta, error)

EncyclopediaCrewranks returns information about Commanders' ranks.

https://developers.wargaming.net/reference/all/wows/encyclopedia/crewranks

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaCrews

func (service *WowsService) EncyclopediaCrews(ctx context.Context, realm Realm, options *wows.EncyclopediaCrewsOptions) (*wows.EncyclopediaCrews, *GenericMeta, error)

EncyclopediaCrews returns information about Commanders.

https://developers.wargaming.net/reference/all/wows/encyclopedia/crews

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaCrewskills

func (service *WowsService) EncyclopediaCrewskills(ctx context.Context, realm Realm, options *wows.EncyclopediaCrewskillsOptions) (*wows.EncyclopediaCrewskills, error)

EncyclopediaCrewskills returns information about Commanders' skills.

https://developers.wargaming.net/reference/all/wows/encyclopedia/crewskills

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaInfo

func (service *WowsService) EncyclopediaInfo(ctx context.Context, realm Realm, options *wows.EncyclopediaInfoOptions) (*wows.EncyclopediaInfo, *GenericMeta, error)

EncyclopediaInfo returns information about encyclopedia.

https://developers.wargaming.net/reference/all/wows/encyclopedia/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaModules

func (service *WowsService) EncyclopediaModules(ctx context.Context, realm Realm, options *wows.EncyclopediaModulesOptions) (*wows.EncyclopediaModules, *GenericMeta, error)

EncyclopediaModules returns list of available modules that can be mounted on a ship (hull, engines, etc.).

https://developers.wargaming.net/reference/all/wows/encyclopedia/modules

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) EncyclopediaShipprofile

func (service *WowsService) EncyclopediaShipprofile(ctx context.Context, realm Realm, shipId int, options *wows.EncyclopediaShipprofileOptions) (*wows.EncyclopediaShipprofile, *GenericMeta, error)

EncyclopediaShipprofile returns parameters of ships in all existing configurations.

https://developers.wargaming.net/reference/all/wows/encyclopedia/shipprofile

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

shipId:

Ship ID

func (*WowsService) EncyclopediaShips

func (service *WowsService) EncyclopediaShips(ctx context.Context, realm Realm, options *wows.EncyclopediaShipsOptions) (map[int]*wows.EncyclopediaShips, *GenericMeta, error)

EncyclopediaShips returns list of ships available.

https://developers.wargaming.net/reference/all/wows/encyclopedia/ships

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) SeasonsAccountinfo

func (service *WowsService) SeasonsAccountinfo(ctx context.Context, realm Realm, accountId []int, options *wows.SeasonsAccountinfoOptions) (*wows.SeasonsAccountinfo, *GenericMeta, error)

SeasonsAccountinfo returns players' statistics in Ranked Battles seasons. Accounts with hidden game profiles are excluded from response. Hidden profiles are listed in the field meta.hidden.

https://developers.wargaming.net/reference/all/wows/seasons/accountinfo

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID. Maximum limit: 100. Min value is 1.

func (*WowsService) SeasonsInfo

func (service *WowsService) SeasonsInfo(ctx context.Context, realm Realm, options *wows.SeasonsInfoOptions) (*wows.SeasonsInfo, error)

SeasonsInfo returns information about Ranked Battles seasons.

https://developers.wargaming.net/reference/all/wows/seasons/info

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

func (*WowsService) SeasonsShipstats

func (service *WowsService) SeasonsShipstats(ctx context.Context, realm Realm, accountId int, options *wows.SeasonsShipstatsOptions) (*wows.SeasonsShipstats, *GenericMeta, error)

SeasonsShipstats returns players' ships statistics in Ranked Battles seasons. Accounts with hidden game profiles are excluded from response. Hidden profiles are listed in the field meta.hidden.

https://developers.wargaming.net/reference/all/wows/seasons/shipstats

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID

func (*WowsService) ShipsStats

func (service *WowsService) ShipsStats(ctx context.Context, realm Realm, accountId int, options *wows.ShipsStatsOptions) (map[int][]*wows.ShipsStats, *GenericMeta, error)

ShipsStats returns general statistics for each ship of a player. Accounts with hidden game profiles are excluded from response. Hidden profiles are listed in the field meta.hidden.

https://developers.wargaming.net/reference/all/wows/ships/stats

realm:

Valid realms: RealmAsia, RealmEu, RealmNa

accountId:

Player account ID

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL