View Source Endpoints.Players.Verification (clashofclans v1.3.0)

This module is responsible for verifying a players account.

e.g. "#AB123", "my_token_here"

Returns "invalid" if the API token is invalid/expired, Return "ok" if both is valid and the player is verified.

DEV NOTE: This module has its own request endpoint since we need a POST request with a "content-type"

instead of the "accept" header.

Link to this section Summary

Link to this section Functions

Link to this function

process_request_headers(headers)

View Source
Link to this function

verify_player(playertag, token)

View Source
@spec verify_player(String.t(), String.t()) :: String.t()