Skip to content

leadvertex/plugin-component-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeadVertex API client plugin component

\Leadvertex\Plugin\Components\ApiClient\ApiClient - component, which accept API endpoint URL and API token, and allow make queries to leadvertex.com GraphQL API. This component use under the hood softonic/graphql-client GraphQL client library

Usage

For example, in your plugin app you can create internationalization class like this

<?php
$client = new \Leadvertex\Plugin\Components\ApiClient\ApiClient('https://cluster.leadvertex.com/companies/1/CRM', 'token here');

/** @var \Softonic\GraphQL\Response $response */
$response = $client->query('query {name, company}');

print_r($response->getData());
print_r($response->getErrors());

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages