Skip to content

Commit d3c2dfd

Browse files
committed
SDK Release 3.0.0
1 parent 752529f commit d3c2dfd

400 files changed

Lines changed: 496 additions & 1040 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.0.0 - 2022-11-17
2+
3+
* support for 8.0 and 8.1
4+
* PHP versions < 7.3 unsupported
5+
* phpunit version upgrade to 9.5
6+
17
## 2.0.0 - 2020-03-02
28

39
* Add operations for:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Read more about the API in [GetResponse API Docs](https://apidocs.getresponse.co
1515

1616
## Requirements
1717

18-
* PHP 5.5+
18+
* PHP 7.3+
1919

2020
* [cURL](https://secure.php.net/manual/en/book.curl.php)
2121

@@ -94,7 +94,7 @@ Example:
9494
```php
9595
<?php
9696

97-
use Getresponse\Sdk\Operation\Campaigns\GetCampaigns\GetCampaigns;
97+
use Getresponse\Sdk\Operation\Campaigns\GetCampaigns\GetCampaigns;
9898

9999
$campaignsOperation = new GetCampaigns();
100100
$response = $client->call($campaignsOperation);

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
}
1919
},
2020
"require": {
21-
"getresponse/sdk-php-client": "^1.0"
21+
"getresponse/sdk-php-client": "^2.0"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "^4.8 || ^5.0"
24+
"phpunit/phpunit": "^9.5"
2525
}
2626
}

phpunit.xml

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<phpunit
4-
backupGlobals="false"
5-
backupStaticAttributes="false"
6-
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false"
12-
syntaxCheck="false"
13-
bootstrap="./tests/bootstrap.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
bootstrap="./tests/bootstrap.php"
1412
>
15-
16-
<testsuites>
17-
<testsuite name="unit">
18-
<directory>tests/Unit</directory>
19-
</testsuite>
20-
</testsuites>
21-
22-
<filter>
23-
<whitelist processUncoveredFilesFromWhitelist="false">
24-
<directory suffix=".php">src/</directory>
25-
</whitelist>
26-
</filter>
27-
</phpunit>
13+
<coverage processUncoveredFiles="false">
14+
<include>
15+
<directory suffix=".php">src/</directory>
16+
</include>
17+
</coverage>
18+
<testsuites>
19+
<testsuite name="unit">
20+
<directory>tests/Unit</directory>
21+
</testsuite>
22+
</testsuites>
23+
</phpunit>

src/Authentication/ApiKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class ApiKey implements AuthenticationProvider
1313
{
14-
const HEADER_PREFIX = 'api-key ';
14+
public const HEADER_PREFIX = 'api-key ';
1515

1616
/**
1717
* @var string

src/Authentication/OAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class OAuth implements AuthenticationProvider
1313
{
14-
const HEADER_PREFIX = 'Bearer ';
14+
public const HEADER_PREFIX = 'Bearer ';
1515

1616
/**
1717
* @var string

src/Environment/GetResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class GetResponse implements Environment
1313
{
14-
const URL = 'https://api.getresponse.com';
14+
public const URL = 'https://api.getresponse.com';
1515

1616
/**
1717
* @return string

src/Environment/GetResponseEnterprisePL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
class GetResponseEnterprisePL extends GetResponseEnterprise
1010
{
11-
const URL = 'https://api3.getresponse360.pl';
11+
public const URL = 'https://api3.getresponse360.pl';
1212

1313
/**
1414
* @return string

src/Environment/GetResponseEnterpriseUS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
class GetResponseEnterpriseUS extends GetResponseEnterprise
1010
{
11-
const URL = 'https://api3.getresponse360.com';
11+
public const URL = 'https://api3.getresponse360.com';
1212

1313
/**
1414
* @return string

src/Operation/Accounts/Badge/CreateBadge/CreateBadge.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@
44
use Getresponse\Sdk\Client\Exception\InvalidCommandDataException;
55
use Getresponse\Sdk\Client\Operation\CommandOperation;
66
use Getresponse\Sdk\Client\Operation\Operation;
7+
use Getresponse\Sdk\Operation\Model\AccountBadgeStatus;
78
use Getresponse\Sdk\OperationVersionTrait;
89

910
class CreateBadge extends CommandOperation
1011
{
1112
use OperationVersionTrait;
1213

13-
const METHOD_URL = '/v3/accounts/badge';
14+
public const METHOD_URL = '/v3/accounts/badge';
1415

15-
/** @var \Getresponse\Sdk\Operation\Model\AccountBadgeStatus */
16+
/** @var AccountBadgeStatus */
1617
protected $data;
1718

1819

1920
/**
20-
* @param \Getresponse\Sdk\Operation\Model\AccountBadgeStatus $data
21+
* @param AccountBadgeStatus $data
2122
*/
22-
public function __construct(\Getresponse\Sdk\Operation\Model\AccountBadgeStatus $data)
23+
public function __construct(AccountBadgeStatus $data)
2324
{
2425
$this->data = $data;
2526
}

0 commit comments

Comments
 (0)