Download the PHP package fbng/netgalley-api-client without Composer

On this page you can find all versions of the php package fbng/netgalley-api-client. 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 netgalley-api-client

NetGalley Public REST API Client

The NetGalley Public REST API provides a way for NetGalley's partners to interact with the system. The library currently supports only PHP, but the API itself can of course be accessed via REST by any system.

Installation

To install with Composer, add the following to your composer.json file:

Then run a composer update and you should be all set.

To install without Composer, download the latest archive, extract it to your project, and add the appropriate require_once line to your code:

If you are connecting to the NetGalley API using OAuth2 (more about this below), also add the require_once line:

Usage

To use the client library, first obtain a set of API credentials from NetGalley (contact your concierge representative if you have any questions). These credentials will either be a Key / Secret pair or an OAuth Client ID / Secret pair, which will determine which method below you will use to access the NetGalley API.

Key / Secret connection method

If you have received Key / Secret credentials, use this example code as a basis for accessing the API:

OAuth2 Client ID / Secret connection method

If you have received OAuth2 credentials, use this example code as a basis for accessing the API:

Handling Large Data Results

If you are granted access to any reporting APIs, you may foresee instances in your application where large data sets may be coming from the API. You can avoid loading the entire data set into memory by streaming the results directly into a temporary file.

In the example below, $responseFile is a file handle resource to a temporary file containing the response data from the API request. You can then write the file contents to the output buffer to provide a CSV download, for example, or rename the file to a permanent location.

API Documentation

See the API Documentation within this repository for up-to-date information on each REST API.


All versions of netgalley-api-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-curl Version >=7.0
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 fbng/netgalley-api-client contains the following files

Loading the files please wait ....