seregazhuk\PinterestBot\Api\Request::getContentTypeHeader PHP Méthode

getContentTypeHeader() protected méthode

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