GoogleApi.YouTube.V3.Model.Subscription (google_api_you_tube v0.54.0)

View Source

A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.

Attributes

  • contentDetails (type: GoogleApi.YouTube.V3.Model.SubscriptionContentDetails.t, default: nil) - The contentDetails object contains basic statistics about the subscription.
  • etag (type: String.t, default: nil) - Etag of this resource.
  • id (type: String.t, default: nil) - The ID that YouTube uses to uniquely identify the subscription.
  • kind (type: String.t, default: youtube#subscription) - Identifies what kind of resource this is. Value: the fixed string "youtube#subscription".
  • snippet (type: GoogleApi.YouTube.V3.Model.SubscriptionSnippet.t, default: nil) - The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
  • subscriberSnippet (type: GoogleApi.YouTube.V3.Model.SubscriptionSubscriberSnippet.t, default: nil) - The subscriberSnippet object contains basic details about the subscriber.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.YouTube.V3.Model.Subscription{
  contentDetails:
    GoogleApi.YouTube.V3.Model.SubscriptionContentDetails.t() | nil,
  etag: String.t() | nil,
  id: String.t() | nil,
  kind: String.t() | nil,
  snippet: GoogleApi.YouTube.V3.Model.SubscriptionSnippet.t() | nil,
  subscriberSnippet:
    GoogleApi.YouTube.V3.Model.SubscriptionSubscriberSnippet.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.