seregazhuk\PinterestBot\Api\Request::getContentTypeHeader PHP Method

getContentTypeHeader() protected method

If we are uploading file, we should build boundary form data. Otherwise it is simple urlencoded form.
protected getContentTypeHeader ( ) : array
return array
    protected function getContentTypeHeader()
    {
        return $this->filePathToUpload ? $this->makeHeadersForUpload() : ['Content-Type: application/x-www-form-urlencoded; charset=UTF-8;'];
    }