Skip to content

Commit

Permalink
1.0.1 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Räni authored May 22, 2019
1 parent 089abb3 commit 4585e68
Show file tree
Hide file tree
Showing 125 changed files with 858 additions and 348 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0-beta2
4.0.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Messente API Library

- Messente API version: 1.0.0
- PHP artifact version: 1.0.0
- Messente API version: 1.0.1
- PHP artifact version: 1.0.1

[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "messente/messente-api-php",
"version": "1.0.0",
"version": "1.0.1",
"description": "[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.",
"keywords": ["viber", "sms", "whatsapp", "phonebook", "openapitools",
"openapi-generator",
"openapi",
"php",
"sdk",
"rest",
"api"
],
"homepage": "https://messente.com",
"license": "proprietary",
"license": "unlicense",
"authors": [
{
"name": "Messente",
Expand Down
60 changes: 44 additions & 16 deletions docs/Api/BlacklistApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ Method | HTTP request | Description
[**isBlacklisted**](BlacklistApi.md#isBlacklisted) | **GET** /blacklist/{phone} | Checks if a phone number is blacklisted.


# **addToBlacklist**

## addToBlacklist

> addToBlacklist($numberToBlacklist)
Adds a phone number to the blacklist.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
Expand All @@ -44,6 +48,7 @@ try {

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**numberToBlacklist** | [**\Messente\Api\Model\NumberToBlacklist**](../Model/NumberToBlacklist.md)| Phone number to be blacklisted |
Expand All @@ -58,21 +63,27 @@ void (empty response body)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
- **Content-Type**: application/json
- **Accept**: application/json

[[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)
[[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)


## deleteFromBlacklist

# **deleteFromBlacklist**
> deleteFromBlacklist($phone)
Deletes a phone number from the blacklist.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
Expand All @@ -97,6 +108,7 @@ try {

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**phone** | **string**| A phone number |
Expand All @@ -111,21 +123,27 @@ void (empty response body)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json

[[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)
[[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)


## fetchBlacklist

# **fetchBlacklist**
> \Messente\Api\Model\FetchBlacklistSuccess fetchBlacklist()
Returns all blacklisted phone numbers.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
Expand All @@ -149,6 +167,7 @@ try {
```

### Parameters

This endpoint does not need any parameter.

### Return type
Expand All @@ -161,21 +180,27 @@ This endpoint does not need any parameter.

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json

[[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)
[[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)


## isBlacklisted

# **isBlacklisted**
> isBlacklisted($phone)
Checks if a phone number is blacklisted.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
Expand All @@ -200,6 +225,7 @@ try {

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**phone** | **string**| A phone number |
Expand All @@ -214,8 +240,10 @@ void (empty response body)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json

[[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)
[[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)

Loading

0 comments on commit 4585e68

Please sign in to comment.