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 |
Gets the metadata of the specified Photo. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested Photo. * google.rpc.Code.NOT_FOUND if the requested Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.
See: Street View Publish API Reference for streetviewpublish.photo.get
.
Synopsis
- type PhotoGetResource = "v1" :> ("photo" :> (Capture "photoId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "view" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Photo))))))))))
- photoGet :: Text -> PhotoGet
- data PhotoGet
- pgXgafv :: Lens' PhotoGet (Maybe Xgafv)
- pgLanguageCode :: Lens' PhotoGet (Maybe Text)
- pgUploadProtocol :: Lens' PhotoGet (Maybe Text)
- pgAccessToken :: Lens' PhotoGet (Maybe Text)
- pgUploadType :: Lens' PhotoGet (Maybe Text)
- pgView :: Lens' PhotoGet (Maybe Text)
- pgPhotoId :: Lens' PhotoGet Text
- pgCallback :: Lens' PhotoGet (Maybe Text)
REST Resource
type PhotoGetResource = "v1" :> ("photo" :> (Capture "photoId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "view" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Photo)))))))))) Source #
A resource alias for streetviewpublish.photo.get
method which the
PhotoGet
request conforms to.
Creating a Request
Creates a value of PhotoGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Gets the metadata of the specified Photo. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested Photo. * google.rpc.Code.NOT_FOUND if the requested Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.
See: photoGet
smart constructor.
Instances
Request Lenses
pgLanguageCode :: Lens' PhotoGet (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.
pgUploadProtocol :: Lens' PhotoGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgUploadType :: Lens' PhotoGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").