Home Reference Source Test
import DeveloperHeader from 'token-io/src/http/DeveloperHeader.js'
public class | source

DeveloperHeader

Class to add sdk developer key.

Constructor Summary

Public Constructor
public

constructor(developerKey: string)

Initializes the developer header with the developer key.

Member Summary

Private Members
private

Method Summary

Public Methods
public

Adds the developer key to the request config if not empty.

Public Constructors

public constructor(developerKey: string) source

Initializes the developer header with the developer key.

Params:

NameTypeAttributeDescription
developerKey string

the developer key, by default empty

Private Members

private _developerKey: * source

Public Methods

public addDeveloperHeader(config: Object) source

Adds the developer key to the request config if not empty.

Params:

NameTypeAttributeDescription
config Object

config of the request