@@ -42,25 +42,51 @@ With the bearer token set, you can return data from all endpoints that require a
42
42
``` php
43
43
// Query for products
44
44
$response = $client->getHttpClient(HttpClientType::PRODUCT_OFFERINGS)
45
- ->getProductOfferingss ();
45
+ ->get ();
46
46
47
47
// Check for valid response and set the array of products
48
48
if ($response->getStatus() === 200) {
49
49
$productOfferings = $response->getContent();
50
50
}
51
51
````
52
- **Get Connections Statistical Timeseries Data:**
52
+
53
+ **Method Support and Filters:**
54
+
55
+ All base clients have support for `get`, `delete`, `post`, `patch`.
56
+
57
+ Additional methods are available where supported, for example `getStatistics`, `getLoa`.
58
+
53
59
```php
54
- // Query for connections timeseries data
55
- $response = $client->getHttpClient(HttpClientType::CONNECTIONS)
56
- ->getStatisticTimeseries('connection-123-uuid', '30d');
60
+ $singleItem = $client->getHttpClient(HttpClientType::CONTACTS)
61
+ ->get('item-uuid')
62
+ ->getContent();
63
+
64
+ $filteredItems = $client->getHttpClient(HttpClientType::CONTACTS)
65
+ ->get(null, ['managing_account' => 'uuid-123'])
66
+ ->getContent();
67
+
68
+ $response = $client->getHttpClient(HttpClientType::CONTACTS)
69
+ ->post([
70
+ 'managing_account' => 'uuid-123',
71
+ 'consuming_account' => 'uuid-456',
72
+ 'name' => 'sample contact',
73
+ ]);
74
+
75
+ $client->getHttpClient(HttpClientType::CONTACTS)
76
+ ->patch('item-uuid', [
77
+ 'name' => 'renamed sample contact',
78
+ ]);
79
+
80
+ $client->getHttpClient(HttpClientType::CONTACTS)
81
+ ->delete('item-uuid');
57
82
58
- // Check for valid response and set the array of products
59
- if ($response->getStatus() === 200) {
60
- $timeseries = $response->getContent();
61
- }
83
+ // Query for connections timeseries data
84
+ $timeseries = $client->getHttpClient(HttpClientType::CONNECTIONS)
85
+ ->getStatisticTimeseries('connection-123-uuid', '30d')
86
+ ->getContent();
62
87
````
63
88
89
+
64
90
## Authentication
65
91
66
92
You will need to contact an exchange to create an API key / secret combination and find out the URL of their IX-API implementation.
0 commit comments