PHPackages                             talon-one/talon-one-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. talon-one/talon-one-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

talon-one/talon-one-client
==========================

Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the \[Integration API section\](#integration-api) are used to integrate with our platform - Use the operation in the \[Management API section\](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the \[updateCustomerSessionV2\](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer\_sessions/{Id}`

25.16.0(6mo ago)3119.7k↓40.4%2[2 issues](https://github.com/talon-one/TalonOnePHPsdk/issues)[1 PRs](https://github.com/talon-one/TalonOnePHPsdk/pulls)MITPHPPHP &gt;=7.1

Since Apr 6Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/talon-one/TalonOnePHPsdk)[ Packagist](https://packagist.org/packages/talon-one/talon-one-client)[ Docs](https://docs.talon.one/docs/dev/sdks/php)[ RSS](/packages/talon-one-talon-one-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (22)Used By (0)

Talon.One PHP SDK
=================

[](#talonone-php-sdk)

Note

The next-generation version of this SDK is available [here](https://github.com/talon-one/talon-one-php-sdk). The new SDK offers significant improvements, including immediate feature parity with the latest Talon.One product releases, as well as enhanced security and reliability.

This SDK supports all of the operations of Talon.One's Integration API and Management API.

Requirements
------------

[](#requirements)

- [PHP 7.1 and later](https://www.php.net/)

Installation and usage
----------------------

[](#installation-and-usage)

### Using Composer

[](#using-composer)

This is the recommended method.

1. Install [Composer](https://getcomposer.org/) following the [installation instructions](https://getcomposer.org/doc/00-intro.md).
2. Execute the following command in your project root to install this library:

    ```
    composer require talon-one/talon-one-client
    ```
3. Include the autoloader:

    ```
    require_once '/path/to/your-project/vendor/autoload.php';
    ```

### Using the release's source

[](#using-the-releases-source)

If you prefer not to use Composer, you can download the package in its entirety. The [Releases](https://github.com/talon-one/TalonOnePHPsdk/releases) page lists all stable versions.

1. Download the source code of the desired version, or checkout the source code directly from the repository.
2. Uncompress the zip file you downloaded, and include the autoloader in your project:

    ```
    require_once '/path/to/talon-one-client/vendor/autoload.php';
    ```

Running the tests
-----------------

[](#running-the-tests)

To run the unit tests:

```
composer install
./vendor/bin/phpunit
```

Determining the base URL of the endpoints
-----------------------------------------

[](#determining-the-base-url-of-the-endpoints)

The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one`, the URL for the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`.

Getting started
---------------

[](#getting-started)

### Integration API

[](#integration-api)

The following code shows an example of using the Integration API:

```
