leanlink / api
Leanlink API wrapper
Installs: 302
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=8.0
- guzzlehttp/guzzle: ^7.4
This package is not auto-updated.
Last update: 2024-12-19 01:28:33 UTC
README
Symfony config
leanlink.client: class: GuzzleHttp\Client arguments: - headers: 'X-Auth-Token': '6147577b-2856-4ff0-b330-ee58ef8a2656' Leanlink\Leanlink: arguments: - '@leanlink.client'
echo $container->get(Leanlink\Leanlink)->resources()->find('a9549cce-de8b-4545-8696-2e6bd401ac23')->getFirstName();
Plain php config
// Token set in construct $client = new \GuzzleHttp\Client(['headers' => ['X-Auth-Token' => '6147577b-2856-4ff0-b330-ee58ef8a2656']]); $leanlink = new \Leanlink\Leanlink($client); echo $leanlink->resources()->find('a9549cce-de8b-4545-8696-2e6bd401ac23')->getFirstName(); // Token provided for each call $client = new \GuzzleHttp\Client(); $leanlink = new \Leanlink\Leanlink($client); echo $leanlink->resources('6147577b-2856-4ff0-b330-ee58ef8a2656')->find('a9549cce-de8b-4545-8696-2e6bd401ac23')->getFirstName();