Skip to content

Latest commit

 

History

History
852 lines (560 loc) · 20.7 KB

AppsApi.md

File metadata and controls

852 lines (560 loc) · 20.7 KB

Flipdish.AppsApi

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

Method HTTP request Description
createApp POST /api/v1.0/apps
getApp GET /api/v1.0/apps/{appId}
getAppHostnameStatus GET /api/v1.0/apps/{appId}/hostnamestatus
getApps GET /api/v1.0/apps
getCompliance GET /api/v1.0/apps/{appId}/compliance
getPanaceaVanityUrl GET /api/v1.0/apps/{appId}/panacea/url
getSupportedCountries GET /api/v1.0/apps/supportedcountries
isPanaceaVanityUrlAvailable GET /api/v1.0/apps/{appId}/panacea/url/available
lookupByWhitelabelId GET /api/v1.0/apps/{whitelabelId}/lookup
setAppConfig POST /api/v1.0/apps/{appId}/config
setAppHostname POST /api/v1.0/apps/{appId}/hostname
setAppLanguages POST /api/v1.0/apps/{appId}/config/languages
setAppStoreName POST /api/v1.0/apps/{appId}/appstorename
setCompliance POST /api/v1.0/apps/{appId}/compliance
setPanaceaVanityUrl POST /api/v1.0/apps/{appId}/panacea/url
toggleNextGenWeb POST /api/v1.0/apps/{appId}/nextgenweb
uploadAppLogo POST /api/v1.0/apps/{appId}/logo

createApp

RestApiStringResult createApp(parameters)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let parameters = new Flipdish.CreateAppParameters(); // CreateAppParameters | 
apiInstance.createApp(parameters, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
parameters CreateAppParameters

Return type

RestApiStringResult

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, Message, ErrorCode, StackTrace

getApp

RestApiResultApp getApp(appId)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
apiInstance.getApp(appId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String

Return type

RestApiResultApp

Authorization

oauth2

HTTP request headers

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

getAppHostnameStatus

RestApiResultDnsRecordInformation getAppHostnameStatus(appId)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
apiInstance.getAppHostnameStatus(appId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String

Return type

RestApiResultDnsRecordInformation

Authorization

oauth2

HTTP request headers

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

getApps

RestApiPaginationResultApp getApps(opts)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let opts = {
  'nameFilter': "nameFilter_example", // String | 
  'page': 56, // Number | 
  'limit': 56 // Number | 
};
apiInstance.getApps(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
nameFilter String [optional]
page Number [optional]
limit Number [optional]

Return type

RestApiPaginationResultApp

Authorization

oauth2

HTTP request headers

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

getCompliance

RestApiResultAppCompliance getCompliance(appId)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
apiInstance.getCompliance(appId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String

Return type

RestApiResultAppCompliance

Authorization

oauth2

HTTP request headers

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

getPanaceaVanityUrl

RestApiStringResult getPanaceaVanityUrl(appId)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
apiInstance.getPanaceaVanityUrl(appId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String

Return type

RestApiStringResult

Authorization

oauth2

HTTP request headers

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

getSupportedCountries

RestApiArrayResultSupportedCountry getSupportedCountries()

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
apiInstance.getSupportedCountries((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

This endpoint does not need any parameter.

Return type

RestApiArrayResultSupportedCountry

Authorization

oauth2

HTTP request headers

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

isPanaceaVanityUrlAvailable

RestApiStringResult isPanaceaVanityUrlAvailable(vanityUrl, appId)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let vanityUrl = "vanityUrl_example"; // String | 
let appId = "appId_example"; // String | 
apiInstance.isPanaceaVanityUrlAvailable(vanityUrl, appId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
vanityUrl String
appId String

Return type

RestApiStringResult

Authorization

oauth2

HTTP request headers

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

lookupByWhitelabelId

AppLookup lookupByWhitelabelId(whitelabelId)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let whitelabelId = 56; // Number | 
apiInstance.lookupByWhitelabelId(whitelabelId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
whitelabelId Number

Return type

AppLookup

Authorization

oauth2

HTTP request headers

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

setAppConfig

RestApiResultApp setAppConfig(appId, appConfigUpdate)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
let appConfigUpdate = new Flipdish.AppConfigUpdateModel(); // AppConfigUpdateModel | 
apiInstance.setAppConfig(appId, appConfigUpdate, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String
appConfigUpdate AppConfigUpdateModel

Return type

RestApiResultApp

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, Data

setAppHostname

RestApiStringResult setAppHostname(appId, hostname, opts)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
let hostname = "hostname_example"; // String | 
let opts = {
  'isEmbed': true // Boolean | 
};
apiInstance.setAppHostname(appId, hostname, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String
hostname String
isEmbed Boolean [optional]

Return type

RestApiStringResult

Authorization

oauth2

HTTP request headers

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

setAppLanguages

RestApiResultApp setAppLanguages(appId, languages)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
let languages = [new Flipdish.Language()]; // [Language] | 
apiInstance.setAppLanguages(appId, languages, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String
languages [Language]

Return type

RestApiResultApp

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, Data

setAppStoreName

setAppStoreName(appId, appStoreName)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
let appStoreName = "appStoreName_example"; // String | 
apiInstance.setAppStoreName(appId, appStoreName, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});

Parameters

Name Type Description Notes
appId String
appStoreName String

Return type

null (empty response body)

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

setCompliance

RestApiResultAppCompliance setCompliance(appId, complianceType)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
let complianceType = "complianceType_example"; // String | 
apiInstance.setCompliance(appId, complianceType, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String
complianceType String

Return type

RestApiResultAppCompliance

Authorization

oauth2

HTTP request headers

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

setPanaceaVanityUrl

RestApiStringResult setPanaceaVanityUrl(appId, vanityUrl)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
let vanityUrl = "vanityUrl_example"; // String | 
apiInstance.setPanaceaVanityUrl(appId, vanityUrl, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String
vanityUrl String

Return type

RestApiStringResult

Authorization

oauth2

HTTP request headers

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

toggleNextGenWeb

RestApiStringResult toggleNextGenWeb(appId, hostname, vanityUrl, isNextGenWeb)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
let hostname = "hostname_example"; // String | 
let vanityUrl = "vanityUrl_example"; // String | 
let isNextGenWeb = true; // Boolean | 
apiInstance.toggleNextGenWeb(appId, hostname, vanityUrl, isNextGenWeb, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
appId String
hostname String
vanityUrl String
isNextGenWeb Boolean

Return type

RestApiStringResult

Authorization

oauth2

HTTP request headers

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

uploadAppLogo

uploadAppLogo(appId, Image)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.AppsApi();
let appId = "appId_example"; // String | 
let Image = "/path/to/file"; // File | App Logo
apiInstance.uploadAppLogo(appId, Image, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});

Parameters

Name Type Description Notes
appId String
Image File App Logo

Return type

null (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json, text/json, application/xml, text/xml