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 |
After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the Photo Sphere XMP metadata in the photo bytes. The `pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose are ignored for CreatePhoto. This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.
See: Street View Publish API Reference for streetviewpublish.photo.create
.
Synopsis
- type PhotoCreateResource = "v1" :> ("photo" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Photo :> Post '[JSON] Photo))))))))
- photoCreate :: Photo -> PhotoCreate
- data PhotoCreate
- pcXgafv :: Lens' PhotoCreate (Maybe Xgafv)
- pcUploadProtocol :: Lens' PhotoCreate (Maybe Text)
- pcAccessToken :: Lens' PhotoCreate (Maybe Text)
- pcUploadType :: Lens' PhotoCreate (Maybe Text)
- pcPayload :: Lens' PhotoCreate Photo
- pcCallback :: Lens' PhotoCreate (Maybe Text)
REST Resource
type PhotoCreateResource = "v1" :> ("photo" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Photo :> Post '[JSON] Photo)))))))) Source #
A resource alias for streetviewpublish.photo.create
method which the
PhotoCreate
request conforms to.
Creating a Request
Creates a value of PhotoCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PhotoCreate Source #
After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the Photo Sphere XMP metadata in the photo bytes. The `pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose are ignored for CreatePhoto. This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.
See: photoCreate
smart constructor.
Instances
Request Lenses
pcUploadProtocol :: Lens' PhotoCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pcAccessToken :: Lens' PhotoCreate (Maybe Text) Source #
OAuth access token.
pcUploadType :: Lens' PhotoCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pcCallback :: Lens' PhotoCreate (Maybe Text) Source #
JSONP