Property | Type | Description | |
---|---|---|---|
$baseUrl | string | The base URL. | |
$commands | array | The commands. | |
$defaultHeaders | array | The default command headers. | |
$interactor | Frlnc\Slack\Contracts\Http\Interactor | The Http interactor. | |
$token | string | The API token. |
Method | Description | |
---|---|---|
__construct ( string $token, Frlnc\Slack\Contracts\Http\Interactor $interactor ) | ||
execute ( string $command, array $parameters = [] ) : Frlnc\Slack\Contracts\Http\Response | Executes a command. | |
format ( string $string ) : string | Formats a string for Slack. | |
setToken ( string $token ) | Sets the token. |
public __construct ( string $token, Frlnc\Slack\Contracts\Http\Interactor $interactor ) | ||
$token | string | |
$interactor | Frlnc\Slack\Contracts\Http\Interactor |
protected static string $baseUrl | ||
return | string |
protected static array $commands | ||
return | array |
protected static array $defaultHeaders | ||
return | array |
protected Interactor,Frlnc\Slack\Contracts\Http $interactor | ||
return | Frlnc\Slack\Contracts\Http\Interactor |