Google\Spreadsheet\SpreadsheetService::getPublicSpreadsheet PHP Method

getPublicSpreadsheet() public method

Get public spreadsheet
public getPublicSpreadsheet ( string $id ) : WorksheetFeed
$id string Only the actual id and not the full url
return WorksheetFeed
    public function getPublicSpreadsheet($id)
    {
        $serviceRequest = ServiceRequestFactory::getInstance();
        $url = sprintf("%sfeeds/worksheets/%s/public/full", $serviceRequest->getServiceUrl(), $id);
        return $this->getResourceById(WorksheetFeed::class, $url);
    }