setApiToken

open fun setApiToken(token: String)

Sets the API access token for Pushwoosh REST API calls.

This method configures the API token used for authenticating REST API requests to Pushwoosh. The API token can be found in your Pushwoosh Control Panel under API Access settings. Example:


  // Set API token for server-side operations
  Pushwoosh.getInstance().setApiToken("YOUR_API_TOKEN");

Parameters

token

Pushwoosh API access token