AsposeDiagramCloud::ApiFactory - constructs APIs to retrieve AsposeDiagramCloud objects
package My::Petstore::App; use AsposeDiagramCloud::ApiFactory; my $api_factory = AsposeDiagramCloud::ApiFactory->new( ... ); # any args for ApiClient constructor # later... my $pet_api = $api_factory->get_api('Pet'); # $pet_api isa AsposeDiagramCloud::PetApi my $pet = $pet_api->get_pet_by_id(pet_id => $pet_id); # object attributes have proper accessors: printf "Pet's name is %s", $pet->name; # change the value stored on the object: $pet->name('Dave');
create a new AsposeDiagramCloud::ApiFactory instance with the given AsposeDiagramCloud::ApiClient instance.
Any parameters are optional, and are passed to and stored on the api_client object. See L<AsposeDiagramCloud::ApiClient> and L<AsposeDiagramCloud::Configuration> for valid parameters
Returns an API object of the requested type. $which is a nickname for the class: FooBarClient::BazApi has nickname 'Baz'
Returns the api_client object, should you ever need it.
To install AsposeDiagramCloud::DiagramApi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AsposeDiagramCloud::DiagramApi
CPAN shell
perl -MCPAN -e shell install AsposeDiagramCloud::DiagramApi
For more information on module installation, please visit the detailed CPAN module installation guide.