Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Lists all the Photos that belong to the user. Note: Recently created photos that are still being indexed are not returned in the response.
See: Street View Publish API Reference for streetviewpublish.photos.list
.
Synopsis
- type PhotosListResource = "v1" :> ("photos" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "view" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListPhotosResponse))))))))))))
- photosList :: PhotosList
- data PhotosList
- plXgafv :: Lens' PhotosList (Maybe Xgafv)
- plLanguageCode :: Lens' PhotosList (Maybe Text)
- plUploadProtocol :: Lens' PhotosList (Maybe Text)
- plAccessToken :: Lens' PhotosList (Maybe Text)
- plUploadType :: Lens' PhotosList (Maybe Text)
- plView :: Lens' PhotosList (Maybe Text)
- plFilter :: Lens' PhotosList (Maybe Text)
- plPageToken :: Lens' PhotosList (Maybe Text)
- plPageSize :: Lens' PhotosList (Maybe Int32)
- plCallback :: Lens' PhotosList (Maybe Text)
REST Resource
type PhotosListResource = "v1" :> ("photos" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "view" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListPhotosResponse)))))))))))) Source #
A resource alias for streetviewpublish.photos.list
method which the
PhotosList
request conforms to.
Creating a Request
photosList :: PhotosList Source #
Creates a value of PhotosList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PhotosList Source #
Lists all the Photos that belong to the user. Note: Recently created photos that are still being indexed are not returned in the response.
See: photosList
smart constructor.
Instances
Request Lenses
plLanguageCode :: Lens' PhotosList (Maybe Text) Source #
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user's language preference for Google services will be used.
plUploadProtocol :: Lens' PhotosList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plAccessToken :: Lens' PhotosList (Maybe Text) Source #
OAuth access token.
plUploadType :: Lens' PhotosList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plView :: Lens' PhotosList (Maybe Text) Source #
Specifies if a download URL for the photos bytes should be returned in the Photos response.
plFilter :: Lens' PhotosList (Maybe Text) Source #
The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. The only filter supported at the moment is `placeId`.
plPageToken :: Lens' PhotosList (Maybe Text) Source #
The nextPageToken value returned from a previous ListPhotos request, if any.
plPageSize :: Lens' PhotosList (Maybe Int32) Source #
The maximum number of photos to return. `pageSize` must be non-negative. If `pageSize` is zero or is not provided, the default page size of 100 will be used. The number of photos returned in the response may be less than `pageSize` if the number of photos that belong to the user is less than `pageSize`.
plCallback :: Lens' PhotosList (Maybe Text) Source #
JSONP