You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+54-31Lines changed: 54 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,36 @@
1
+
# perl-sdk / WebService::Hexonet::Connector
2
+
3
+
This module is a connector library for the insanely fast HEXONET Backend API. For further informations visit our [homepage](http://hexonet.net) and do not hesitate to [contact us](https://www.hexonet.net/contact).
NOTE: The above will also set `"hexont/php-sdk": "*"` as dependency entry in your composer.json. When running `composer install`this would always install the latest release version. This is dangerous for production systems as major version upgrades may come with breaking changes and are then incompatible with your app. For production systems we suggest to use a version dependent syntax, e.g. `composer require "hexonet/php-sdk:v3.0.3"`.
26
-
You can find the versions listed at packagist or at github in the release / tag overview.
32
+
NOTE: I got this only working by sudo'ing these commands.
33
+
In case you install by filename, please check the [release overview](https://github.com/hexonet/perl-sdk/releases) for the most current release and use that version instead.
27
34
28
35
### Usage Examples
29
36
@@ -35,34 +42,50 @@ Not yet available, this needs a review of the SDK.
35
42
36
43
#### Sessionless API Communication
37
44
38
-
```php
39
-
require __DIR__ . '/vendor/autoload.php';
40
-
41
-
// --- SESSIONLESS API COMMUNICATION ---
42
-
$api = \HEXONET\Connection::connect(array(
43
-
"url" => "https://coreapi.1api.net/api/call.cgi",
44
-
"login" => "test.user",
45
-
"password" => "test.passw0rd",
46
-
"entity" => "1234",
47
-
//"remoteaddr" => "1.2.3.4" //optional: use this in case of ip filter setting
# get the response code and the response description
73
+
my$code = $response->code();
74
+
my$description = $response->description();
75
+
76
+
print"$code$description";
54
77
```
55
78
56
79
## Contributing
57
80
58
-
Please read [our development guide](https://github.com/hexonet/java-sdk/wiki/Development-Guide) for details on our code of conduct, and the process for submitting pull requests to us.
81
+
Please read [our development guide](https://github.com/hexonet/perl-sdk/wiki/Development-Guide) for details on our code of conduct, and the process for submitting pull requests to us.
0 commit comments