Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
## Overview

GetResponse API v3 wrapper working on PHP 5.2+.
GetResponse API v3 wrapper working on PHP 5.3+.
[Here](http://apidocs.getresponse.com/en/v3/) you can find our api documentation.

##Examples

Standard authorization
```php
$getresponse = new GetResponse('your_api_key');
$getresponse = new GetResponse\GetResponse('your_api_key');
```
--

Enterprise authorization
```php
$getresponse = new GetResponse('your_api_key');
$getresponse = new GetResponse\GetResponse('your_api_key');
$getresponse->enterprise_domain = 'somedomain.com';

//api URL is relative to your domain UR:
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"name": "getresponse/getresponse",
"description": "GetResponse API v3 client library.",
"version": "0.0.2",
"homepage": "https://github.com/GetResponse/getresponse-api-php",
"keywords": ["GetResponse", "api", "email"],
"type": "library",
"license": "MIT",
"authors": [
{
Expand All @@ -17,10 +15,12 @@
}
],
"require": {
"php": ">=5.2.0",
"php": ">=5.3.0",
"ext-curl": "*"
},
"autoload": {
"files": ["src/GetResponseAPI3.class.php"]
"psr-4": {
"GetResponse\\": "src/"
}
}
}
}
4 changes: 3 additions & 1 deletion src/GetResponseAPI3.class.php → src/GetResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace GetResponse;

/**
* GetResponse API v3 client library
*
Expand Down Expand Up @@ -403,4 +405,4 @@ private function setParams($params = array())
return http_build_query($result);
}

}
}