Apigee::Edge::Helper - Helpers for Apigee::Edge
use Apigee::Edge::Helper; my $apigee = Apigee::Edge::Helper->new( org => 'apigee_org', usr => 'your_email', pwd => 'your_password' );
it builts top on Apigee::Edge with same useful helpers.
my $app = $apigee->get_top_developer_app($email);
get the first app belongs to developer ($email) and flatten attrs into app
my $app = $apigee->refresh_developer_app( app => $old_app, # optional, app hashref, can be from get_top_developer_app email => $client_email, name => $name, callbackUrl => $callback_url, apiProducts => ['ProductName'], # optional firstName => $first_name, lastName => $last_name, userName => $loginid, ); warn $apigee->errstr;
when param app is provided, we'll update the $old_app to $app with name to be a DisplayName attr and callbackUrl updated..
when param app is not provided, we'll first call get_top_developer_app to find the app to update. if app is not created yet, we'll create a new developer on the fly with email/firstName/lastName/userName and created related developer_app with name/callbackUrl and apiProducts.
my $clients = $apigee->get_all_clients();
with consumerKey as key and DisplayName || name as the value.
https://github.com/binary-com/perl-Apigee-Edge
Binary.com <fayland@binary.com>
Copyright 2014- Binary.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Apigee::Edge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apigee::Edge
CPAN shell
perl -MCPAN -e shell install Apigee::Edge
For more information on module installation, please visit the detailed CPAN module installation guide.