keboola/azure-event-grid-client
最新稳定版本:v0.9.0
Composer 安装命令:
composer require keboola/azure-event-grid-client
包简介
Client for Azure Event Grid
README 文档
README
PHP client for Azure Event Grid.
Supports the following:
- Publish Events Endpoint spec
Installation
composer require keboola/azure-event-grid-php-client
Usage
Create client instance and encrypt data:
$client = new Client( new GuzzleClientFactory($logger), 'connection-events.northeurope-1.eventgrid.azure.net' );
Development
Run tests with:
docker-compose run --rm testsXX
where XX is PHP version (56 - 74), e.g.:
docker-compose run --rm tests70
Resources Setup
export EVENT_GRID_RG=testing-azure-event-grid-php-client
export EVENT_GRID_TOPIC_NAME=testing-event-grid-php-client-topic
Create a resource group:
az group create --name $EVENT_GRID_RG --location "northeurope"
Deploy the event grid:
az group deployment create --resource-group $EVENT_GRID_RG --template-file arm-template.json --parameters topicName=$EVENT_GRID_TOPIC_NAME
optionally parameter topicName can be set to override default topic name
Get endpoint url:
az resource show -g $EVENT_GRID_RG --resource-type "Microsoft.EventGrid/topics" -n $EVENT_GRID_TOPIC_NAME
returns properties.endpoint set it as TEST_TOPIC_ENDPOINT
Get endpoint accessKey:
az eventgrid topic key list -g $EVENT_GRID_RG -n $EVENT_GRID_TOPIC_NAME
returns key1 and key2 set one of them as TEST_TOPIC_KEY
统计信息
- 总下载量: 12.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-13