scolmore/inriver-laravel

用于与 inRiver PIM API 交互的 Laravel 扩展包

0.0.4 2024-05-22 14:19 UTC

This package is auto-updated.

Last update: 2024-09-22 15:01:22 UTC


README

InRiver

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

InRiver Laravel 是一个允许您轻松集成 inRiver PIM API 的扩展包。

用法

开箱即用,我们提供了所有端点,与文档中的一致。

例如,要获取实体 id 的频道 id,文档显示以下内容

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

Channel API]

要在包中使用此功能,您将执行以下操作

$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
);

因此,URL 端点是 channels,URL 中的函数是 GetChannelsForEntityId,所以这就是您调用的函数。

此外,我们还提供了一些其他方法以方便您使用。这些方法可以在以下位置找到。

示例

安装

通过 Composer

composer require scolmore/inriver-laravel

变更日志

请参阅 变更日志 了解最近的变化。

测试

composer test

贡献

请参阅 contributing.md 了解详细信息及待办事项列表。

安全

如果您发现任何安全相关的问题,请通过电子邮件 sam@scolmore.com 而不是使用问题跟踪器来报告。

鸣谢

许可证

MIT。有关更多信息,请参阅 许可证文件