Data


Overview

The data API allows you to view all types of data available.


List all data

This API lets you retrieve and view a simple list of available data endpoints.

retrieveApiData()

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

    wcStore.retrieveApiData().then( (apiData) {
        print(apiData.toJson());
    });
});

Response

ApiData instance

Represents the following object - WooCommerce list all data


List all continents

This API helps you to view all the continents.

getContinentData()

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

  wcStore.getContinentData().then( (apiData) {
      print(apiData.toJson());
  });
});

Response

Continents instance

Represents the following object - WooCommerce list all continents


Retrieve continent data

This API lets you retrieve and view a continent data.

retrieveContinentDataByLocation(string location)

Parameters

String location,

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

  wcStore.retrieveContinentDataByLocation(String location).then( (continents) {
      print(continents.toJson());
  });
});

Response

Continents instance

Represents the following object - WooCommerce retrieve continent data


List all countries

This API helps you to view all the countries.

getCountries()

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

  wcStore.getCountries().then( (countries) {
      print(countries.toString());
  });
});

Response

List<Countries> instance

Represents the following object - WooCommerce list all countries


Retrieve country data

This API lets you retrieve and view a country data.

retrieveCountryData(String location)

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

  wcStore.retrieveCountryData(String location).then( (countries) {
      print(countries.toJson());
  });
});

Response

Countries instance

Represents the following object - WooCommerce retrieve country data


List all currencies

This API helps you to view all the currencies.

getCurrencies()

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

  wcStore.getCurrencies().then( (currencies) {
      print(currencies.toString());
  });
});

Response

List<Currencies> instance

Represents the following object - WooCommerce list all currencies


Retrieve currency data

This API lets you retrieve and view a currency data.

retrieveCurrencyData(String currency)

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

  wcStore.retrieveCurrencyData(String currency).then( (currencies) {
      print(currencies.toJson());
  });
});

Response

Currencies instance

Represents the following object - WooCommerce list all currencies


Retrieve current currency

This API lets you retrieve and view store's current currency data.

retrieveCurrentCurrencyData()

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

  wcStore.retrieveCurrentCurrencyData().then( (currencies) {
      print(currencies.toJson());
  });
});

Response

Currencies instance

Represents the following object - WooCommerce retrieve current currency