Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

File Size: 434 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 classes

Google_Service_Urlshortener:: (1 method):
  __construct()

Google_Service_Urlshortener_Url_Resource:: (3 methods):
  get()
  insert()
  listUrl()

Google_Service_Urlshortener_AnalyticsSnapshot:: (12 methods):
  setBrowsers()
  getBrowsers()
  setCountries()
  getCountries()
  setLongUrlClicks()
  getLongUrlClicks()
  setPlatforms()
  getPlatforms()
  setReferrers()
  getReferrers()
  setShortUrlClicks()
  getShortUrlClicks()

Google_Service_Urlshortener_AnalyticsSummary:: (10 methods):
  setAllTime()
  getAllTime()
  setDay()
  getDay()
  setMonth()
  getMonth()
  setTwoHours()
  getTwoHours()
  setWeek()
  getWeek()

Google_Service_Urlshortener_StringCount:: (4 methods):
  setCount()
  getCount()
  setId()
  getId()

Google_Service_Urlshortener_Url:: (12 methods):
  setAnalytics()
  getAnalytics()
  setCreated()
  getCreated()
  setId()
  getId()
  setKind()
  getKind()
  setLongUrl()
  getLongUrl()
  setStatus()
  getStatus()

Google_Service_Urlshortener_UrlHistory:: (10 methods):
  setItems()
  getItems()
  setItemsPerPage()
  getItemsPerPage()
  setKind()
  getKind()
  setNextPageToken()
  getNextPageToken()
  setTotalItems()
  getTotalItems()


Class: Google_Service_Urlshortener  - X-Ref

Service definition for Urlshortener (v1).

<p>
Lets you create, inspect, and manage goo.gl short URLs</p>

<p>
For more information about this service, see the API
<a href="https://developers.google.com/url-shortener/v1/getting_started" target="_blank">Documentation</a>
</p>

__construct(Google_Client $client)   X-Ref
Constructs the internal representation of the Urlshortener service.

param: Google_Client $client

Class: Google_Service_Urlshortener_Url_Resource  - X-Ref

The "url" collection of methods.
Typical usage is:
<code>
$urlshortenerService = new Google_Service_Urlshortener(...);
$url = $urlshortenerService->url;
</code>

get($shortUrl, $optParams = array()   X-Ref
Expands a short URL or gets creation time and analytics. (url.get)

param: string $shortUrl The short URL, including the protocol.
param: array $optParams Optional parameters.
return: Google_Service_Urlshortener_Url

insert(Google_Service_Urlshortener_Url $postBody, $optParams = array()   X-Ref
Creates a new short URL. (url.insert)

param: Google_Url $postBody
param: array $optParams Optional parameters.
return: Google_Service_Urlshortener_Url

listUrl($optParams = array()   X-Ref
Retrieves a list of URLs shortened by a user. (url.listUrl)

param: array $optParams Optional parameters.
return: Google_Service_Urlshortener_UrlHistory

Class: Google_Service_Urlshortener_AnalyticsSnapshot  - X-Ref

setBrowsers($browsers)   X-Ref
No description

getBrowsers()   X-Ref
No description

setCountries($countries)   X-Ref
No description

getCountries()   X-Ref
No description

setLongUrlClicks($longUrlClicks)   X-Ref
No description

getLongUrlClicks()   X-Ref
No description

setPlatforms($platforms)   X-Ref
No description

getPlatforms()   X-Ref
No description

setReferrers($referrers)   X-Ref
No description

getReferrers()   X-Ref
No description

setShortUrlClicks($shortUrlClicks)   X-Ref
No description

getShortUrlClicks()   X-Ref
No description

Class: Google_Service_Urlshortener_AnalyticsSummary  - X-Ref

setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime)   X-Ref
No description

getAllTime()   X-Ref
No description

setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day)   X-Ref
No description

getDay()   X-Ref
No description

setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month)   X-Ref
No description

getMonth()   X-Ref
No description

setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHours)   X-Ref
No description

getTwoHours()   X-Ref
No description

setWeek(Google_Service_Urlshortener_AnalyticsSnapshot $week)   X-Ref
No description

getWeek()   X-Ref
No description

Class: Google_Service_Urlshortener_StringCount  - X-Ref

setCount($count)   X-Ref
No description

getCount()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

Class: Google_Service_Urlshortener_Url  - X-Ref

setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics)   X-Ref
No description

getAnalytics()   X-Ref
No description

setCreated($created)   X-Ref
No description

getCreated()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setLongUrl($longUrl)   X-Ref
No description

getLongUrl()   X-Ref
No description

setStatus($status)   X-Ref
No description

getStatus()   X-Ref
No description

Class: Google_Service_Urlshortener_UrlHistory  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setItemsPerPage($itemsPerPage)   X-Ref
No description

getItemsPerPage()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setNextPageToken($nextPageToken)   X-Ref
No description

getNextPageToken()   X-Ref
No description

setTotalItems($totalItems)   X-Ref
No description

getTotalItems()   X-Ref
No description