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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
ApiData apiData = await WooSignal.instance.retrieveApiData();

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
Continents continents = await WooSignal.instance.getContinentData();

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
Continents continents = await WooSignal.instance.retrieveContinentDataByLocation("location e.g. eu");

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
List<Countries> Countries = await WooSignal.instance.getCountries();

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
Countries countryData = await WooSignal.instance.retrieveCountryData("location");

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
List<Currencies> currencies = await WooSignal.instance.getCurrencies();

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
Currencies currencies = await WooSignal.instance.retrieveCurrencyData("currency e.g. usd");

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
Currencies currencies = await WooSignal.instance.retrieveCurrentCurrencyData();

Response

Currencies instance

Represents the following object - WooCommerce retrieve current currency