Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not existing property in SpreadsheetService #3

Merged
merged 1 commit into from
May 10, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/Google/Spreadsheet/SpreadsheetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SpreadsheetService
{
/**
* Fetches a list of spreadhsheet spreadsheets from google drive.
*
*
* @return \Google\Spreadsheet\SpreadsheetFeed
*/
public function getSpreadsheets()
Expand All @@ -40,17 +40,18 @@ public function getSpreadsheets()
}

/**
* Fetches a single spreadsheet from google drive by id if you decide
* Fetches a single spreadsheet from google drive by id if you decide
* to store the id locally. This can help reduce api calls.
*
*
* @param string $id the id of the spreadsheet
*
*
* @return \Google\Spreadsheet\Spreadsheet
*/
public function getSpreadsheetById($id)
{
$this->request->setEndpoint('feeds/spreadsheets/private/full/'. $id);
$res = $this->execute();
$serviceRequest = ServiceRequestFactory::getInstance();
$serviceRequest->getRequest()->setEndpoint('feeds/spreadsheets/private/full/'. $id);
$res = $serviceRequest->execute();
return new Spreadsheet($res);
}
}
}