Skip to content

Commit

Permalink
Merge pull request #10 from sendinblue/feature_package-name-updates
Browse files Browse the repository at this point in the history
Package rename & namespace update
  • Loading branch information
ekta-slit authored Sep 12, 2017
2 parents fdf3933 + b9df254 commit 732b374
Show file tree
Hide file tree
Showing 402 changed files with 3,361 additions and 3,113 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To install the bindings via [Composer](http://getcomposer.org/), add the followi
}
],
"require": {
"sendinblue/sendinblue-apiv3": "*@dev"
"sendinblue/api-v3-sdk": "*@dev"
}
}
```
Expand Down Expand Up @@ -63,9 +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
Swagger\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');

$api_instance = new Swagger\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 \Swagger\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 \Swagger\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 = 'Swagger\\Client\\';
$prefix = 'Sendinblue\\Client\\';

// base directory for the namespace prefix
$base_dir = __DIR__ . '/lib/';
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "sendinblue/sendinblue-apiv3",
"name": "sendinblue/api-v3-sdk",
"description": "Official SendinBlue provided RESTFul API V3 php library",
"keywords": [
"sendinblue",
Expand Down Expand Up @@ -30,14 +30,14 @@
"friendsofphp/php-cs-fixer": "~1.12"
},
"autoload": {
"psr-4": { "Swagger\\Client\\" : "lib/" }
"psr-4": { "Sendinblue\\Client\\" : "lib/" }
},
"autoload-dev": {
"psr-4": { "Swagger\\Client\\" : "test/" }
"psr-4": { "Sendinblue\\Client\\" : "test/" }
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
"dev-master": "1.1.x-dev"
}
}
}
12 changes: 7 additions & 5 deletions docs/Api/AccountApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Swagger\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**
> \Swagger\Client\Model\GetAccount getAccount()
> \Sendinblue\Client\Model\GetAccount getAccount()
Get your account informations, plans and credits details

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

// Configure API key authorization: api-key
Swagger\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');

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

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

### Return type

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

### Authorization

Expand Down
32 changes: 19 additions & 13 deletions docs/Api/AttributesApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Swagger\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**
> \Swagger\Client\Model\CreateModel createAttribute($createAttribute)
> \Sendinblue\Client\Model\CreateModel createAttribute($createAttribute)
Creates contact attributes

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

// Configure API key authorization: api-key
Swagger\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');

$api_instance = new Swagger\Client\Api\AttributesApi();
$createAttribute = new \Swagger\Client\Model\CreateAttribute(); // \Swagger\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 @@ -38,11 +40,11 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**createAttribute** | [**\Swagger\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

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

### Authorization

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

// Configure API key authorization: api-key
Swagger\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');

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

try {
Expand Down Expand Up @@ -101,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**
> \Swagger\Client\Model\GetAttributes getAttributes()
> \Sendinblue\Client\Model\GetAttributes getAttributes()
Lists all attributes

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

// Configure API key authorization: api-key
Swagger\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');

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

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

### Return type

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

### Authorization

Expand Down
Loading

0 comments on commit 732b374

Please sign in to comment.