Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + const UrlshortenerScope + type AnalyticsSnapshot struct + Browsers []*StringCount + Countries []*StringCount + ForceSendFields []string + LongUrlClicks int64 + NullFields []string + Platforms []*StringCount + Referrers []*StringCount + ShortUrlClicks int64 + func (s *AnalyticsSnapshot) MarshalJSON() ([]byte, error) + type AnalyticsSummary struct + AllTime *AnalyticsSnapshot + Day *AnalyticsSnapshot + ForceSendFields []string + Month *AnalyticsSnapshot + NullFields []string + TwoHours *AnalyticsSnapshot + Week *AnalyticsSnapshot + func (s *AnalyticsSummary) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Url *UrlService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type StringCount struct + Count int64 + ForceSendFields []string + Id string + NullFields []string + func (s *StringCount) MarshalJSON() ([]byte, error) + type Url struct + Analytics *AnalyticsSummary + Created string + ForceSendFields []string + Id string + Kind string + LongUrl string + NullFields []string + Status string + func (s *Url) MarshalJSON() ([]byte, error) + type UrlGetCall struct + func (c *UrlGetCall) Context(ctx context.Context) *UrlGetCall + func (c *UrlGetCall) Do(opts ...googleapi.CallOption) (*Url, error) + func (c *UrlGetCall) Fields(s ...googleapi.Field) *UrlGetCall + func (c *UrlGetCall) Header() http.Header + func (c *UrlGetCall) IfNoneMatch(entityTag string) *UrlGetCall + func (c *UrlGetCall) Projection(projection string) *UrlGetCall + type UrlHistory struct + ForceSendFields []string + Items []*Url + ItemsPerPage int64 + Kind string + NextPageToken string + NullFields []string + TotalItems int64 + func (s *UrlHistory) MarshalJSON() ([]byte, error) + type UrlInsertCall struct + func (c *UrlInsertCall) Context(ctx context.Context) *UrlInsertCall + func (c *UrlInsertCall) Do(opts ...googleapi.CallOption) (*Url, error) + func (c *UrlInsertCall) Fields(s ...googleapi.Field) *UrlInsertCall + func (c *UrlInsertCall) Header() http.Header + type UrlListCall struct + func (c *UrlListCall) Context(ctx context.Context) *UrlListCall + func (c *UrlListCall) Do(opts ...googleapi.CallOption) (*UrlHistory, error) + func (c *UrlListCall) Fields(s ...googleapi.Field) *UrlListCall + func (c *UrlListCall) Header() http.Header + func (c *UrlListCall) IfNoneMatch(entityTag string) *UrlListCall + func (c *UrlListCall) Projection(projection string) *UrlListCall + func (c *UrlListCall) StartToken(startToken string) *UrlListCall + type UrlService struct + func NewUrlService(s *Service) *UrlService + func (r *UrlService) Get(shortUrl string) *UrlGetCall + func (r *UrlService) Insert(url *Url) *UrlInsertCall + func (r *UrlService) List() *UrlListCall