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 |
Creates an upload session to start uploading photo bytes. The upload URL of the returned UploadRef is used to upload the bytes for the Photo. In addition to the photo requirements shown in https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, the photo must also meet the following requirements: * Photo Sphere XMP metadata must be included in the photo medadata. See https://developers.google.com/streetview/spherical-metadata for the required fields. * The pixel size of the photo must meet the size requirements listed in https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and the photo must be a full 360 horizontally. After the upload is complete, the UploadRef is used with CreatePhoto to create the Photo object entry.
See: Street View Publish API Reference for streetviewpublish.photo.startUpload
.
Synopsis
- type PhotoStartUploadResource = "v1" :> ("photo:startUpload" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Empty :> Post '[JSON] UploadRef))))))))
- photoStartUpload :: Empty -> PhotoStartUpload
- data PhotoStartUpload
- psuXgafv :: Lens' PhotoStartUpload (Maybe Xgafv)
- psuUploadProtocol :: Lens' PhotoStartUpload (Maybe Text)
- psuAccessToken :: Lens' PhotoStartUpload (Maybe Text)
- psuUploadType :: Lens' PhotoStartUpload (Maybe Text)
- psuPayload :: Lens' PhotoStartUpload Empty
- psuCallback :: Lens' PhotoStartUpload (Maybe Text)
REST Resource
type PhotoStartUploadResource = "v1" :> ("photo:startUpload" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Empty :> Post '[JSON] UploadRef)))))))) Source #
A resource alias for streetviewpublish.photo.startUpload
method which the
PhotoStartUpload
request conforms to.
Creating a Request
Creates a value of PhotoStartUpload
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PhotoStartUpload Source #
Creates an upload session to start uploading photo bytes. The upload URL of the returned UploadRef is used to upload the bytes for the Photo. In addition to the photo requirements shown in https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, the photo must also meet the following requirements: * Photo Sphere XMP metadata must be included in the photo medadata. See https://developers.google.com/streetview/spherical-metadata for the required fields. * The pixel size of the photo must meet the size requirements listed in https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and the photo must be a full 360 horizontally. After the upload is complete, the UploadRef is used with CreatePhoto to create the Photo object entry.
See: photoStartUpload
smart constructor.
Instances
Request Lenses
psuUploadProtocol :: Lens' PhotoStartUpload (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psuAccessToken :: Lens' PhotoStartUpload (Maybe Text) Source #
OAuth access token.
psuUploadType :: Lens' PhotoStartUpload (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psuPayload :: Lens' PhotoStartUpload Empty Source #
Multipart request metadata.
psuCallback :: Lens' PhotoStartUpload (Maybe Text) Source #
JSONP