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 a job and returns it.
See: YouTube Reporting API Reference for youtubereporting.jobs.create
.
Synopsis
- type JobsCreateResource = "v1" :> ("jobs" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Job :> Post '[JSON] Job)))))))))
- jobsCreate :: Job -> JobsCreate
- data JobsCreate
- jcXgafv :: Lens' JobsCreate (Maybe Xgafv)
- jcUploadProtocol :: Lens' JobsCreate (Maybe Text)
- jcAccessToken :: Lens' JobsCreate (Maybe Text)
- jcUploadType :: Lens' JobsCreate (Maybe Text)
- jcPayload :: Lens' JobsCreate Job
- jcOnBehalfOfContentOwner :: Lens' JobsCreate (Maybe Text)
- jcCallback :: Lens' JobsCreate (Maybe Text)
REST Resource
type JobsCreateResource = "v1" :> ("jobs" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Job :> Post '[JSON] Job))))))))) Source #
A resource alias for youtubereporting.jobs.create
method which the
JobsCreate
request conforms to.
Creating a Request
:: Job | |
-> JobsCreate |
Creates a value of JobsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data JobsCreate Source #
Creates a job and returns it.
See: jobsCreate
smart constructor.
Instances
Request Lenses
jcUploadProtocol :: Lens' JobsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
jcAccessToken :: Lens' JobsCreate (Maybe Text) Source #
OAuth access token.
jcUploadType :: Lens' JobsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
jcOnBehalfOfContentOwner :: Lens' JobsCreate (Maybe Text) Source #
The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel).
jcCallback :: Lens' JobsCreate (Maybe Text) Source #
JSONP