jongotlin / arbetsformedlingen-ads
1.2.1
2024-05-05 04:44 UTC
Requires
- php: ^7.2|^8.0
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.0
- php-http/httplug: ^1.0 || ^2.0
- php-http/message: ^1.0
Requires (Dev)
- php-http/guzzle6-adapter: ^1.0
- phpunit/phpunit: ^8.0
- symfony/event-dispatcher: ^5.0
Suggests
- symfony/event-dispatcher: To dispatch events when data is returned.
README
ArbetsformedlingenAds
Arbetsförmedlingen(瑞典公共就业服务机构)发布广告的API包装器
使用composer安装
composer require jongotlin/arbetsformedlingen-ads
示例
$client = new \JGI\ArbetsformedlingenAds\Client(); $client->setHttpClient($httpClient); // $httpClient is a \Http\Client\HttpClient $arbetsformedlingenJob = new ArbetsformedlingenJob(...); $transaction = new Transaction($senderId, 'some@email.com', $transactionID, [$arbetsformedlingenJob]); $result = $client->publish($transaction);