Constructor
# new Dispatch(token, envopt)
Creates a new Dispatch class. Once this class is initialized, you can use any of the namespaces with a method to use tge API.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
token |
string | Initialize the class with your API key. |
||
env |
string |
<optional> |
"production" | Unless you have development keys, leave this blank. |
Example
const dispatch = new Dispatch("key_EHKD5tbatzX59DArnTBjhr46G5n1f4aJkvwPByft")