55<!--
66 generated by Pod::Simple::HTML v3.35,
77 using Pod::Simple::PullParser v3.35,
8- under Perl v5.026001 at Fri Aug 3 08:07:48 2018 GMT.
8+ under Perl v5.026001 at Wed Dec 12 10:23:28 2018 GMT.
99
1010 If you want to change this HTML document, you probably shouldn't do that
1111 by changing it directly. Instead, see about changing the calling options
@@ -40,35 +40,33 @@ <h1><a class='u'
4040 cpanm WebService::Hexonet::Connector
4141 # NOTE: We suggest to use cpanm (App::cpanminus) for several reasons.
4242
43-
43+ use 5.014_004;
4444 use strict;
4545 use warnings;
46- use WebService::Hexonet::Connector;
46+ use WebService::Hexonet::Connector::APIClient ;
4747
4848 # Create a connection with the URL, entity, login and password
4949 # Use "1234" as entity for the OT&E, and "54cd" for productive use
5050 # Don't have a Hexonet Account yet? Get one here: www.hexonet.net/sign-up
51- my $api = WebService::Hexonet::Connector::connect({
52- url => 'https://coreapi.1api.net/api/call.cgi',
53- entity => '1234',
54- login => 'test.user',
55- password => 'test.passw0rd',
56- });
51+ my $cl = APIClient->new();
52+ $cl->useOTESystem();
53+ $cl->setCredentials("test.user", "test.passw0rd");
54+ $cl->setRemoteIPAddress("1.2.3.4");
5755
5856 # Call a command
59- my $response = $api ->call ({
57+ my $response = $cl ->request ({
6058 command => "querydomainlist",
6159 limit => 5
6260 });
6361
6462 # Display the result in the format you want
65- my $res = $response->as_list( );
66- $res = $response->as_list_hash ();
67- $res = $response->as_hash ();
63+ my $res = $response->getListHash() );
64+ $res = $response->getHash ();
65+ $res = $response->getPlain ();
6866
6967 # Get the response code and the response description
70- my $code = $response->code ();
71- my $description = $response->description ();
68+ my $code = $response->getCode ();
69+ my $description = $response->getDescription ();
7270
7371 print "$code $description";</ pre >
7472
@@ -87,48 +85,59 @@ <h1><a class='u'
8785< p > We've split our functionality into submodules to give this module a better structure.</ p >
8886
8987< dl >
90- < dt > < a name ="WebService::Hexonet::Connector::Connection_-_API_Client_functionality. "
91- > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AConnection " class ="podlinkpod "
92- > WebService::Hexonet::Connector::Connection</ a > - API Client functionality.</ a > </ dt >
88+ < dt > < a name ="WebService::Hexonet::Connector::APIClient_-_API_Client_functionality. "
89+ > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AAPIClient " class ="podlinkpod "
90+ > WebService::Hexonet::Connector::APIClient</ a > - API Client functionality.</ a > </ dt >
91+
92+ < dd >
93+ < dt > < a name ="WebService::Hexonet::Connector::Column_-_API_Response_Data_handling_as_"Column". "
94+ > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AColumn " class ="podlinkpod "
95+ > WebService::Hexonet::Connector::Column</ a > - API Response Data handling as "Column".</ a > </ dt >
96+
97+ < dd >
98+ < dt > < a name ="WebService::Hexonet::Connector::Record_-_API_Response_Data_handling_as_"Record". "
99+ > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3ARecord " class ="podlinkpod "
100+ > WebService::Hexonet::Connector::Record</ a > - API Response Data handling as "Record".</ a > </ dt >
93101
94102< dd >
95103< dt > < a name ="WebService::Hexonet::Connector::Response_-_API_Response_functionality. "
96104> < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AResponse " class ="podlinkpod "
97105> WebService::Hexonet::Connector::Response</ a > - API Response functionality.</ a > </ dt >
98106
99107< dd >
100- < dt > < a name ="WebService::Hexonet::Connector::Util_-_Bundle_of_Helper_methods. "
101- > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AUtil " class ="podlinkpod "
102- > WebService::Hexonet::Connector::Util</ a > - Bundle of Helper methods.</ a > </ dt >
103- </ dl >
108+ < dt > < a name ="WebService::Hexonet::Connector::ResponseParser_-_API_Response_Parser_functionality. "
109+ > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AResponseParser " class ="podlinkpod "
110+ > WebService::Hexonet::Connector::ResponseParser</ a > - API Response Parser functionality.</ a > </ dt >
104111
105- < h1 > < a class ='u '
106- name ="METHODS_WebService::Hexonet::Connector "
107- > METHODS WebService::Hexonet::Connector</ a > </ h1 >
112+ < dd >
113+ < dt > < a name ="WebService::Hexonet::Connector::ResponseTemplate_-_API_Response_Template_functionality. "
114+ > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AResponseTemplate " class ="podlinkpod "
115+ > WebService::Hexonet::Connector::ResponseTemplate</ a > - API Response Template functionality.</ a > </ dt >
108116
109- < dl >
110- < dt > < a name ="connect(url,_entity,_login,_password,_user,_role) "
111- > < code > connect(url, entity, login, password, user, role)</ code > </ a > </ dt >
117+ < dd >
118+ < dt > < a name ="WebService::Hexonet::Connector::ResponseTemplateManager_-_API_Response_Template_Manager_functionality. "
119+ > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3AResponseTemplateManager " class ="podlinkpod "
120+ > WebService::Hexonet::Connector::ResponseTemplateManager</ a > - API Response Template Manager functionality.</ a > </ dt >
112121
113122< dd >
114- < p > Function connect Returns a Connection object connected to the API Server (URL, ENTITY, LOGIN, PASSWORD are mandatory to connect the server, ROLE ans USER are optional)</ p >
115- </ dd >
123+ < dt > < a name ="WebService::Hexonet::Connector::SocketConfig_-_API_Communication_Configuration_functionality. "
124+ > < a href ="http://search.cpan.org/perldoc?WebService%3A%3AHexonet%3A%3AConnector%3A%3ASocketConfig " class ="podlinkpod "
125+ > WebService::Hexonet::Connector::SocketConfig</ a > - API Communication Configuration functionality.</ a > </ dt >
116126</ dl >
117127
118128< h1 > < a class ='u '
119- name ="AUTHOR "
120- > AUTHOR </ a > </ h1 >
129+ name ="LICENSE_AND_COPYRIGHT "
130+ > LICENSE AND COPYRIGHT </ a > </ h1 >
121131
122- < p > Hexonet GmbH</ p >
123-
124- < p > < a href ="https://www.hexonet.net " class ="podlinkurl "
125- > https://www.hexonet.net</ a > </ p >
132+ < p > This program is licensed under the < a href ="https://raw.githubusercontent.com/hexonet/perl-sdk/master/LICENSE " class ="podlinkurl "
133+ > MIT License</ a > .</ p >
126134
127135< h1 > < a class ='u '
128- name ="LICENSE "
129- > LICENSE </ a > </ h1 >
136+ name ="AUTHOR "
137+ > AUTHOR </ a > </ h1 >
130138
131- < p > MIT</ p >
139+ < p > < a href ="https://www.hexonet.net " class ="podlinkurl "
140+ > HEXONET GmbH</ a > </ p >
132141
133142<!-- end doc -->
134143
0 commit comments