@aceandtate/clicktoaddress 中文文档教程
clicktoaddress
一个 clicktoaddress 客户端
Usage
npm i @aceandtate/clicktoaddress
import createClient from '@aceandtate/clicktoaddress';
const { countries, find, retrieve } = createClient({ key: API_KEY });
const allCountries = await countries();
const country = allCountries[0].code;
const results = await find({
query: '1094 PR 92 A',
country,
});
const result = await retrieve({ id: results[2].id, country });
// you can check out the shape of the response here:
// https://craftyclicks.co.uk/docs/global/#retrieve
clicktoaddress
A clicktoaddress client
Usage
npm i @aceandtate/clicktoaddress
import createClient from '@aceandtate/clicktoaddress';
const { countries, find, retrieve } = createClient({ key: API_KEY });
const allCountries = await countries();
const country = allCountries[0].code;
const results = await find({
query: '1094 PR 92 A',
country,
});
const result = await retrieve({ id: results[2].id, country });
// you can check out the shape of the response here:
// https://craftyclicks.co.uk/docs/global/#retrieve