Methods
(static) asyncPost(req, dataopt) → {integer}
Post data and wait for response code
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
req | dynamic | |||
data | string | <optional> | "" |
Returns:
- Type:
- integer
(static) empty() → {void}
Revert PostTask to default state
Returns:
- Type:
- void
(static) init() → {void}
Returns:
- Type:
- void
(static) postItems() → {void}
Main function for PostTask. Posts either an array of data or a string of data to an API endpoint. Saves the response information
Returns:
- Type:
- void