trait MiscTrait

Represents several Admin API methods.

Properties

ApiClient $apiClient Defined in AdminApi class.

Methods

ping()

Tests the reachability of the Cloudinary API.

pingAsync()

Tests the reachability of the Cloudinary API asynchronously.

usage(array $options = [])

Gets cloud usage details.

tags(array $options = [])

Lists all the tags currently used for a specified asset type.

Details

ApiResponse ping()

Tests the reachability of the Cloudinary API.

Return Value

ApiResponse

See also

AdminApi::pingAsync()
https://cloudinary.com/documentation/admin_api#ping

PromiseInterface pingAsync()

Tests the reachability of the Cloudinary API asynchronously.

Return Value

PromiseInterface

See also

https://cloudinary.com/documentation/admin_api#ping

ApiResponse usage(array $options = [])

Gets cloud usage details.

Returns a report detailing your current Cloudinary cloud usage details, including storage, bandwidth, requests, number of assets, and add-on usage. Note that numbers are updated periodically.

Parameters

Name Type Description
$options array The optional parameters. See the Admin API documentation.

Return Value

ApiResponse

Exceptions

ApiError

See also

https://cloudinary.com/documentation/admin_api#usage

ApiResponse tags(array $options = [])

Lists all the tags currently used for a specified asset type.

Parameters

Name Type Description
$options array The optional parameters. See the Admin API documentation.

Return Value

ApiResponse

Exceptions

ApiError

See also

https://cloudinary.com/documentation/admin_api#get_tags