...
STEP 1: Start by downloading the example files.
STEP 2: Install Install gcc
for Linux.
Tip |
---|
You may skip this step for Windows, since Ruby for Windows comes with an installation package. |
gcc gcc should come with your operating system, otherwise simply run one of the commands below, depending on your Linux distribution.
...
STEP 3: Install Ruby
. You should use Ruby 1.8.6
or later for Linux and and Ruby 1.8.7 7
or later for Windows.
Note |
---|
It seems that |
...
STEP 4: You need rubygems
in order to install SOAP4R
. If rubygems
was not installed with Ruby
, you can download it from from here. After downloading, extract the contents of the archive to a temporary folder, go to that folder and run:
...
You will need a custom header for the SystemAPI messageSystemAPI message, therefore you will create a new class called AuthHeader that will be customized for each authentication method. Please find it detailed below.
...
The following example shows how to add a new service provider. It It also fetches the list of charging plans in order to pick a random one to use with the new service provider:
...
If you wish to add other account types (organizations, users or extensions), there are only a few changes that you need to make to the previous Service Provider example. First of all, you need to change the type of driver object from ServiceProviderInterface to OrganizationInterface or UserInterface or or ExtensionInterface. It should look like this:
...
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.