Download the PHP package affixapi/api without Composer

On this page you can find all versions of the php package affixapi/api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package api

OpenAPIClient-php

The affixapi.com API documentation.

Introduction

Affix API is an OAuth 2.1 application that allows developers to access customer data, without developers needing to manage or maintain integrations; or collect login credentials or API keys from users for these third party systems.

OAuth 2.1

Affix API follows the OAuth 2.1 spec.

As an OAuth application, Affix API handles not only both the collection of sensitive user credentials or API keys, but also builds and maintains the integrations with the providers, so you don't have to.

How to obtain an access token

in order to get started, you must:

Sandbox keys (xhr mode)

dev

employees endpoint sample:

prod

employees endpoint sample:

Compression

We support brotli, gzip, and deflate compression algorithms.

To enable, pass the Accept-Encoding header with one or all of the values: br, gzip, deflate, or identity (no compression)

In the response, you will receive the Content-Encoding response header indicating the compression algorithm used in the data payload to enable you to decompress the result. If the Accept-Encoding: identity header was passed, no Content-Encoding response header is sent back, as no compression algorithm was used.

Webhooks

An exciting feature for HR/Payroll modes are webhooks.

If enabled, your webhook_uri is set on your client_id for the respective environment: dev | prod

Webhooks are configured to make live requests to the underlying integration 1x/hr, and if a difference is detected since the last request, we will send a request to your webhook_uri with this shape:

the following headers will be sent with webhook requests:

Before trusting the payload, you should sign the payload and verify the signature matches the signature sent by the affixapi.com service.

This secures that the data sent to your webhook_uri is from the affixapi.com server.

The signature is created by combining the signing secret (your client_secret) with the body of the request sent using a standard HMAC-SHA256 keyed hash.

The signature can be created via:

Sample typescript code that follows this recipe:

While verifying the Affix API signature header should be your primary method of confirming validity, you can also whitelist our outbound webhook static IP addresses.

Rate limits

Open endpoints (not gated by an API key) (applied at endpoint level):

Gated endpoints (require an API key) (applied at endpoint level):

Things to keep in mind:

Installation & Usage

Requirements

PHP 7.2 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

Then run composer install

Manual Installation

Download the files and include autoload.php:

Getting Started

Please follow the installation procedure and then run the following:

API Endpoints

All URIs are relative to https://api.affixapi.com

Class Method HTTP request Description
Class20230301Api xhrCompanies20230301 GET /2023-03-01/xhr/company Company
Class20230301Api xhrEmployees20230301 GET /2023-03-01/xhr/employees Employees
Class20230301Api xhrGroups20230301 GET /2023-03-01/xhr/groups Groups
Class20230301Api xhrIdentity20230301 GET /2023-03-01/xhr/identity Identity
Class20230301Api xhrPayruns20230301 GET /2023-03-01/xhr/payruns Payruns
Class20230301Api xhrPayslips20230301 GET /2023-03-01/xhr/payruns/{payrun_id} Payslips
Class20230301Api xhrTimeOffBalances20230301 GET /2023-03-01/xhr/time-off-balances Time off balances
Class20230301Api xhrTimeOffEntries20230301 GET /2023-03-01/xhr/time-off-entries Time off entries
Class20230301Api xhrTimesheets20230301 GET /2023-03-01/xhr/timesheets Timesheets
Class20230301Api xhrWorkLocations20230301 GET /2023-03-01/xhr/work-locations Work locations
CoreApi providers GET /providers Providers
ManagementApi client GET /2023-03-01/management/client Client
ManagementApi disconnect POST /2023-03-01/management/disconnect Disconnect token
ManagementApi introspect GET /2023-03-01/management/introspect Inspect token
ManagementApi token POST /2023-03-01/management/token Create token
ManagementApi tokens GET /2023-03-01/management/tokens Tokens
ManagementApi updateClient POST /2023-03-01/management/client Update client
XHRVerticallyIntegratedApi xhrCompanies20230301 GET /2023-03-01/xhr/company Company
XHRVerticallyIntegratedApi xhrEmployees20230301 GET /2023-03-01/xhr/employees Employees
XHRVerticallyIntegratedApi xhrGroups20230301 GET /2023-03-01/xhr/groups Groups
XHRVerticallyIntegratedApi xhrIdentity20230301 GET /2023-03-01/xhr/identity Identity
XHRVerticallyIntegratedApi xhrPayruns20230301 GET /2023-03-01/xhr/payruns Payruns
XHRVerticallyIntegratedApi xhrPayslips20230301 GET /2023-03-01/xhr/payruns/{payrun_id} Payslips
XHRVerticallyIntegratedApi xhrTimeOffBalances20230301 GET /2023-03-01/xhr/time-off-balances Time off balances
XHRVerticallyIntegratedApi xhrTimeOffEntries20230301 GET /2023-03-01/xhr/time-off-entries Time off entries
XHRVerticallyIntegratedApi xhrTimesheets20230301 GET /2023-03-01/xhr/timesheets Timesheets
XHRVerticallyIntegratedApi xhrWorkLocations20230301 GET /2023-03-01/xhr/work-locations Work locations

Models

Authorization

access-token

basic

Tests

To run the tests, use:

Author

[email protected]

About this package

This PHP package is automatically generated by the OpenAPI Generator project:


All versions of api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^6.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package affixapi/api contains the following files

Loading the files please wait ....