BmltClient-ApiClient

 view release on metacpan or  search on metacpan

lib/BmltClient/ApiClient.pm  view on Meta::CPAN


    my $prefix = $self->{config}{api_key_prefix}{$key_name};
    return $prefix ? "$prefix $api_key" : $api_key;
}

# update header and query param based on authentication setting
#
# @param array $headerParams header parameters (by ref)
# @param array $queryParams query parameters (by ref)
# @param array $authSettings array of authentication scheme (e.g ['api_key'])
sub update_params_for_auth {
    my ($self, $header_params, $query_params, $auth_settings) = @_;

    return $self->_global_auth_setup($header_params, $query_params)
        unless $auth_settings && @$auth_settings;

    # one endpoint can have more than 1 auth settings
    foreach my $auth (@$auth_settings) {
        # determine which one to use
        if (!defined($auth)) {
            # TODO show warning about auth setting not defined

lib/BmltClient/RootServerApi.pm  view on Meta::CPAN

    },
    };
    __PACKAGE__->method_documentation->{ 'update_format' } = {
        summary => 'Updates a format',
        params => $params,
        returns => undef,
        };
}
# @return void
#
sub update_format {
    my ($self, %args) = @_;

    # verify the required parameter 'format_id' is set
    unless (exists $args{'format_id'}) {
      croak("Missing the required parameter 'format_id' when calling update_format");
    }

    # verify the required parameter 'format_update' is set
    unless (exists $args{'format_update'}) {
      croak("Missing the required parameter 'format_update' when calling update_format");

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.363 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )