for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This Driver is based entirely on official documentation of the Mattermost Web
* Services API and you can extend it by following the directives of the documentation.
*
* God bless this mess.
* @author Luca Agnello <[email protected]>
* @link https://api.mattermost.com/
*/
namespace Gnello\Mattermost\Models;
use GuzzleHttp\RequestOptions;
use Psr\Http\Message\ResponseInterface;
* Class BrandModel
* @package Gnello\MattermostRestApi\Models
class BrandModel extends AbstractModel
{
* @var string
private static $endpoint = '/brand';
* @return ResponseInterface
public function getBrandImage()
return $this->client->get(self::$endpoint . '/image');
}
* @param array $requestOptions
public function uploadBrandImage(array $requestOptions)
$internalRequestOptions = self::buildMultipartDataOptions($requestOptions, ['image']);
return $this->client->post(self::$endpoint . '/image', $internalRequestOptions, RequestOptions::MULTIPART);
public function deleteCurrentBrandImage()
return $this->client->delete(self::$endpoint . '/image');