nielstholenaar/openprovider-client

此包已被废弃且不再维护。没有建议的替代包。

Openprovider API 客户端

0.1 2015-06-01 08:30 UTC

This package is not auto-updated.

Last update: 2021-11-08 12:59:25 UTC


README

Openprovider API 的简单封装

致谢

用法

此包目前仅与 Laravel 兼容

将以下行添加到 app/config/app.php 文件中注册服务提供者。

'Kevindierkx\Elicit\Provider\LegacyElicitServiceProvider', 'Nielstholenaar\OpenproviderClient\OpenproviderClientServiceProvider',

app/config/packages/kevindierkx/elicit/ 下创建一个名为 config.php 的配置文件,并添加以下内容

<?php

return [

	/*
	|--------------------------------------------------------------------------
	| Default API Connection Name
	|--------------------------------------------------------------------------
	|
	| Here you may specify which of the API connections below you wish
	| to use as your default connection. Of course you may use many
	| connections at once using the Elicit library.
	|
	*/

	'default' => 'openprovider',

	/*
	|--------------------------------------------------------------------------
	| API Connections
	|--------------------------------------------------------------------------
	|
	| Here are each of the API connections setup for your application.
	| Elicit has support for different connection drivers and authentication
	| drivers defined with the driver and the auth key in your connection.
	|
	| The available connection drivers are defined by the Connections
	| classes. Connection drivers handle request to and from the API.
	| The available authenticaiton drivers are defined by the Connectors
	| classes. Authentication drivers handle the API authentication.
	|
	*/

	'connections' => [

		'openprovider' => [
			'driver' => 'openprovider',
			'host'   => 'https://api.openprovider.eu',
			'auth'       => 'openprovider',
			'identifier' => '',
			'secret'     => '',
		],

	],

];

许可证

MIT 许可证(MIT)。请参阅 许可证文件 获取更多信息。