Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@datafire/google_youtubereporting
Advanced tools
Readme
Client library for YouTube Reporting API
npm install --save @datafire/google_youtubereporting
let google_youtubereporting = require('@datafire/google_youtubereporting').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files.
Exchange the code passed to your redirect URI for an access_token
google_youtubereporting.oauthCallback({
"code": ""
}, context)
object
string
object
string
string
string
string
string
Exchange a refresh_token for an access_token
google_youtubereporting.oauthRefresh(null, context)
This action has no parameters
object
string
string
string
string
string
Lists jobs.
google_youtubereporting.youtubereporting.jobs.list({}, context)
object
boolean
: If set to true, also system-managed jobs will be returned; otherwise only user-created jobs will be returned. System-managed jobs can neither be modified nor deleted.string
: 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).integer
: Requested page size. Server may return fewer jobs than requested. If unspecified, server will pick an appropriate default.string
: A token identifying a page of results the server should return. Typically, this is the value of ListReportTypesResponse.next_page_token returned in response to the previous call to the ListJobs
method.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Creates a job and returns it.
google_youtubereporting.youtubereporting.jobs.create({}, context)
object
string
: 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).string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Deletes a job.
google_youtubereporting.youtubereporting.jobs.delete({
"jobId": ""
}, context)
object
string
: The ID of the job to delete.string
: 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).string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Gets a job.
google_youtubereporting.youtubereporting.jobs.get({
"jobId": ""
}, context)
object
string
: The ID of the job to retrieve.string
: 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).string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Lists reports created by a specific job. Returns NOT_FOUND if the job does not exist.
google_youtubereporting.youtubereporting.jobs.reports.list({
"jobId": ""
}, context)
object
string
: The ID of the job.string
: If set, only reports created after the specified date/time are returned.string
: 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).integer
: Requested page size. Server may return fewer report types than requested. If unspecified, server will pick an appropriate default.string
: A token identifying a page of results the server should return. Typically, this is the value of ListReportsResponse.next_page_token returned in response to the previous call to the ListReports
method.string
: If set, only reports whose start time is greater than or equal the specified date/time are returned.string
: If set, only reports whose start time is smaller than the specified date/time are returned.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Gets the metadata of a specific report.
google_youtubereporting.youtubereporting.jobs.reports.get({
"jobId": "",
"reportId": ""
}, context)
object
string
: The ID of the job.string
: The ID of the report to retrieve.string
: 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).string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Method for media download. Download is supported on the URI /v1/media/{+name}?alt=media
.
google_youtubereporting.youtubereporting.media.download({
"resourceName": ""
}, context)
object
string
: Name of the media that is being downloaded.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Lists report types.
google_youtubereporting.youtubereporting.reportTypes.list({}, context)
object
boolean
: If set to true, also system-managed report types will be returned; otherwise only the report types that can be used to create new reporting jobs will be returned.string
: 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).integer
: Requested page size. Server may return fewer report types than requested. If unspecified, server will pick an appropriate default.string
: A token identifying a page of results the server should return. Typically, this is the value of ListReportTypesResponse.next_page_token returned in response to the previous call to the ListReportTypes
method.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").object
: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty
is empty JSON object {}
.object
: gdata
string
: gdatastring
: gdatastring
: gdatastring
: gdatastring
: gdataobject
: gdata
string
: gdatastring
: gdatainteger
: gdatastring
: gdatastring
: gdatastring
: gdatastring
: gdatastring
(values: PATH, BLOB_REF, INLINE, BIGSTORE_REF, COSMO_BINARY_REFERENCE): gdatastring
: gdataobject
: gdata
string
: gdatastring
: gdatastring
: gdatastring
: gdatastring
: gdataobject
: gdata
string
: gdatastring
: gdatastring
: gdataobject
: gdata
object
: gdata
string
: gdataobject
: gdata
string
: gdataobject
: gdata
string
: gdatastring
: gdataobject
: gdata
boolean
: gdataboolean
: gdataobject
: gdata
string
: gdatastring
: gdatastring
: gdataarray
: gdata
string
: gdatastring
: gdatainteger
: gdatastring
: gdatastring
: gdataboolean
: gdatastring
: gdataboolean
: gdatastring
: gdatastring
: gdatastring
: gdatastring
: gdatastring
(values: PATH, BLOB_REF, INLINE, GET_MEDIA, COMPOSITE_MEDIA, BIGSTORE_REF, DIFF_VERSION_RESPONSE, DIFF_CHECKSUMS_RESPONSE, DIFF_DOWNLOAD_RESPONSE, DIFF_UPLOAD_REQUEST, DIFF_UPLOAD_RESPONSE, COSMO_BINARY_REFERENCE, ARBITRARY_BYTES): gdatastring
: gdatastring
: gdatastring
: gdatastring
: gdataobject
: gdata
string
: gdatastring
: gdatastring
: gdataobject
: A job creating reports of a specific type.
string
: The creation date/time of the job.string
: The date/time when this job will expire/expired. After a job expired, no new reports are generated.string
: The server-generated ID of the job (max. 40 characters).string
: The name of the job (max. 100 characters).string
: The type of reports this job creates. Corresponds to the ID of a ReportType.boolean
: True if this a system-managed job that cannot be modified by the user; otherwise false.object
: Response message for ReportingService.ListJobs.
array
: The list of jobs.
string
: A token to retrieve next page of results. Pass this value in the ListJobsRequest.page_token field in the subsequent call to ListJobs
method to retrieve the next page of results.object
: Response message for ReportingService.ListReportTypes.
string
: A token to retrieve next page of results. Pass this value in the ListReportTypesRequest.page_token field in the subsequent call to ListReportTypes
method to retrieve the next page of results.array
: The list of report types.
object
: Response message for ReportingService.ListReports.
string
: A token to retrieve next page of results. Pass this value in the ListReportsRequest.page_token field in the subsequent call to ListReports
method to retrieve the next page of results.array
: The list of report types.
object
: A report's metadata including the URL from which the report itself can be downloaded.
string
: The date/time when this report was created.string
: The URL from which the report can be downloaded (max. 1000 characters).string
: The end of the time period that the report instance covers. The value is exclusive.string
: The server-generated ID of the report.string
: The date/time when the job this report belongs to will expire/expired.string
: The ID of the job that created this report.string
: The start of the time period that the report instance covers. The value is inclusive.object
: A report type.
string
: The date/time when this report type was/will be deprecated.string
: The ID of the report type (max. 100 characters).string
: The name of the report type (max. 100 characters).boolean
: True if this a system-managed report type; otherwise false. Reporting jobs for system-managed report types are created automatically and can thus not be used in the CreateJob
method.FAQs
DataFire integration for YouTube Reporting API
The npm package @datafire/google_youtubereporting receives a total of 1 weekly downloads. As such, @datafire/google_youtubereporting popularity was classified as not popular.
We found that @datafire/google_youtubereporting demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.