diablomedia / leadspedia-php-sdk
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2.0.5
2024-03-18 23:12 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- diablomedia/php-cs-fixer-config: 2.1.0
- phpunit/phpunit: ^7.4 || ^8.0
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-11-19 01:01:13 UTC
README
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: v2.0
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/diablomedia/leadspedia-php-sdk.git" } ], "require": { "diablomedia/leadspedia-php-sdk": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/Leadspedia/vendor/autoload.php');
Tests
To run the unit tests:
composer install ./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: apiKey0 $config = Leadspedia\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Leadspedia\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); // Configure API key authorization: apiKey1 $config = Leadspedia\Configuration::getDefaultConfiguration()->setApiKey('api_secret', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Leadspedia\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_secret', 'Bearer'); $apiInstance = new Leadspedia\Api\AdvertisersApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $advertiserID = 56; // int | $type = 'type_example'; // string | $amount = 3.4; // float | $charge = 'No'; // string | $generateInvoice = 'No'; // string | $note = 'note_example'; // string | $transactionFee = 'transactionFee_example'; // string | $transactionFeePercentage = 3.4; // float | $transactionFeeAmount = 3.4; // float | try { $result = $apiInstance->advertisersadjustCreditdo($advertiserID, $type, $amount, $charge, $generateInvoice, $note, $transactionFee, $transactionFeePercentage, $transactionFeeAmount); print_r($result); } catch (Exception $e) { echo 'Exception when calling AdvertisersApi->advertisersadjustCreditdo: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://api.leadspedia.com/core/v2
Documentation For Models
Documentation For Authorization
apiKey0
- Type: API key
- API key parameter name: api_key
- Location: URL query string
apiKey1
- Type: API key
- API key parameter name: api_secret
- Location: URL query string