PHP Class Cloudinary\Api

Afficher le fichier Open project: cloudinary/cloudinary_php Class Usage Examples

Méthodes publiques

Свойство Type Description
$CLOUDINARY_API_ERROR_CLASSES

Méthodes publiques

Méthode Description
call_api ( $method, $uri, $params, &$options )
create_streaming_profile ( $name, array $options = [] ) : Response Create a new streaming profile
create_transformation ( $name, $definition, $options = [] )
create_upload_mapping ( $name, $options = [] )
create_upload_preset ( $options = [] )
delete_all_resources ( $options = [] )
delete_derived_resources ( $derived_resource_ids, $options = [] )
delete_resources ( $public_ids, $options = [] )
delete_resources_by_prefix ( $prefix, $options = [] )
delete_resources_by_tag ( $tag, $options = [] )
delete_streaming_profile ( $name, array $options = [] ) : Response Delete a streaming profile information. Predefined profiles are restored to the default setting.
delete_transformation ( $transformation, $options = [] )
delete_upload_mapping ( $name, $options = [] )
delete_upload_preset ( $name, $options = [] )
get_streaming_profile ( $name, array $options = [] ) : Response Get the information of a single streaming profile
list_streaming_profiles ( array $options = [] ) : Response List all streaming profiles associated with the current customer
parse_json_response ( $response )
ping ( $options = [] )
resource ( $public_id, $options = [] )
resource_types ( $options = [] )
resources ( $options = [] )
resources_by_ids ( $public_ids, $options = [] )
resources_by_moderation ( $kind, $status, $options = [] )
resources_by_tag ( $tag, $options = [] )
restore ( $public_ids, $options = [] )
root_folders ( $options = [] )
subfolders ( $of_folder_path, $options = [] )
tags ( $options = [] )
transformation ( $transformation, $options = [] )
transformations ( $options = [] )
update ( $public_id, $options = [] )
update_streaming_profile ( $name, array $options = [] ) : Response Update an existing streaming profile
update_transformation ( $transformation, $updates = [], $options = [] ) # updates - currently only supported update is the "allowed_for_strict" boolean flag
update_upload_mapping ( $name, $options = [] )
update_upload_preset ( $name, $options = [] )
upload_mapping ( $name, $options = [] )
upload_mappings ( $options = [] )
upload_preset ( $name, $options = [] )
upload_presets ( $options = [] )
usage ( $options = [] )

Méthodes protégées

Méthode Description
execute ( $ch ) # Based on http://snipplr.com/view/17242/
only ( &$hash, $keys )
prepare_streaming_profile_params ( $options ) : array Prepare streaming profile parameters for API calls
transformation_string ( $transformation )

Method Details

call_api() public méthode

public call_api ( $method, $uri, $params, &$options )

create_streaming_profile() public méthode

Create a new streaming profile
public create_streaming_profile ( $name, array $options = [] ) : Response
$name the name of the new profile. if the name is of a predefined profile, the profile will be modified.
$options array additional options
Résultat Cloudinary\Api\Response

create_transformation() public méthode

public create_transformation ( $name, $definition, $options = [] )

create_upload_mapping() public méthode

public create_upload_mapping ( $name, $options = [] )

create_upload_preset() public méthode

public create_upload_preset ( $options = [] )

delete_all_resources() public méthode

public delete_all_resources ( $options = [] )

delete_derived_resources() public méthode

public delete_derived_resources ( $derived_resource_ids, $options = [] )

delete_resources() public méthode

public delete_resources ( $public_ids, $options = [] )

delete_resources_by_prefix() public méthode

public delete_resources_by_prefix ( $prefix, $options = [] )

delete_resources_by_tag() public méthode

public delete_resources_by_tag ( $tag, $options = [] )

delete_streaming_profile() public méthode

Delete a streaming profile information. Predefined profiles are restored to the default setting.
public delete_streaming_profile ( $name, array $options = [] ) : Response
$name the name of the streaming profile to delete
$options array additional options
Résultat Cloudinary\Api\Response

delete_transformation() public méthode

public delete_transformation ( $transformation, $options = [] )

delete_upload_mapping() public méthode

public delete_upload_mapping ( $name, $options = [] )

delete_upload_preset() public méthode

public delete_upload_preset ( $name, $options = [] )

execute() protected méthode

# Based on http://snipplr.com/view/17242/
protected execute ( $ch )

get_streaming_profile() public méthode

Get the information of a single streaming profile
public get_streaming_profile ( $name, array $options = [] ) : Response
$name the name of the profile
$options array other options
Résultat Cloudinary\Api\Response An array with a "data" key for results

list_streaming_profiles() public méthode

List all streaming profiles associated with the current customer
public list_streaming_profiles ( array $options = [] ) : Response
$options array options
Résultat Cloudinary\Api\Response An array with a "data" key for results

only() protected méthode

protected only ( &$hash, $keys )

parse_json_response() static public méthode

static public parse_json_response ( $response )

ping() public méthode

public ping ( $options = [] )

prepare_streaming_profile_params() protected méthode

Prepare streaming profile parameters for API calls
protected prepare_streaming_profile_params ( $options ) : array
$options the options passed to the API
Résultat array A single profile parameters

resource() public méthode

public resource ( $public_id, $options = [] )

resource_types() public méthode

public resource_types ( $options = [] )

resources() public méthode

public resources ( $options = [] )

resources_by_ids() public méthode

public resources_by_ids ( $public_ids, $options = [] )

resources_by_moderation() public méthode

public resources_by_moderation ( $kind, $status, $options = [] )

resources_by_tag() public méthode

public resources_by_tag ( $tag, $options = [] )

restore() public méthode

public restore ( $public_ids, $options = [] )

root_folders() public méthode

public root_folders ( $options = [] )

subfolders() public méthode

public subfolders ( $of_folder_path, $options = [] )

tags() public méthode

public tags ( $options = [] )

transformation() public méthode

public transformation ( $transformation, $options = [] )

transformation_string() protected méthode

protected transformation_string ( $transformation )

transformations() public méthode

public transformations ( $options = [] )

update() public méthode

public update ( $public_id, $options = [] )

update_streaming_profile() public méthode

Update an existing streaming profile
public update_streaming_profile ( $name, array $options = [] ) : Response
$name the name of the prodile
$options array additional options
Résultat Cloudinary\Api\Response

update_transformation() public méthode

# updates - currently only supported update is the "allowed_for_strict" boolean flag
public update_transformation ( $transformation, $updates = [], $options = [] )

update_upload_mapping() public méthode

public update_upload_mapping ( $name, $options = [] )

update_upload_preset() public méthode

public update_upload_preset ( $name, $options = [] )

upload_mapping() public méthode

public upload_mapping ( $name, $options = [] )

upload_mappings() public méthode

public upload_mappings ( $options = [] )

upload_preset() public méthode

public upload_preset ( $name, $options = [] )

upload_presets() public méthode

public upload_presets ( $options = [] )

usage() public méthode

public usage ( $options = [] )

Property Details

$CLOUDINARY_API_ERROR_CLASSES static_oe public_oe property

static public $CLOUDINARY_API_ERROR_CLASSES