view release on metacpan or search on metacpan
lib/App/opan.pm view on Meta::CPAN
L</carton> commands with C<--autopin> sets this for you, because you already
specified you wanted that).
=head2 uploads
To enable the /upload endpoint, set the ENV var OPAN_AUTH_TOKENS to a colon
separated list of accepted tokens for uploads. This will allow a post with a
'file' upload argument, checking http basic auth password against the provided
auth tokens.
=head2 recurring pull
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/org2wp.pm view on Meta::CPAN
; use INI (IOD) format for this file
proxy=https://YOURBLOGNAME.wordpress.com/xmlrpc.php
username=YOURUSERNAME
password=YOURPASSWORD
Note that `proxy` is the endpoint URL of your WordPress instance's XML-RPC
server, which can be hosted on `wordpress.com` or on other server, including
your own. It has nothing to do with HTTP/HTTPS proxy; the term "proxy" is used
by the <pm:XMLRPC::Lite> and <pm:SOAP::Lite> Perl libraries and `org2wp` simply
uses the same terminology.
lib/App/org2wp.pm view on Meta::CPAN
req => 1,
description => <<'_',
Example: `https://YOURBLOGNAME.wordpress.com/xmlrpc.php`.
Note that `proxy` is the endpoint URL of your WordPress instance's XML-RPC
server, which can be hosted on `wordpress.com` or on other server, including
your own. It has nothing to do with HTTP/HTTPS proxy; the term "proxy" is used
by the <pm:XMLRPC::Lite> and <pm:SOAP::Lite> Perl libraries and `org2wp` simply
uses the same terminology.
lib/App/org2wp.pm view on Meta::CPAN
; use INI (IOD) format for this file
proxy=https://YOURBLOGNAME.wordpress.com/xmlrpc.php
username=YOURUSERNAME
password=YOURPASSWORD
Note that C<proxy> is the endpoint URL of your WordPress instance's XML-RPC
server, which can be hosted on C<wordpress.com> or on other server, including
your own. It has nothing to do with HTTP/HTTPS proxy; the term "proxy" is used
by the L<XMLRPC::Lite> and L<SOAP::Lite> Perl libraries and C<org2wp> simply
uses the same terminology.
lib/App/org2wp.pm view on Meta::CPAN
=item * B<proxy>* => I<str>
Example: CL<https://YOURBLOGNAME.wordpress.com/xmlrpc.php>.
Note that C<proxy> is the endpoint URL of your WordPress instance's XML-RPC
server, which can be hosted on C<wordpress.com> or on other server, including
your own. It has nothing to do with HTTP/HTTPS proxy; the term "proxy" is used
by the L<XMLRPC::Lite> and L<SOAP::Lite> Perl libraries and C<org2wp> simply
uses the same terminology.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/perlrdf/Command/Query.pm view on Meta::CPAN
}
use App::perlrdf -command;
use namespace::clean;
use constant abstract => q (query stores, files or remote endpoints with SPARQL);
use constant command_names => qw( query sparql q );
use constant description => <<'DESCRIPTION';
Use SPARQL to query:
* an RDF::Trine::Store;
* a remote SPARQL Protocol (1.0/1.1) endpoint; or
* one or more input files;
But not a combination of the above.
DESCRIPTION
lib/App/perlrdf/Command/Query.pm view on Meta::CPAN
[ 'input-format|p=s', 'Input format (mnemonic: parse)' ],
[ 'input-base|b=s', 'Input base URI' ],
[ 'graph|g=s', 'Graph URI for input' ],
[ 'autograph|G', 'Generate graph URI based on input URI' ],
[]=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>,
[ 'endpoint=s', 'Remote SPARQL Protocol endpoint' ],
[ 'query_method=s', 'Query method (GET/POST/etc)' ],
[]=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>,
[ 'execute|e=s', 'Query to execute' ],
[ 'sparql-file|f=s', 'File containing query to execute' ],
[]=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>
lib/App/perlrdf/Command/Query.pm view on Meta::CPAN
{
my ($self, $opt, $arg) = @_;
my %exclusions = (
execute => ['sparql_file'],
endpoint => [
qw[ store dbi sqlite username password host port dbname database ],
qw[ input input_spec input_format input_base ],
],
query_method => [
qw[ store dbi sqlite username password host port dbname database ],
qw[ input input_spec input_format input_base ],
],
map { ; $_ => [
qw[ store dbi sqlite username password host port dbname database ],
qw[ endpoint ],
] } qw( input input_spec input_format input_base )
);
foreach my $k (keys %exclusions)
{
lib/App/perlrdf/Command/Query.pm view on Meta::CPAN
require RDF::Trine;
my ($self, $opt, $arg) = @_;
my $sparql = $self->_sparql($opt, $arg);
if (exists $opt->{endpoint})
{
return $self->_process_sparql($opt, $arg, $sparql, $opt->{endpoint});
}
my $model = $self->_model($opt, $arg);
$self->_process_sparql($opt, $arg, $sparql, $model);
}
view all matches for this distribution
view release on metacpan or search on metacpan
inverted.
To include a literal 'C<^>', place it anywhere else but first. To
include a literal 'C<]>' place it first or immediately after an
initial B<^>. To include a literal 'C<->' make it the first (or
second after B<^>) or last character, or the second endpoint of
a range.
The special bracket expression constructs C<[[:E<lt>:]]> and C<[[:E<gt>:]]>
match the null string at the beginning and end of a word respectively.
(Note that neither is identical to Perl's '\b' atom.)
view all matches for this distribution
view release on metacpan or search on metacpan
script/skos2jskos view on Meta::CPAN
use RDF::Query::Client;
my $source = $opt{sparql} || RDF::Trine::Model->new;
if ( $opt{sparql} ) {
info "Getting RDF from SPARQL endpoint " . $opt{sparql};
}
elsif ( $ARGV[0] =~ qr{^https?://} ) {
info "Reading RDF from $ARGV[0]";
RDF::Trine->default_useragent->ssl_opts( verify_hostname => 0 );
RDF::Trine::Parser->parse_url_into_model( $ARGV[0], $source );
script/skos2jskos view on Meta::CPAN
skos2jskos OPTIONS [ FILES | URL ]
=head1 USAGE
This script can be used to convert SKOS data from local RDF files, URL, or
SPARQL-endpoint to L<JSKOS format|https://gbv.github.io/jskos/> (SKOS in
JSON-LD). The script is aligned with JSKOS 0.4.4 but it does not cover all
possible fields yet.
On success the following files are created in normalized JSON:
script/skos2jskos view on Meta::CPAN
Concept scheme URI
=item --sparql | -q
SPARQL endpoint
=item --help | -h | -?
Show usage description
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/soapcli.pm view on Meta::CPAN
my $argv = delete $args{argv};
local @ARGV = $argv ? @$argv : @ARGV;
my ($opts, $usage) = Getopt::Long::Descriptive::describe_options(
"$0 %o data.yml [http://schema | schema.url] [endpoint#port] [operation]",
[ 'verbose|v', 'verbose mode with messages trace', ],
[ 'dump-xml-request|x', 'dump request as XML document', ],
[ 'explain|e', 'explain webservice as Perl code', ],
[ 'help|h', 'print usage message and exit', ],
[ 'json|j', 'output result as JSON document', ],
lib/App/soapcli.pm view on Meta::CPAN
slurp($wsdlsrc);
};
} or die "Can not read WSDL data from `$wsdlsrc': $!\n";
my $arg_endpoint = $self->{extra_argv}->[2];
my $request = do {
if ($arg_request =~ /^{/) {
$arg_request =~ s/\n//g;
lib/App/soapcli.pm view on Meta::CPAN
$value =~ m/^[0-9a-fA-F]+$/ or error __x"{path} contains illegal characters", path => $path;
return pack 'H*', $value;
});
my $port = do {
if (defined $arg_endpoint and $arg_endpoint =~ /#(.*)$/) {
$1;
}
else {
undef;
}
};
my $endpoint = do {
if (defined $arg_endpoint and $arg_endpoint !~ /^#/) {
my $url = $arg_endpoint =~ m{://} ? $arg_endpoint : slurp($arg_endpoint, {chomp=>1});
chomp $url;
$url =~ s/^(.*)#(.*)$/$1/;
$url;
}
else {
lib/App/soapcli.pm view on Meta::CPAN
}
};
my $http = XML::Compile::Transport::SOAPHTTP->new(
address => $endpoint,
);
$http->userAgent->agent("soapcli/$VERSION");
$http->userAgent->env_proxy;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/txtnix/Registry.pm view on Meta::CPAN
my ( $self, $url, $nickname ) = @_;
croak('Parameter url or nickname missing')
if !$url && !$nickname;
my $endpoint = Mojo::URL->new( $self->url )->path('/api/plain/users')
->query( nickname => $nickname, url => $url );
my $tx = $self->ua->post($endpoint);
return 1 if $tx->success;
warn "Can't add user: " . $tx->error->{message} . "\n";
return 0;
lib/App/txtnix/Registry.pm view on Meta::CPAN
sub get_users {
my ( $self, $user, $cb ) = @_;
my $query = Mojo::URL->new( $self->url )->path('/api/plain/users')
->query( q => $user || '' );
return $self->query_endpoint( $query, $cb );
}
sub get_tweets {
my ( $self, $text, $cb ) = @_;
my $query = Mojo::URL->new( $self->url )->path('/api/plain/tweets')
->query( q => $text || '' );
return $self->query_endpoint( $query, $cb );
}
sub get_tags {
my ( $self, $tag, $cb ) = @_;
croak('Parameter tag must be provided for get_tag.')
if not $tag;
my $query = Mojo::URL->new( $self->url )->path("/api/plain/tags/$tag");
return $self->query_endpoint( $query, $cb );
}
sub get_mentions {
my ( $self, $url, $cb ) = @_;
croak('Parameter url must be provided for get_mentions.')
if not $url;
my $query = Mojo::URL->new( $self->url )->path('/api/plain/mentions')
->query( url => $url );
return $self->query_endpoint( $query, $cb );
}
sub process_result {
my ( $self, $tx ) = @_;
my @result;
lib/App/txtnix/Registry.pm view on Meta::CPAN
}
}
return @result;
}
sub query_endpoint {
my ( $self, $endpoint, $cb ) = @_;
if ($cb) {
return $self->ua->get(
$endpoint => sub {
my ( $ua, $tx ) = @_;
my @result = $self->process_result($tx);
$cb->(@result);
}
);
}
return $self->process_result( $self->ua->get($endpoint) );
}
1;
view all matches for this distribution
view release on metacpan or search on metacpan
eval "require $module; require App::wdq"; ## no critic
$module->new->parse_from_file( $INC{'App/wdq.pm'} // $0 );
exit;
}
# default SPARQL endpoint
$OPT{api} //= 'https://query.wikidata.org/bigdata/namespace/wdq/sparql';
# add default prefixes by default
$OPT{'default-prefixes'} //= 1;
By default output is colored if writing to a terminal. Disable this with
C<--no-color>, C<--monochrome>, or C<-M>. Force color with C<--color> or C<-C>.
=item --api URL
SPARQL endpoint. Default value:
C<https://query.wikidata.org/bigdata/namespace/wdq/sparql>
=item --no-mediawiki|-m
Don't query MediaWiki API to map URLs to Wikidata items.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/wsgetmail/MS365/Client.pm view on Meta::CPAN
=back
=head2 resource_url
A string with the URL for the overall API endpoint.
=cut
has resource_url => (
is => 'ro',
default => sub { return 'https://graph.microsoft.com/' }
);
=head2 resource_path
A string with the REST API endpoint URL path.
=cut
has resource_path => (
is => 'ro',
lib/App/wsgetmail/MS365/Client.pm view on Meta::CPAN
}
=head1 METHODS
=head2 build_rest_uri(@endpoint_parts)
Given a list of URL component strings, returns a complete URL string to
reach that endpoint from this object's C<resource_url> and C<resource_path>.
=cut
sub build_rest_uri {
my ($self, @endpoint_parts) = @_;
my $base_url = $self->resource_url . $self->resource_path;
return join('/', $base_url, @endpoint_parts);
}
=head2 get_request($parts, $params)
Makes a GET request to the API. C<$parts> is an arrayref of URL endpoint
strings with the specific endpoint to request. C<$params> is a hashref of
query parameters to send with the request.
=cut
sub get_request {
lib/App/wsgetmail/MS365/Client.pm view on Meta::CPAN
return $self->_ua->get($url);
}
=head2 delete_request($parts, $params)
Makes a DELETE request to the API. C<$parts> is an arrayref of URL endpoint
strings with the specific endpoint to request. C<$params> is unused.
=cut
sub delete_request {
my ($self, $parts, $params) = @_;
lib/App/wsgetmail/MS365/Client.pm view on Meta::CPAN
}
=head2 post_request($path_parts, $post_data)
Makes a POST request to the API. C<$path_parts> is an arrayref of URL
endpoint strings with the specific endpoint to request. C<$post_data> is a
reference to an array or hash of data to include in the POST request body.
=cut
sub post_request {
lib/App/wsgetmail/MS365/Client.pm view on Meta::CPAN
}
=head2 patch_request($path_parts, $patch_params)
Makes a PATCH request to the API. C<$path_parts> is an arrayref of URL
endpoint strings with the specific endpoint to request. C<$patch_params> is
a hashref of data to include in the PATCH request body.
=cut
sub patch_request {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Appium.pm view on Meta::CPAN
=head1 DESCRIPTION
Appium is an open source test automation framework for use with native
and hybrid mobile apps. It drives iOS and Android apps using the
WebDriver JSON wire protocol. This module is a thin extension of
L<Selenium::Remote::Driver> that adds Appium specific API endpoints
and Appium-specific constructor defaults. It's woefully incomplete at
the moment, so feel free to pitch in at the L<Github
repo|https://github.com/appium/perl-client>! For details on how Appium
extends the Webdriver spec, see the Selenium project's L<spec-draft
document|https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile>.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apple/AppStoreConnect.pm view on Meta::CPAN
If the request is not successful, it will C<die> throwing the C<< HTTP::Response->status_line >>.
=over 4
=item * C<url> : A URL to an API endpoint. Can pass the full URL, e.g. C<url =E<gt> 'https://api.appstoreconnect.apple.com/v1/apps'>,
or you can omit the part up to I<v1/> (i.e. C<url =E<gt> 'apps'>).
=item * C<params> : Any other query params that you need to pass
(see L<API documentation|https://developer.apple.com/documentation/appstoreconnectapi>).
view all matches for this distribution
view release on metacpan or search on metacpan
share/root/socket.io-0.9.16.js view on Meta::CPAN
*/
parser.encodePacket = function (packet) {
var type = indexOf(packets, packet.type)
, id = packet.id || ''
, endpoint = packet.endpoint || ''
, ack = packet.ack
, data = null;
switch (packet.type) {
case 'error':
share/root/socket.io-0.9.16.js view on Meta::CPAN
// construct packet with required fragments
var encoded = [
type
, id + (ack == 'data' ? '+' : '')
, endpoint
];
// data fragment is optional
if (data !== null && data !== undefined)
encoded.push(data);
share/root/socket.io-0.9.16.js view on Meta::CPAN
var id = pieces[2] || ''
, data = pieces[5] || ''
, packet = {
type: packets[pieces[1]]
, endpoint: pieces[4] || ''
};
// whether we need to acknowledge the packet
if (id) {
packet.id = id;
share/root/socket.io-0.9.16.js view on Meta::CPAN
if (packet.type == 'heartbeat') {
return this.onHeartbeat();
}
if (packet.type == 'connect' && packet.endpoint == '') {
this.onConnect();
}
if (packet.type == 'error' && packet.advice == 'reconnect') {
this.isOpen = false;
share/root/socket.io-0.9.16.js view on Meta::CPAN
*
* @param text
*/
Socket.prototype.onPacket = function (packet) {
this.of(packet.endpoint).onPacket(packet);
};
/**
* Handles an error.
*
share/root/socket.io-0.9.16.js view on Meta::CPAN
*
* @api private
*/
SocketNamespace.prototype.packet = function (packet) {
packet.endpoint = this.name;
this.socket.packet(packet);
this.flags = {};
return this;
};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Arango/Tango.pm view on Meta::CPAN
BEGIN {
Arango::Tango::API::_install_methods "Arango::Tango" => {
engine => { rest => [ get => '_api/engine' ] },
cluster_endpoints => { rest => [ get => '_api/cluster/endpoints' ] },
server_id => { rest => [ get => '_admin/server/id' ] },
status => { rest => [ get => '_admin/status' ] },
time => { rest => [ get => '_admin/time' ] },
statistics => { rest => [ get => '_admin/statistics' ] },
statistics_description => { rest => [ get => '_admin/statistics-description' ] },
lib/Arango/Tango.pm view on Meta::CPAN
my $mode = $db->server_role();
Returns the role of a server in a cluster.
=item C<cluster_endpoints>
my $endpoints = $db->cluster_endpoints;
Returns an object with an attribute endpoints, which contains an array
of objects, which each have the attribute endpoint, whose value is a
string with the endpoint description. There is an entry for each
coordinator in the cluster. This method only works on coordinators in
cluster mode. In case of an error the error attribute is set to true.
=item C<version>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ArangoDB2.pm view on Meta::CPAN
# new
#
# create new ArangoDB2 instance from string argument specifying
# API endpoint or hashref of args
sub new
{
my($class, $uri, $username, $password) = @_;
# create instance
my $self = {};
lib/ArangoDB2.pm view on Meta::CPAN
# databases
#
# Index of active ArangoDB2::Database objects by name
sub databases { $_[0]->{databases} ||= {} }
# endpoint
#
# ArangoDB2::Endpoint object
sub endpoint
{
my($self, $name) = @_;
return ArangoDB2::Endpoint->new($self, $name);
}
lib/ArangoDB2.pm view on Meta::CPAN
=item database
=item databases
=item endpoint
=item http
=item http_client
lib/ArangoDB2.pm view on Meta::CPAN
=over 4
=item uri
L<URI> of ArangoDB endpoint.
=item password
Password to use when accessing ArangoDB.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Ark/Plugin/ReproxyCallback/OpenSocial.pm view on Meta::CPAN
my ($self) = @_;
$self->class_config->{oauth_consumer_model} || 'oauth_consumer';
},
);
has reproxy_callback_opensocial_api_endpoint => (
is => 'rw',
isa => 'Str',
lazy => 1,
default => sub {
my ($self) = @_;
$self->class_config->{api_endpoint} || 'http://api.mixi-platform.com/os/0.8';
},
);
around reproxy => sub {
my $next = shift;
lib/Ark/Plugin/ReproxyCallback/OpenSocial.pm view on Meta::CPAN
my $args = @_ > 1 ? {@_} : $_[0];
my $cb = delete $args->{callback};
my $params = delete $args->{params};
my $uri = URI->new( $c->reproxy_callback_opensocial_api_endpoint . $path );
$uri->query_form(%$params) if $params;
$c->reproxy(
request => HTTP::Request->new( $method => $uri ),
callback => $cb,
lib/Ark/Plugin/ReproxyCallback/OpenSocial.pm view on Meta::CPAN
sub reproxy_people {
my $cb = pop @_;
my ($c, $guid, $target, $params) = @_;
my $uri = URI->new( $c->reproxy_callback_opensocial_api_endpoint );
$uri->path( $uri->path . "/people/${guid}/${target}" );
$uri->query_form(%$params) if $params;
$c->reproxy(
request => HTTP::Request->new( GET => $uri ),
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Array/Tour.pm view on Meta::CPAN
I<Starting value: 0.> The number of cells visited thus far.
=item tourlength
I<Default value: number of cells in the array.> The total number of cells
to visit. This is sometimes used to determine the endpoint of the tour.
=item tourstatus
Initially set to B<START>. The remaining _tourstatus values (found with
the export tag C<:status>) are B<TOURING> and B<STOP>.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ArrayData/Lingua/Word/EN/Enable.pm view on Meta::CPAN
endozoic
endpaper
endpapers
endplate
endplates
endpoint
endpoints
endrin
endrins
ends
endue
endued
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ArrayData/Word/EN/Enable.pm view on Meta::CPAN
endozoic
endpaper
endpapers
endplate
endplates
endpoint
endpoints
endrin
endrins
ends
endue
endued
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Articulate.pm view on Meta::CPAN
B<Articulate> provides a content management service for your web app.
It's lightweight, i.e. it places minimal demands on your app while
maximising 'whipuptitude': it gives you a single interface in code to a
framework that's totally modular underneath, and it won't claim any URL
endpoints for itself.
You don't need to redesign your app around Articulate, it's a service
that you call on when you need it, and all the 'moving parts' can be
switched out if you want to do things your way.
lib/Articulate.pm view on Meta::CPAN
In a B<route>, you parse user input and pick the parameters you want to
send to the B<service>. Have a look at
L<Articulate::Routes::Transparent> for some examples. The intention is
that routes are as 'thin' as possible: business logic should all be
done by some part of the service and not in the route handler. The
route handler maps endpoints (URLs) to service requests; structured
responses are passed back as return values and are picked up by the
B<serialiser>.
B<Routes> pass B<requests> to B<services>. A B<request> contains a
B<verb> (like C<create>) and B<data> (like the B<location> you want to
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Artifactory/Client.pm view on Meta::CPAN
my $resp = $client->deploy_artifact( path => $path, properties => $properties, file => $file );
# Custom requests can also be made via usual get / post / put / delete requests.
my $resp = $client->get( 'http://artifactory.server.com/path/to/resource' );
# Repository override for calls that have a repository in the endpoint. The passed-in repository will not persist.
my $resp = $client->calculate_yum_repository_metadata( repository => 'different_repo', async => 1 );
=cut
=head1 Dev Env Setup / Running Tests
lib/Artifactory/Client.pm view on Meta::CPAN
sub system_info {
my $self = shift;
return $self->_handle_system();
}
=head2 verify_connection( endpoint => 'http://server/foobar', username => 'admin', password => 'password' )
Verifies a two-way connection between Artifactory and another product
=cut
lib/Artifactory/Client.pm view on Meta::CPAN
return $self->_handle_system_settings( 'export', %args );
}
=head2 ignore_xray_alert( $path )
Sets an alert to be ignored until next time the repository hosting the artifact about which the alert was issued, is scanned. Note that this endpoint does not
affect artifacts that are blocked because they have not been scanned at all.
=cut
sub ignore_xray_alert {
lib/Artifactory/Client.pm view on Meta::CPAN
return $self->post($url);
}
=head2 allow_download_when_xray_is_unavailable( 'true'|'false' )
You may configure Artifactory to block downloads of artifacts when the connected Xray instance is unavailable. This endpoint lets you override that
configuration (and allow download of artifacts).
=cut
sub allow_download_when_xray_is_unavailable {
lib/Artifactory/Client.pm view on Meta::CPAN
my $url = $self->_api_url() . "/gpg/key/$type";
return $self->$method( $url, %args );
}
sub _handle_repository_reindex {
my ( $self, $endpoint, %args ) = @_;
my $url =
(%args)
? $self->_api_url() . $endpoint . "?"
: $self->_api_url() . $endpoint;
$url .= $self->_stringify_hash( '&', %args ) if (%args);
return $self->post($url);
}
sub _handle_multi_push_replication {
lib/Artifactory/Client.pm view on Meta::CPAN
content => $self->_json->encode( \%args )
);
}
sub _handle_revoke_api_key {
my ( $self, $endpoint ) = @_;
my $resp = $self->get_api_key();
my $content = $self->_json->decode( $resp->content );
my %header;
$header{'X-Api-Key'} = $content->{apiKey};
my $url = $self->_api_url() . $endpoint;
return $self->delete( $url, %header );
}
sub _handle_block_system_replication {
my ( $self, $ep, %args ) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeBarCodeCloud/ApiClient.pm view on Meta::CPAN
}
$self->{http_timeout} = $seconds;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeCellsCloud/ApiClient.pm view on Meta::CPAN
my $access_token = $self->o_auth_post('grant_type' => "client_credentials", 'client_id' => $self->{config}->{client_id}, 'client_secret' =>$self->{config}->{client_secret})->access_token;
$self->{config}->{access_token} = $access_token;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
lib/AsposeCellsCloud/ApiClient.pm view on Meta::CPAN
return;
}
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/AsposeCellsCloud/ApiClient.pm view on Meta::CPAN
# TODO show warning about security definition not found
}
}
}
# The endpoint API class has not found any settings for auth. This may be deliberate,
# in which case update_params_for_auth() will be a no-op. But it may also be that the
# OpenAPI Spec does not describe the intended authorization. So we check in the config for any
# auth tokens and if we find any, we use them for all endpoints;
sub _global_auth_setup {
my ($self, $header_params, $query_params) = @_;
my $tokens = $self->{config}->get_tokens;
return unless keys %$tokens;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeDiagramCloud/ApiClient.pm view on Meta::CPAN
$self->{get_access_token_time} = time();
return $_response_object;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
lib/AsposeDiagramCloud/ApiClient.pm view on Meta::CPAN
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/AsposeDiagramCloud/ApiClient.pm view on Meta::CPAN
# TODO show warning about security definition not found
}
}
}
# The endpoint API class has not found any settings for auth. This may be deliberate,
# in which case update_params_for_auth() will be a no-op. But it may also be that the
# OpenAPI Spec does not describe the intended authorization. So we check in the config for any
# auth tokens and if we find any, we use them for all endpoints;
sub _global_auth_setup {
my ($self, $header_params, $query_params) = @_;
my $tokens = $self->{config}->get_tokens;
return unless keys %$tokens;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeEmailCloud/ApiClient.pm view on Meta::CPAN
}
$self->{http_timeout} = $seconds;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeImagingCloud/ApiClient.pm view on Meta::CPAN
}
$self->{http_timeout} = $seconds;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeOcrCloud/ApiClient.pm view on Meta::CPAN
}
$self->{http_timeout} = $seconds;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposePdfCloud/ApiClient.pm view on Meta::CPAN
}
$self->{http_timeout} = $seconds;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeSlidesCloud/ApiClient.pm view on Meta::CPAN
return bless \%args, $class;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postParams parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @param array $body_data data to be place in request body
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeStorageCloud/ApiClient.pm view on Meta::CPAN
}
$self->{http_timeout} = $seconds;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeTasksCloud/ApiClient.pm view on Meta::CPAN
}
$self->{http_timeout} = $seconds;
}
# make the HTTP request
# @param string $resourcePath path to method endpoint
# @param string $method method to call
# @param array $queryParams parameters to be place in query URL
# @param array $postData parameters to be placed in POST body
# @param array $headerParams parameters to be place in request header
# @return mixed
view all matches for this distribution