Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_Urlshortener_Url_Resource Class Reference

The "url" collection of methods. More...

Inheritance diagram for Google_Service_Urlshortener_Url_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 get ($shortUrl, $optParams=array())
 Expands a short URL or gets creation time and analytics.
 
 insert (Google_Service_Urlshortener_Url $postBody, $optParams=array())
 Creates a new short URL.
 
 listUrl ($optParams=array())
 Retrieves a list of URLs shortened by a user.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "url" collection of methods.

Typical usage is: $urlshortenerService = new Google_Service_Urlshortener(...); $url = $urlshortenerService->url;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ get()

Google_Service_Urlshortener_Url_Resource::get ( $shortUrl,
$optParams = array() )

Expands a short URL or gets creation time and analytics.

(url.get)

Parameters
string$shortUrlThe short URL, including the protocol.
array$optParamsOptional parameters.

@opt_param string projection Additional information to return.

Return values
Google_Service_Urlshortener_Url

◆ insert()

Google_Service_Urlshortener_Url_Resource::insert ( Google_Service_Urlshortener_Url $postBody,
$optParams = array() )

Creates a new short URL.

(url.insert)

Parameters
Google_Url$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Urlshortener_Url

◆ listUrl()

Google_Service_Urlshortener_Url_Resource::listUrl ( $optParams = array())

Retrieves a list of URLs shortened by a user.

(url.listUrl)

Parameters
array$optParamsOptional parameters.

@opt_param string start-token Token for requesting successive pages of results. @opt_param string projection Additional information to return.

Return values
Google_Service_Urlshortener_UrlHistory

The documentation for this class was generated from the following file: