public function createAuthorization( $dirName, $FileName){
        $rest = $this->getService( self::API_UPLOAD);
        $rest->POST([
            'dirname'       => base64_encode( $dirName),
            'upload_name'   => $FileName,
        ]);

        return (int) $rest->getResult()['id'];
    }