mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 14:05:23 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -79,5 +79,5 @@
|
|||||||
"prepare": "npm run build"
|
"prepare": "npm run build"
|
||||||
},
|
},
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"version": "1.0.769"
|
"version": "1.0.770"
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
const { AddressService } = require("m3o/address");
|
const { AddressService } = require("micro-js-client/address");
|
||||||
|
|
||||||
// Lookup a list of UK addresses by postcode
|
// Lookup a list of UK addresses by postcode
|
||||||
async function lookupPostcode() {
|
async function lookupPostcode() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { AnswerService } = require("m3o/answer");
|
const { AnswerService } = require("micro-js-client/answer");
|
||||||
|
|
||||||
// Ask a question and receive an instant answer
|
// Ask a question and receive an instant answer
|
||||||
async function askAquestion() {
|
async function askAquestion() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CacheService } = require("m3o/cache");
|
const { CacheService } = require("micro-js-client/cache");
|
||||||
|
|
||||||
// Decrement a value (if it's a number). If key not found it is equivalent to set.
|
// Decrement a value (if it's a number). If key not found it is equivalent to set.
|
||||||
async function decrementAvalue() {
|
async function decrementAvalue() {
|
||||||
|
|||||||
2
examples/cache/delete/node/deleteAValue.js
vendored
2
examples/cache/delete/node/deleteAValue.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
const { CacheService } = require("m3o/cache");
|
const { CacheService } = require("micro-js-client/cache");
|
||||||
|
|
||||||
// Delete a value from the cache. If key not found a success response is returned.
|
// Delete a value from the cache. If key not found a success response is returned.
|
||||||
async function deleteAvalue() {
|
async function deleteAvalue() {
|
||||||
|
|||||||
2
examples/cache/get/node/getAValue.js
vendored
2
examples/cache/get/node/getAValue.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
const { CacheService } = require("m3o/cache");
|
const { CacheService } = require("micro-js-client/cache");
|
||||||
|
|
||||||
// Get an item from the cache by key. If key is not found, an empty response is returned.
|
// Get an item from the cache by key. If key is not found, an empty response is returned.
|
||||||
async function getAvalue() {
|
async function getAvalue() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CacheService } = require("m3o/cache");
|
const { CacheService } = require("micro-js-client/cache");
|
||||||
|
|
||||||
// Increment a value (if it's a number). If key not found it is equivalent to set.
|
// Increment a value (if it's a number). If key not found it is equivalent to set.
|
||||||
async function incrementAvalue() {
|
async function incrementAvalue() {
|
||||||
|
|||||||
2
examples/cache/set/node/setAValue.js
vendored
2
examples/cache/set/node/setAValue.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
const { CacheService } = require("m3o/cache");
|
const { CacheService } = require("micro-js-client/cache");
|
||||||
|
|
||||||
// Set an item in the cache. Overwrites any existing value already set.
|
// Set an item in the cache. Overwrites any existing value already set.
|
||||||
async function setAvalue() {
|
async function setAvalue() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CryptoService } = require("m3o/crypto");
|
const { CryptoService } = require("micro-js-client/crypto");
|
||||||
|
|
||||||
// Returns the history for the previous close
|
// Returns the history for the previous close
|
||||||
async function getPreviousClose() {
|
async function getPreviousClose() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CryptoService } = require("m3o/crypto");
|
const { CryptoService } = require("micro-js-client/crypto");
|
||||||
|
|
||||||
// Get news related to a currency
|
// Get news related to a currency
|
||||||
async function getCryptocurrencyNews() {
|
async function getCryptocurrencyNews() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CryptoService } = require("m3o/crypto");
|
const { CryptoService } = require("micro-js-client/crypto");
|
||||||
|
|
||||||
// Get the last price for a given crypto ticker
|
// Get the last price for a given crypto ticker
|
||||||
async function getCryptocurrencyPrice() {
|
async function getCryptocurrencyPrice() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CryptoService } = require("m3o/crypto");
|
const { CryptoService } = require("micro-js-client/crypto");
|
||||||
|
|
||||||
// Get the last quote for a given crypto ticker
|
// Get the last quote for a given crypto ticker
|
||||||
async function getAcryptocurrencyQuote() {
|
async function getAcryptocurrencyQuote() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CurrencyService } = require("m3o/currency");
|
const { CurrencyService } = require("micro-js-client/currency");
|
||||||
|
|
||||||
// Codes returns the supported currency codes for the API
|
// Codes returns the supported currency codes for the API
|
||||||
async function getSupportedCodes() {
|
async function getSupportedCodes() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CurrencyService } = require("m3o/currency");
|
const { CurrencyService } = require("micro-js-client/currency");
|
||||||
|
|
||||||
// Convert returns the currency conversion rate between two pairs e.g USD/GBP
|
// Convert returns the currency conversion rate between two pairs e.g USD/GBP
|
||||||
async function convert10usdToGbp() {
|
async function convert10usdToGbp() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CurrencyService } = require("m3o/currency");
|
const { CurrencyService } = require("micro-js-client/currency");
|
||||||
|
|
||||||
// Convert returns the currency conversion rate between two pairs e.g USD/GBP
|
// Convert returns the currency conversion rate between two pairs e.g USD/GBP
|
||||||
async function convertUsdToGbp() {
|
async function convertUsdToGbp() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CurrencyService } = require("m3o/currency");
|
const { CurrencyService } = require("micro-js-client/currency");
|
||||||
|
|
||||||
// Returns the historic rates for a currency on a given date
|
// Returns the historic rates for a currency on a given date
|
||||||
async function historicRatesForAcurrency() {
|
async function historicRatesForAcurrency() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { CurrencyService } = require("m3o/currency");
|
const { CurrencyService } = require("micro-js-client/currency");
|
||||||
|
|
||||||
// Rates returns the currency rates for a given code e.g USD
|
// Rates returns the currency rates for a given code e.g USD
|
||||||
async function getRatesForUsd() {
|
async function getRatesForUsd() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// Count records in a table
|
// Count records in a table
|
||||||
async function countEntriesInAtable() {
|
async function countEntriesInAtable() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// Create a record in the database. Optionally include an "id" field otherwise it's set automatically.
|
// Create a record in the database. Optionally include an "id" field otherwise it's set automatically.
|
||||||
async function createArecord() {
|
async function createArecord() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// Delete a record in the database by id.
|
// Delete a record in the database by id.
|
||||||
async function deleteArecord() {
|
async function deleteArecord() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// Drop a table in the DB
|
// Drop a table in the DB
|
||||||
async function dropTable() {
|
async function dropTable() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// List tables in the DB
|
// List tables in the DB
|
||||||
async function listTables() {
|
async function listTables() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// Read data from a table. Lookup can be by ID or via querying any field in the record.
|
// Read data from a table. Lookup can be by ID or via querying any field in the record.
|
||||||
async function readRecords() {
|
async function readRecords() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// Rename a table
|
// Rename a table
|
||||||
async function renameTable() {
|
async function renameTable() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// Truncate the records in a table
|
// Truncate the records in a table
|
||||||
async function truncateTable() {
|
async function truncateTable() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { DbService } = require("m3o/db");
|
const { DbService } = require("micro-js-client/db");
|
||||||
|
|
||||||
// Update a record in the database. Include an "id" in the record to update.
|
// Update a record in the database. Include an "id" in the record to update.
|
||||||
async function updateArecord() {
|
async function updateArecord() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EmailService } = require("m3o/email");
|
const { EmailService } = require("micro-js-client/email");
|
||||||
|
|
||||||
// Send an email by passing in from, to, subject, and a text or html body
|
// Send an email by passing in from, to, subject, and a text or html body
|
||||||
async function sendEmail() {
|
async function sendEmail() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EmojiService } = require("m3o/emoji");
|
const { EmojiService } = require("micro-js-client/emoji");
|
||||||
|
|
||||||
// Find an emoji by its alias e.g :beer:
|
// Find an emoji by its alias e.g :beer:
|
||||||
async function findEmoji() {
|
async function findEmoji() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EmojiService } = require("m3o/emoji");
|
const { EmojiService } = require("micro-js-client/emoji");
|
||||||
|
|
||||||
// Get the flag for a country. Requires country code e.g GB for great britain
|
// Get the flag for a country. Requires country code e.g GB for great britain
|
||||||
async function getFlagByCountryCode() {
|
async function getFlagByCountryCode() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EmojiService } = require("m3o/emoji");
|
const { EmojiService } = require("micro-js-client/emoji");
|
||||||
|
|
||||||
// Print text and renders the emojis with aliases e.g
|
// Print text and renders the emojis with aliases e.g
|
||||||
// let's grab a :beer: becomes let's grab a 🍺
|
// let's grab a :beer: becomes let's grab a 🍺
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EmojiService } = require("m3o/emoji");
|
const { EmojiService } = require("micro-js-client/emoji");
|
||||||
|
|
||||||
// Send an emoji to anyone via SMS. Messages are sent in the form '<message> Sent from <from>'
|
// Send an emoji to anyone via SMS. Messages are sent in the form '<message> Sent from <from>'
|
||||||
async function sendAtextContainingAnEmojiToAnyoneViaSms() {
|
async function sendAtextContainingAnEmojiToAnyoneViaSms() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EvchargersService } = require("m3o/evchargers");
|
const { EvchargersService } = require("micro-js-client/evchargers");
|
||||||
|
|
||||||
// Retrieve reference data as used by this API and in conjunction with the Search endpoint
|
// Retrieve reference data as used by this API and in conjunction with the Search endpoint
|
||||||
async function getReferenceData() {
|
async function getReferenceData() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EvchargersService } = require("m3o/evchargers");
|
const { EvchargersService } = require("micro-js-client/evchargers");
|
||||||
|
|
||||||
// Search by giving a coordinate and a max distance, or bounding box and optional filters
|
// Search by giving a coordinate and a max distance, or bounding box and optional filters
|
||||||
async function searchByBoundingBox() {
|
async function searchByBoundingBox() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EvchargersService } = require("m3o/evchargers");
|
const { EvchargersService } = require("micro-js-client/evchargers");
|
||||||
|
|
||||||
// Search by giving a coordinate and a max distance, or bounding box and optional filters
|
// Search by giving a coordinate and a max distance, or bounding box and optional filters
|
||||||
async function searchByLocation() {
|
async function searchByLocation() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EvchargersService } = require("m3o/evchargers");
|
const { EvchargersService } = require("micro-js-client/evchargers");
|
||||||
|
|
||||||
// Search by giving a coordinate and a max distance, or bounding box and optional filters
|
// Search by giving a coordinate and a max distance, or bounding box and optional filters
|
||||||
async function searchWithFiltersFastChargersOnly() {
|
async function searchWithFiltersFastChargersOnly() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EventService } = require("m3o/event");
|
const { EventService } = require("micro-js-client/event");
|
||||||
|
|
||||||
// Consume events from a given topic.
|
// Consume events from a given topic.
|
||||||
async function consumeFromAtopic() {
|
async function consumeFromAtopic() {
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ func PublishAnEvent() {
|
|||||||
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
|
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := eventService.Publish(&event.PublishRequest{
|
rsp, err := eventService.Publish(&event.PublishRequest{
|
||||||
Message: map[string]interface{}{
|
Message: map[string]interface{}{
|
||||||
|
"id": "1",
|
||||||
"type": "signup",
|
"type": "signup",
|
||||||
"user": "john",
|
"user": "john",
|
||||||
"id": "1",
|
|
||||||
},
|
},
|
||||||
Topic: "user",
|
Topic: "user",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EventService } = require("m3o/event");
|
const { EventService } = require("micro-js-client/event");
|
||||||
|
|
||||||
// Publish a event to the event stream.
|
// Publish a event to the event stream.
|
||||||
async function publishAnEvent() {
|
async function publishAnEvent() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { EventService } = require("m3o/event");
|
const { EventService } = require("micro-js-client/event");
|
||||||
|
|
||||||
// Read stored events
|
// Read stored events
|
||||||
async function readEventsOnAtopic() {
|
async function readEventsOnAtopic() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FileService } = require("m3o/file");
|
const { FileService } = require("micro-js-client/file");
|
||||||
|
|
||||||
// Delete a file by project name/path
|
// Delete a file by project name/path
|
||||||
async function deleteFile() {
|
async function deleteFile() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FileService } = require("m3o/file");
|
const { FileService } = require("micro-js-client/file");
|
||||||
|
|
||||||
// List files by their project and optionally a path.
|
// List files by their project and optionally a path.
|
||||||
async function listFiles() {
|
async function listFiles() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FileService } = require("m3o/file");
|
const { FileService } = require("micro-js-client/file");
|
||||||
|
|
||||||
// Read a file by path
|
// Read a file by path
|
||||||
async function readFile() {
|
async function readFile() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FileService } = require("m3o/file");
|
const { FileService } = require("micro-js-client/file");
|
||||||
|
|
||||||
// Save a file
|
// Save a file
|
||||||
async function saveFile() {
|
async function saveFile() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ForexService } = require("m3o/forex");
|
const { ForexService } = require("micro-js-client/forex");
|
||||||
|
|
||||||
// Returns the data for the previous close
|
// Returns the data for the previous close
|
||||||
async function getPreviousClose() {
|
async function getPreviousClose() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ForexService } = require("m3o/forex");
|
const { ForexService } = require("micro-js-client/forex");
|
||||||
|
|
||||||
// Get the latest price for a given forex ticker
|
// Get the latest price for a given forex ticker
|
||||||
async function getAnFxPrice() {
|
async function getAnFxPrice() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ForexService } = require("m3o/forex");
|
const { ForexService } = require("micro-js-client/forex");
|
||||||
|
|
||||||
// Get the latest quote for the forex
|
// Get the latest quote for the forex
|
||||||
async function getAfxQuote() {
|
async function getAfxQuote() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FunctionService } = require("m3o/function");
|
const { FunctionService } = require("micro-js-client/function");
|
||||||
|
|
||||||
// Call a function by name
|
// Call a function by name
|
||||||
async function callAfunction() {
|
async function callAfunction() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FunctionService } = require("m3o/function");
|
const { FunctionService } = require("micro-js-client/function");
|
||||||
|
|
||||||
// Delete a function by name
|
// Delete a function by name
|
||||||
async function deleteAfunction() {
|
async function deleteAfunction() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FunctionService } = require("m3o/function");
|
const { FunctionService } = require("micro-js-client/function");
|
||||||
|
|
||||||
// Deploy a group of functions
|
// Deploy a group of functions
|
||||||
async function deployAfunction() {
|
async function deployAfunction() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FunctionService } = require("m3o/function");
|
const { FunctionService } = require("micro-js-client/function");
|
||||||
|
|
||||||
// Get the info for a deployed function
|
// Get the info for a deployed function
|
||||||
async function describeFunctionStatus() {
|
async function describeFunctionStatus() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { FunctionService } = require("m3o/function");
|
const { FunctionService } = require("micro-js-client/function");
|
||||||
|
|
||||||
// List all the deployed functions
|
// List all the deployed functions
|
||||||
async function listFunctions() {
|
async function listFunctions() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { GeocodingService } = require("m3o/geocoding");
|
const { GeocodingService } = require("micro-js-client/geocoding");
|
||||||
|
|
||||||
// Lookup returns a geocoded address including normalized address and gps coordinates. All fields are optional, provide more to get more accurate results
|
// Lookup returns a geocoded address including normalized address and gps coordinates. All fields are optional, provide more to get more accurate results
|
||||||
async function geocodeAnAddress() {
|
async function geocodeAnAddress() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { GeocodingService } = require("m3o/geocoding");
|
const { GeocodingService } = require("micro-js-client/geocoding");
|
||||||
|
|
||||||
// Reverse lookup an address from gps coordinates
|
// Reverse lookup an address from gps coordinates
|
||||||
async function reverseGeocodeLocation() {
|
async function reverseGeocodeLocation() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { GifsService } = require("m3o/gifs");
|
const { GifsService } = require("micro-js-client/gifs");
|
||||||
|
|
||||||
// Search for a GIF
|
// Search for a GIF
|
||||||
async function search() {
|
async function search() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { GoogleService } = require("m3o/google");
|
const { GoogleService } = require("micro-js-client/google");
|
||||||
|
|
||||||
// Search for videos on Google
|
// Search for videos on Google
|
||||||
async function searchForVideos() {
|
async function searchForVideos() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { HelloworldService } = require("m3o/helloworld");
|
const { HelloworldService } = require("micro-js-client/helloworld");
|
||||||
|
|
||||||
// Call returns a personalised "Hello $name" response
|
// Call returns a personalised "Hello $name" response
|
||||||
async function callTheHelloworldService() {
|
async function callTheHelloworldService() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { HelloworldService } = require("m3o/helloworld");
|
const { HelloworldService } = require("micro-js-client/helloworld");
|
||||||
|
|
||||||
// Stream returns a stream of "Hello $name" responses
|
// Stream returns a stream of "Hello $name" responses
|
||||||
async function streamsResponsesFromTheServerUsingWebsockets() {
|
async function streamsResponsesFromTheServerUsingWebsockets() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { HolidaysService } = require("m3o/holidays");
|
const { HolidaysService } = require("micro-js-client/holidays");
|
||||||
|
|
||||||
// Get the list of countries that are supported by this API
|
// Get the list of countries that are supported by this API
|
||||||
async function listCountries() {
|
async function listCountries() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { HolidaysService } = require("m3o/holidays");
|
const { HolidaysService } = require("micro-js-client/holidays");
|
||||||
|
|
||||||
// List the holiday dates for a given country and year
|
// List the holiday dates for a given country and year
|
||||||
async function getHolidays() {
|
async function getHolidays() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { IdService } = require("m3o/id");
|
const { IdService } = require("micro-js-client/id");
|
||||||
|
|
||||||
// Generate a unique ID. Defaults to uuid.
|
// Generate a unique ID. Defaults to uuid.
|
||||||
async function generateAbigflakeId() {
|
async function generateAbigflakeId() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { IdService } = require("m3o/id");
|
const { IdService } = require("micro-js-client/id");
|
||||||
|
|
||||||
// Generate a unique ID. Defaults to uuid.
|
// Generate a unique ID. Defaults to uuid.
|
||||||
async function generateAshortId() {
|
async function generateAshortId() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { IdService } = require("m3o/id");
|
const { IdService } = require("micro-js-client/id");
|
||||||
|
|
||||||
// Generate a unique ID. Defaults to uuid.
|
// Generate a unique ID. Defaults to uuid.
|
||||||
async function generateAsnowflakeId() {
|
async function generateAsnowflakeId() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { IdService } = require("m3o/id");
|
const { IdService } = require("micro-js-client/id");
|
||||||
|
|
||||||
// Generate a unique ID. Defaults to uuid.
|
// Generate a unique ID. Defaults to uuid.
|
||||||
async function generateAuniqueId() {
|
async function generateAuniqueId() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { IdService } = require("m3o/id");
|
const { IdService } = require("micro-js-client/id");
|
||||||
|
|
||||||
// List the types of IDs available. No query params needed.
|
// List the types of IDs available. No query params needed.
|
||||||
async function listTheTypesOfIdsAvailable() {
|
async function listTheTypesOfIdsAvailable() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ImageService } = require("m3o/image");
|
const { ImageService } = require("micro-js-client/image");
|
||||||
|
|
||||||
// Convert an image from one format (jpeg, png etc.) to an other either on the fly (from base64 to base64),
|
// Convert an image from one format (jpeg, png etc.) to an other either on the fly (from base64 to base64),
|
||||||
// or by uploading the conversion result.
|
// or by uploading the conversion result.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ImageService } = require("m3o/image");
|
const { ImageService } = require("micro-js-client/image");
|
||||||
|
|
||||||
// Delete an image previously uploaded.
|
// Delete an image previously uploaded.
|
||||||
async function deleteAnUploadedImage() {
|
async function deleteAnUploadedImage() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ImageService } = require("m3o/image");
|
const { ImageService } = require("micro-js-client/image");
|
||||||
|
|
||||||
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
|
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
|
||||||
// If one of width or height is 0, the image aspect ratio is preserved.
|
// If one of width or height is 0, the image aspect ratio is preserved.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ImageService } = require("m3o/image");
|
const { ImageService } = require("micro-js-client/image");
|
||||||
|
|
||||||
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
|
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
|
||||||
// If one of width or height is 0, the image aspect ratio is preserved.
|
// If one of width or height is 0, the image aspect ratio is preserved.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ImageService } = require("m3o/image");
|
const { ImageService } = require("micro-js-client/image");
|
||||||
|
|
||||||
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
|
// Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters.
|
||||||
// If one of width or height is 0, the image aspect ratio is preserved.
|
// If one of width or height is 0, the image aspect ratio is preserved.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ImageService } = require("m3o/image");
|
const { ImageService } = require("micro-js-client/image");
|
||||||
|
|
||||||
// Upload an image by either sending a base64 encoded image to this endpoint or a URL.
|
// Upload an image by either sending a base64 encoded image to this endpoint or a URL.
|
||||||
// To resize an image before uploading, see the Resize endpoint.
|
// To resize an image before uploading, see the Resize endpoint.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { ImageService } = require("m3o/image");
|
const { ImageService } = require("micro-js-client/image");
|
||||||
|
|
||||||
// Upload an image by either sending a base64 encoded image to this endpoint or a URL.
|
// Upload an image by either sending a base64 encoded image to this endpoint or a URL.
|
||||||
// To resize an image before uploading, see the Resize endpoint.
|
// To resize an image before uploading, see the Resize endpoint.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { IpService } = require("m3o/ip");
|
const { IpService } = require("micro-js-client/ip");
|
||||||
|
|
||||||
// Lookup the geolocation information for an IP address
|
// Lookup the geolocation information for an IP address
|
||||||
async function lookupIpInfo() {
|
async function lookupIpInfo() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { LocationService } = require("m3o/location");
|
const { LocationService } = require("micro-js-client/location");
|
||||||
|
|
||||||
// Read an entity by its ID
|
// Read an entity by its ID
|
||||||
async function getLocationById() {
|
async function getLocationById() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { LocationService } = require("m3o/location");
|
const { LocationService } = require("micro-js-client/location");
|
||||||
|
|
||||||
// Save an entity's current position
|
// Save an entity's current position
|
||||||
async function saveAnEntity() {
|
async function saveAnEntity() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { LocationService } = require("m3o/location");
|
const { LocationService } = require("micro-js-client/location");
|
||||||
|
|
||||||
// Search for entities in a given radius
|
// Search for entities in a given radius
|
||||||
async function searchForLocations() {
|
async function searchForLocations() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { MqService } = require("m3o/mq");
|
const { MqService } = require("micro-js-client/mq");
|
||||||
|
|
||||||
// Publish a message. Specify a topic to group messages for a specific topic.
|
// Publish a message. Specify a topic to group messages for a specific topic.
|
||||||
async function publishAmessage() {
|
async function publishAmessage() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { MqService } = require("m3o/mq");
|
const { MqService } = require("micro-js-client/mq");
|
||||||
|
|
||||||
// Subscribe to messages for a given topic.
|
// Subscribe to messages for a given topic.
|
||||||
async function subscribeToAtopic() {
|
async function subscribeToAtopic() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { NotesService } = require("m3o/notes");
|
const { NotesService } = require("micro-js-client/notes");
|
||||||
|
|
||||||
// Create a new note
|
// Create a new note
|
||||||
async function createAnote() {
|
async function createAnote() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { NotesService } = require("m3o/notes");
|
const { NotesService } = require("micro-js-client/notes");
|
||||||
|
|
||||||
// Delete a note
|
// Delete a note
|
||||||
async function deleteAnote() {
|
async function deleteAnote() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { NotesService } = require("m3o/notes");
|
const { NotesService } = require("micro-js-client/notes");
|
||||||
|
|
||||||
// Subscribe to notes events
|
// Subscribe to notes events
|
||||||
async function subscribeToEvents() {
|
async function subscribeToEvents() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { NotesService } = require("m3o/notes");
|
const { NotesService } = require("micro-js-client/notes");
|
||||||
|
|
||||||
// List all the notes
|
// List all the notes
|
||||||
async function listAllNotes() {
|
async function listAllNotes() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { NotesService } = require("m3o/notes");
|
const { NotesService } = require("micro-js-client/notes");
|
||||||
|
|
||||||
// Read a note
|
// Read a note
|
||||||
async function readAnote() {
|
async function readAnote() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { NotesService } = require("m3o/notes");
|
const { NotesService } = require("micro-js-client/notes");
|
||||||
|
|
||||||
// Update a note
|
// Update a note
|
||||||
async function updateAnote() {
|
async function updateAnote() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { OtpService } = require("m3o/otp");
|
const { OtpService } = require("micro-js-client/otp");
|
||||||
|
|
||||||
// Generate an OTP (one time pass) code
|
// Generate an OTP (one time pass) code
|
||||||
async function generateOtp() {
|
async function generateOtp() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { OtpService } = require("m3o/otp");
|
const { OtpService } = require("micro-js-client/otp");
|
||||||
|
|
||||||
// Validate the OTP code
|
// Validate the OTP code
|
||||||
async function validateOtp() {
|
async function validateOtp() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { PostcodeService } = require("m3o/postcode");
|
const { PostcodeService } = require("micro-js-client/postcode");
|
||||||
|
|
||||||
// Lookup a postcode to retrieve the related region, county, etc
|
// Lookup a postcode to retrieve the related region, county, etc
|
||||||
async function lookupPostcode() {
|
async function lookupPostcode() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { PostcodeService } = require("m3o/postcode");
|
const { PostcodeService } = require("micro-js-client/postcode");
|
||||||
|
|
||||||
// Return a random postcode and its related info
|
// Return a random postcode and its related info
|
||||||
async function returnArandomPostcodeAndItsInformation() {
|
async function returnArandomPostcodeAndItsInformation() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { PostcodeService } = require("m3o/postcode");
|
const { PostcodeService } = require("micro-js-client/postcode");
|
||||||
|
|
||||||
// Validate a postcode.
|
// Validate a postcode.
|
||||||
async function returnArandomPostcodeAndItsInformation() {
|
async function returnArandomPostcodeAndItsInformation() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { PrayerService } = require("m3o/prayer");
|
const { PrayerService } = require("micro-js-client/prayer");
|
||||||
|
|
||||||
// Get the prayer (salah) times for a location on a given date
|
// Get the prayer (salah) times for a location on a given date
|
||||||
async function prayerTimes() {
|
async function prayerTimes() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { QrService } = require("m3o/qr");
|
const { QrService } = require("micro-js-client/qr");
|
||||||
|
|
||||||
// Generate a QR code with a specific text and size
|
// Generate a QR code with a specific text and size
|
||||||
async function generateAqrCode() {
|
async function generateAqrCode() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { QuranService } = require("m3o/quran");
|
const { QuranService } = require("micro-js-client/quran");
|
||||||
|
|
||||||
// List the Chapters (surahs) of the Quran
|
// List the Chapters (surahs) of the Quran
|
||||||
async function listChapters() {
|
async function listChapters() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { QuranService } = require("m3o/quran");
|
const { QuranService } = require("micro-js-client/quran");
|
||||||
|
|
||||||
// Search the Quran for any form of query or questions
|
// Search the Quran for any form of query or questions
|
||||||
async function searchTheQuran() {
|
async function searchTheQuran() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { QuranService } = require("m3o/quran");
|
const { QuranService } = require("micro-js-client/quran");
|
||||||
|
|
||||||
// Get a summary for a given chapter (surah)
|
// Get a summary for a given chapter (surah)
|
||||||
async function getChapterSummary() {
|
async function getChapterSummary() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { QuranService } = require("m3o/quran");
|
const { QuranService } = require("micro-js-client/quran");
|
||||||
|
|
||||||
// Lookup the verses (ayahs) for a chapter including
|
// Lookup the verses (ayahs) for a chapter including
|
||||||
// translation, interpretation and breakdown by individual
|
// translation, interpretation and breakdown by individual
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { RoutingService } = require("m3o/routing");
|
const { RoutingService } = require("micro-js-client/routing");
|
||||||
|
|
||||||
// Turn by turn directions from a start point to an end point including maneuvers and bearings
|
// Turn by turn directions from a start point to an end point including maneuvers and bearings
|
||||||
async function turnByTurnDirections() {
|
async function turnByTurnDirections() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { RoutingService } = require("m3o/routing");
|
const { RoutingService } = require("micro-js-client/routing");
|
||||||
|
|
||||||
// Get the eta for a route from origin to destination. The eta is an estimated time based on car routes
|
// Get the eta for a route from origin to destination. The eta is an estimated time based on car routes
|
||||||
async function etaFromPointAtoPointB() {
|
async function etaFromPointAtoPointB() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { RoutingService } = require("m3o/routing");
|
const { RoutingService } = require("micro-js-client/routing");
|
||||||
|
|
||||||
// Retrieve a route as a simple list of gps points along with total distance and estimated duration
|
// Retrieve a route as a simple list of gps points along with total distance and estimated duration
|
||||||
async function gpsPointsForAroute() {
|
async function gpsPointsForAroute() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { RssService } = require("m3o/rss");
|
const { RssService } = require("micro-js-client/rss");
|
||||||
|
|
||||||
// Add a new RSS feed with a name, url, and category
|
// Add a new RSS feed with a name, url, and category
|
||||||
async function addAnewFeed() {
|
async function addAnewFeed() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { RssService } = require("m3o/rss");
|
const { RssService } = require("micro-js-client/rss");
|
||||||
|
|
||||||
// Get an RSS feed by name. If no name is given, all feeds are returned. Default limit is 25 entries.
|
// Get an RSS feed by name. If no name is given, all feeds are returned. Default limit is 25 entries.
|
||||||
async function readAfeed() {
|
async function readAfeed() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { RssService } = require("m3o/rss");
|
const { RssService } = require("micro-js-client/rss");
|
||||||
|
|
||||||
// List the saved RSS fields
|
// List the saved RSS fields
|
||||||
async function listRssFeeds() {
|
async function listRssFeeds() {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user