Skip to content

Commit

Permalink
Merge pull request #12 from sendinblue/feature_sib-namespace
Browse files Browse the repository at this point in the history
SendinBlue namespace used
  • Loading branch information
ekta-slit authored Sep 12, 2017
2 parents 25bed95 + fd12685 commit 0b1d667
Show file tree
Hide file tree
Showing 379 changed files with 3,040 additions and 3,040 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ Please follow the [installation procedure](#installation--usage) and then run th
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api-key
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');

$api_instance = new Sendinblue\Client\Api\AccountApi();
$api_instance = new SendinBlue\Client\Api\AccountApi();

try {
$result = $api_instance->getAccount();
Expand Down
6 changes: 3 additions & 3 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
* An example of a project-specific implementation.
*
* After registering this autoload function with SPL, the following line
* would cause the function to attempt to load the \Sendinblue\Client\Baz\Qux class
* would cause the function to attempt to load the \SendinBlue\Client\Baz\Qux class
* from /path/to/project/lib/Baz/Qux.php:
*
* new \Sendinblue\Client\Baz\Qux;
* new \SendinBlue\Client\Baz\Qux;
*
* @param string $class The fully-qualified class name.
*
Expand All @@ -27,7 +27,7 @@
spl_autoload_register(function ($class) {

// project-specific namespace prefix
$prefix = 'Sendinblue\\Client\\';
$prefix = 'SendinBlue\\Client\\';

// base directory for the namespace prefix
$base_dir = __DIR__ . '/lib/';
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"friendsofphp/php-cs-fixer": "~1.12"
},
"autoload": {
"psr-4": { "Sendinblue\\Client\\" : "lib/" }
"psr-4": { "SendinBlue\\Client\\" : "lib/" }
},
"autoload-dev": {
"psr-4": { "Sendinblue\\Client\\" : "test/" }
"psr-4": { "SendinBlue\\Client\\" : "test/" }
},
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
"dev-master": "2.0.x-dev"
}
}
}
12 changes: 6 additions & 6 deletions docs/Api/AccountApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sendinblue\Client\AccountApi
# SendinBlue\Client\AccountApi

All URIs are relative to *https://api.sendinblue.com/v3*

Expand All @@ -8,7 +8,7 @@ Method | HTTP request | Description


# **getAccount**
> \Sendinblue\Client\Model\GetAccount getAccount()
> \SendinBlue\Client\Model\GetAccount getAccount()
Get your account informations, plans and credits details

Expand All @@ -18,11 +18,11 @@ Get your account informations, plans and credits details
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api-key
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');

$api_instance = new Sendinblue\Client\Api\AccountApi();
$api_instance = new SendinBlue\Client\Api\AccountApi();

try {
$result = $api_instance->getAccount();
Expand All @@ -38,7 +38,7 @@ This endpoint does not need any parameter.

### Return type

[**\Sendinblue\Client\Model\GetAccount**](../Model/GetAccount.md)
[**\SendinBlue\Client\Model\GetAccount**](../Model/GetAccount.md)

### Authorization

Expand Down
32 changes: 16 additions & 16 deletions docs/Api/AttributesApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sendinblue\Client\AttributesApi
# SendinBlue\Client\AttributesApi

All URIs are relative to *https://api.sendinblue.com/v3*

Expand All @@ -10,7 +10,7 @@ Method | HTTP request | Description


# **createAttribute**
> \Sendinblue\Client\Model\CreateModel createAttribute($createAttribute)
> \SendinBlue\Client\Model\CreateModel createAttribute($createAttribute)
Creates contact attributes

Expand All @@ -20,12 +20,12 @@ Creates contact attributes
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api-key
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');

$api_instance = new Sendinblue\Client\Api\AttributesApi();
$createAttribute = new \Sendinblue\Client\Model\CreateAttribute(); // \Sendinblue\Client\Model\CreateAttribute | Values to create an attribute
$api_instance = new SendinBlue\Client\Api\AttributesApi();
$createAttribute = new \SendinBlue\Client\Model\CreateAttribute(); // \SendinBlue\Client\Model\CreateAttribute | Values to create an attribute

try {
$result = $api_instance->createAttribute($createAttribute);
Expand All @@ -40,11 +40,11 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**createAttribute** | [**\Sendinblue\Client\Model\CreateAttribute**](../Model/CreateAttribute.md)| Values to create an attribute |
**createAttribute** | [**\SendinBlue\Client\Model\CreateAttribute**](../Model/CreateAttribute.md)| Values to create an attribute |

### Return type

[**\Sendinblue\Client\Model\CreateModel**](../Model/CreateModel.md)
[**\SendinBlue\Client\Model\CreateModel**](../Model/CreateModel.md)

### Authorization

Expand All @@ -68,11 +68,11 @@ Deletes an attribute
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api-key
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');

$api_instance = new Sendinblue\Client\Api\AttributesApi();
$api_instance = new SendinBlue\Client\Api\AttributesApi();
$attributeId = "attributeId_example"; // string | id of the attribute

try {
Expand Down Expand Up @@ -105,7 +105,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getAttributes**
> \Sendinblue\Client\Model\GetAttributes getAttributes()
> \SendinBlue\Client\Model\GetAttributes getAttributes()
Lists all attributes

Expand All @@ -115,11 +115,11 @@ Lists all attributes
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api-key
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');

$api_instance = new Sendinblue\Client\Api\AttributesApi();
$api_instance = new SendinBlue\Client\Api\AttributesApi();

try {
$result = $api_instance->getAttributes();
Expand All @@ -135,7 +135,7 @@ This endpoint does not need any parameter.

### Return type

[**\Sendinblue\Client\Model\GetAttributes**](../Model/GetAttributes.md)
[**\SendinBlue\Client\Model\GetAttributes**](../Model/GetAttributes.md)

### Authorization

Expand Down
Loading

0 comments on commit 0b1d667

Please sign in to comment.