Skip to content

Latest commit

 

History

History
532 lines (369 loc) · 17.7 KB

File metadata and controls

532 lines (369 loc) · 17.7 KB

Flipdish\Client\WhiteLabelConfigApi

All URIs are relative to https://api.flipdish.co

Method HTTP request Description
getAppGeneralConfig GET /api/v1.0/whitelabelconfig/{appId}/general
getAppStoreConfig GET /api/v1.0/whitelabelconfig/{appId}/appstore
getPlayStoreConfig GET /api/v1.0/whitelabelconfig/{appId}/playstore
getWhiteLabelConfig GET /api/v1.0/whitelabelconfig/id/{wlid}
getWhiteLabelConfigByAppNameId GET /api/v1.0/whitelabelconfig/name/{appId}
healthCheck GET /api/v1.0/whitelabelconfig/health
updateAppGeneralConfig POST /api/v1.0/whitelabelconfig/{appId}/general
updateAppStoreConfig POST /api/v1.0/whitelabelconfig/{appId}/appstore
updatePlayStoreConfig POST /api/v1.0/whitelabelconfig/{appId}/playstore
uploadAppStoreIcon POST /api/v1.0/whitelabelconfig/{appId}/app-store-icon

getAppGeneralConfig

\Flipdish\Client\Models\RestApiResultAppGeneralConfigModel getAppGeneralConfig($app_id)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = "app_id_example"; // string | 

try {
    $result = $apiInstance->getAppGeneralConfig($app_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->getAppGeneralConfig: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
app_id string

Return type

\Flipdish\Client\Models\RestApiResultAppGeneralConfigModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getAppStoreConfig

\Flipdish\Client\Models\RestApiResultAppStoreConfigModel getAppStoreConfig($app_id)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = "app_id_example"; // string | 

try {
    $result = $apiInstance->getAppStoreConfig($app_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->getAppStoreConfig: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
app_id string

Return type

\Flipdish\Client\Models\RestApiResultAppStoreConfigModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getPlayStoreConfig

\Flipdish\Client\Models\RestApiResultPlayStoreConfigModel getPlayStoreConfig($app_id)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = "app_id_example"; // string | 

try {
    $result = $apiInstance->getPlayStoreConfig($app_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->getPlayStoreConfig: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
app_id string

Return type

\Flipdish\Client\Models\RestApiResultPlayStoreConfigModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getWhiteLabelConfig

\Flipdish\Client\Models\RestApiResultWhiteLabelConfigModel getWhiteLabelConfig($wlid)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$wlid = 56; // int | 

try {
    $result = $apiInstance->getWhiteLabelConfig($wlid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->getWhiteLabelConfig: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
wlid int

Return type

\Flipdish\Client\Models\RestApiResultWhiteLabelConfigModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getWhiteLabelConfigByAppNameId

\Flipdish\Client\Models\RestApiResultWhiteLabelConfigModel getWhiteLabelConfigByAppNameId($app_id)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = "app_id_example"; // string | 

try {
    $result = $apiInstance->getWhiteLabelConfigByAppNameId($app_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->getWhiteLabelConfigByAppNameId: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
app_id string

Return type

\Flipdish\Client\Models\RestApiResultWhiteLabelConfigModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

healthCheck

string healthCheck()

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->healthCheck();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->healthCheck: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

string

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateAppGeneralConfig

\Flipdish\Client\Models\RestApiResultAppGeneralConfigModel updateAppGeneralConfig($app_id, $app_general_config)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = "app_id_example"; // string | 
$app_general_config = new \Flipdish\\Client\Models\AppGeneralConfigModel(); // \Flipdish\\Client\Models\AppGeneralConfigModel | 

try {
    $result = $apiInstance->updateAppGeneralConfig($app_id, $app_general_config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->updateAppGeneralConfig: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
app_id string
app_general_config \Flipdish\Client\Models\AppGeneralConfigModel

Return type

\Flipdish\Client\Models\RestApiResultAppGeneralConfigModel

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateAppStoreConfig

\Flipdish\Client\Models\RestApiResultAppStoreConfigModel updateAppStoreConfig($app_id, $app_store_config)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = "app_id_example"; // string | 
$app_store_config = new \Flipdish\\Client\Models\AppStoreConfigModel(); // \Flipdish\\Client\Models\AppStoreConfigModel | 

try {
    $result = $apiInstance->updateAppStoreConfig($app_id, $app_store_config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->updateAppStoreConfig: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
app_id string
app_store_config \Flipdish\Client\Models\AppStoreConfigModel

Return type

\Flipdish\Client\Models\RestApiResultAppStoreConfigModel

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updatePlayStoreConfig

\Flipdish\Client\Models\RestApiResultPlayStoreConfigModel updatePlayStoreConfig($app_id, $play_store_config)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = "app_id_example"; // string | 
$play_store_config = new \Flipdish\\Client\Models\PlayStoreConfigModel(); // \Flipdish\\Client\Models\PlayStoreConfigModel | 

try {
    $result = $apiInstance->updatePlayStoreConfig($app_id, $play_store_config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->updatePlayStoreConfig: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
app_id string
play_store_config \Flipdish\Client\Models\PlayStoreConfigModel

Return type

\Flipdish\Client\Models\RestApiResultPlayStoreConfigModel

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

uploadAppStoreIcon

\Flipdish\Client\Models\RestApiResultAssetResultModel uploadAppStoreIcon($app_id, $file)

Example

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

// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Flipdish\\Client\Api\WhiteLabelConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = "app_id_example"; // string | 
$file = new \Flipdish\\Client\Models\HttpPostedFileBase(); // \Flipdish\\Client\Models\HttpPostedFileBase | 

try {
    $result = $apiInstance->uploadAppStoreIcon($app_id, $file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WhiteLabelConfigApi->uploadAppStoreIcon: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
app_id string
file \Flipdish\Client\Models\HttpPostedFileBase

Return type

\Flipdish\Client\Models\RestApiResultAssetResultModel

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]