forked from cardinity/cardinity-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Client
Shabab Haider Siddique edited this page May 24, 2021
·
1 revision
class Client
Client object is used to establish connection to the Cardinity API. It is required for executing any method.
| Name | Return Type | Description |
|---|---|---|
| create(array([consumerKey],[consumerSecret]), $logger = Client::LOG_NONE) | public void | Establish oAuth connection using the provided consumer key and secret |
| call(MethodInterface $method) | public void | Execute the provided method on current connection |
<?php
use Cardinity\Client;
use Cardinity\Exception;
$client = Client::create([
'consumerKey' => 'YOUR_CONSUMER_KEY',
'consumerSecret' => 'YOUR_CONSUMER_SECRET',
]);test