unified/unified-to


README

68747470733a2f2f637573746f6d2d69636f6e2d6261646765732e64656d6f6c61622e636f6d2f62616467652f2d4275696c742532304279253230537065616b656173792d3231323031353f7374796c653d666f722d7468652d6261646765266c6f676f436f6c6f723d464245333331266c6f676f3d737065616b65617379266c6162656c436f6c6f723d353435343534 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737065616b656173792d73646b732f626f6c742d7068702f737065616b656173795f73646b5f67656e65726174696f6e2e796d6c3f7374796c653d666f722d7468652d6261646765

SDK Installation

Composer

composer require "unified/unified-to"

SDK Example Usage

Example

<?php

declare(strict_types=1);

require 'vendor/autoload.php';

use Unified\Unified_to;
use Unified\Unified_to\Models\Shared;
use Unified\Unified_to\Models\Operations;

$security = new Shared\Security();
$security->jwt = '<YOUR_API_KEY_HERE>';

$sdk = Unified_to\UnifiedTo::builder()
    ->setSecurity($security)
    ->build();

try {
    $request = new Operations\CreateAccountingAccountRequest();
    $request->accountingAccount = new Shared\AccountingAccount();
    $request->accountingAccount->balance = 6602.56;
    $request->accountingAccount->createdAt = DateTime::createFromFormat(
        'Y-m-d\TH:i:s+',
        '2023-09-02T22:12:31.771Z',
    );
    $request->accountingAccount->currency = 'Saint Helena Pound';
    $request->accountingAccount->customerDefinedCode = '<value>';
    $request->accountingAccount->description = 'Cross-group zero defect task-force';
    $request->accountingAccount->id = '<id>';
    $request->accountingAccount->isPayable = false;
    $request->accountingAccount->name = '<value>';
    $request->accountingAccount->raw = [
        'Ruble' => '<value>',
    ];
    $request->accountingAccount->status = Shared\Status::Active;
    $request->accountingAccount->type = Shared\Type::FixedAsset;
    $request->accountingAccount->updatedAt = DateTime::createFromFormat(
        'Y-m-d\TH:i:s+',
        '2024-10-01T23:54:12.882Z',
    );
    $request->connectionId = '<value>';

    $response = $sdk->accounting->createAccountingAccount($request);

    if ($response->accountingAccount !== null) {
        // handle response
    }
} catch (Throwable $e) {
    // handle exception
}

Available Resources and Operations

Accounting

Account

Contact

Invoice

Organization

Taxrate

Transaction

Ats

Activity

Application

Applicationstatus

Candidate

Company

Document

Interview

Job

Scorecard

Commerce

Collection

Inventory

Item

Location

Crm

Deal

Event

Lead

Pipeline

Enrich

Person

Genai

Model

Prompt

Hris

Employee

Group

Payslip

Timeoff

Martech

ListT

Member

Passthrough

Payment

Link

Payout

Refund

Storage

File

Ticketing

Customer

Note

Ticket

Uc

Call

Unified

Apicall

Connection

Integration

Auth

Login

Issue

Webhook

Server Selection

Server Selection

Select Server by Index

You can override the default server globally by passing a server index to the server_idx: int optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

# Server Variables
0 https://api.unified.to None
1 https://api-eu.unified.to None

Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the server_url: str optional parameter when initializing the SDK client instance. For example:

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!

SDK Created by Speakeasy