scolmore/inriver-laravel

A Laravel package for interacting with the inRiver PIM API

0.0.4 2024-05-22 14:19 UTC

This package is auto-updated.

Last update: 2024-10-22 15:13:02 UTC


README

InRiver

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

InRiver Laravel is a package that allows you to easily integrate with the inRiver PIM API.

Usage

Out of the box we have all the endpoints available to you as they are on the documentation.

For example, to get channel id's for an entity id, the documentation shows the following:

https://apieuw.productmarketingcloud.com/swagger/index.html#/Channel/GetChannelsForEntityId

Channel API]

To use this in the package, you would do the following:

$channels = InRiver()->channels->getChannelsForEntityId('Product');

// As per the documentation, you can also pass the other parameters.
$channels = InRiver()->channels->getChannelsForEntityId(
    forEntityId: 'Product', 
    includeChannels: true,
    includePublications: true
);

So the URL endpoint is channels and the function from the URL is GetChannelsForEntityId, so that is the function you call.

As well as this, we also provide some other methods for your convenience. These can be found below.

Examples

Installation

Via Composer

composer require scolmore/inriver-laravel

Change log

Please see the changelog for more information on what has changed recently.

Testing

composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email sam@scolmore.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.