Download the PHP package keboola/ex-generic-v2 without Composer

On this page you can find all versions of the php package keboola/ex-generic-v2. 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 ex-generic-v2

Extractor configuration

Moved to new docs


Basics

Moved to new docs

API Definition

Moved to new docs

baseUrl

Moved to new docs

The most important part of configuration, the API url (should end with a /)

Example:

-- OR --

retryConfig

Moved to new docs

Set the retry limit, rate limit reset header and HTTP codes to retry if the API returns an error

http.requiredHeaders

Moved to new docs

http.headers.{Header-Name}

Moved to new docs

http.defaultOptions

Moved to new docs

Authentication

Moved to new docs

Methods

basic

Moved to new docs

query

Moved to new docs

login

Moved to new docs

oauth10

Moved to new docs

This requires the authorization.oauth_api.credentials object in configuration to contain #data, appKey and #appSecret, where #data must contain a JSON encoded object with oauth_token and oauth_token_secret properties. appKey must contain the consumer key, and #appSecret must contain the consumer secret.

Use Keboola Docker and OAuth API integration to generate the authorization configuration section.

Example minimum config.json:

oauth20

Moved to new docs

Uses User functions to use tokens in headers or query. Instead of attr or time parameters, you should use authorization to access the OAuth data. If the data is a raw token string, use authorization: data to access it. If it's a JSON string, use authentication.format: json and access its values isong the . annotation, like in example below (authorization: data.access_token).

The query and request information can also be used just like in the querry authentication method.

Example config for Bearer token use:

Example for MAC authentication:

Pagination

Moved to new docs

Methods

Configured in api.pagination.method

Moved to new docs

offset

Moved to new docs

response.param

Moved to new docs

response.url

Moved to new docs

pagenum

Moved to new docs

simple page number increasing 1 by 1

cursor

Moved to new docs

Looks within the response data for an ID which is then used as a parameter for scrolling.

The intention is to look for identifiers within data and in the next request, use a parameter asking for IDs higher than the highest found (or the opposite, lower than the lowest using the reverse parameter)

multiple

Moved to new docs

Allows setting scrollers per endpoint.

Common scrolling parameters

nextPageFlag

Moved to new docs

Looks within responses to find a boolean field determining whether to continue scrolling or not.

Usage:

Config

Metadata

Moved to new docs

Attributes

Moved to new docs

Attributes must be configured accordingly to the api configuration (eg auth, pagination, http.requiredHeaders). They are under the config section of the configuration. (see example below)

Jobs

Moved to new docs

Mappings

Noved to new docs

mappings attribute can be used to force the extractor to map the response into columns in a CSV file as described in the JSON to CSV Mapper documentation. Each property in the mappings object must follow the mapper settings, where the key is the dataType of a job. Note that if a dataType is not set, it is generated from the endpoint and might be confusing if ommited.

If there's no mapping for a dataType, the standard JSON parser processes the result.

In a recursive job, the placeholer prepended by parent_ is available as type: user to link the child to a parent. See example below:

Jobs:

Mappings (of the child):

The parent_name is the parent_ prefix together with the value of placeholder 1:name.

Example

Iterations

The configuration can be run multiple times with some (or all) values in config section being overwritten. For example, you can run the same configuration for multiple accounts, overriding values of the authentication settings.

Warning:

Example

This way you can download the same data from two different accounts into a single output table, adding the owner column to help you recognize which iteration of the config brought in each row in the result.

User functions

Can currently be used in query type authentication or endpoint parameters

Moved to new docs

Allowed functions

Moved to new docs

Syntax

Moved to new docs

The function must be specified in JSON format, which may contain one of the following 4 objects:

Example configuration

Moved to new docs

Cache

Use private proxy cache for HTTP responses. This is useful for local jobs configuration development.

Enabling cache:

Local development

Moved to new docs

Best way to create and test new configurations is run extractor in docker container.

Prerequisites

Execution

Running tests:

or (with local source code and vendor copy)

License

MIT licensed, see LICENSE file.


All versions of ex-generic-v2 with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
aws/aws-sdk-php Version ^3.208
guzzlehttp/oauth-subscriber Version ^0.4
keboola/filter Version ^2.0
keboola/juicer Version ^5.1
keboola/php-csvtable Version ^1.2
keboola/php-temp Version ^2.0
keboola/php-utils Version ^4.1
keboola/retry Version ^0.5.0
kevinrob/guzzle-cache-middleware Version ^3.3
league/flysystem Version ~1.0
symfony/config Version ^5.2
symfony/console Version ^5.2
symfony/finder Version ^5.2
symfony/process Version ^5.4
symfony/validator Version ^5.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 keboola/ex-generic-v2 contains the following files

Loading the files please wait ....