mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 19:25:16 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -79,5 +79,5 @@
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"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
|
||||
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
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
async function getRatesForUsd() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Count records in a table
|
||||
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.
|
||||
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.
|
||||
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
|
||||
async function dropTable() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// List tables in the DB
|
||||
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.
|
||||
async function readRecords() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { DbService } = require("m3o/db");
|
||||
const { DbService } = require("micro-js-client/db");
|
||||
|
||||
// Rename a table
|
||||
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
|
||||
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.
|
||||
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
|
||||
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:
|
||||
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
|
||||
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
|
||||
// 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>'
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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.
|
||||
async function consumeFromAtopic() {
|
||||
|
||||
@@ -12,9 +12,9 @@ func PublishAnEvent() {
|
||||
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := eventService.Publish(&event.PublishRequest{
|
||||
Message: map[string]interface{}{
|
||||
"id": "1",
|
||||
"type": "signup",
|
||||
"user": "john",
|
||||
"id": "1",
|
||||
},
|
||||
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.
|
||||
async function publishAnEvent() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { EventService } = require("m3o/event");
|
||||
const { EventService } = require("micro-js-client/event");
|
||||
|
||||
// Read stored events
|
||||
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
|
||||
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.
|
||||
async function listFiles() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { FileService } = require("m3o/file");
|
||||
const { FileService } = require("micro-js-client/file");
|
||||
|
||||
// Read a file by path
|
||||
async function readFile() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { FileService } = require("m3o/file");
|
||||
const { FileService } = require("micro-js-client/file");
|
||||
|
||||
// Save a file
|
||||
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
|
||||
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
|
||||
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
|
||||
async function getAfxQuote() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { FunctionService } = require("m3o/function");
|
||||
const { FunctionService } = require("micro-js-client/function");
|
||||
|
||||
// Call a function by name
|
||||
async function callAfunction() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { FunctionService } = require("m3o/function");
|
||||
const { FunctionService } = require("micro-js-client/function");
|
||||
|
||||
// Delete a function by name
|
||||
async function deleteAfunction() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { FunctionService } = require("m3o/function");
|
||||
const { FunctionService } = require("micro-js-client/function");
|
||||
|
||||
// Deploy a group of functions
|
||||
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
|
||||
async function describeFunctionStatus() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { FunctionService } = require("m3o/function");
|
||||
const { FunctionService } = require("micro-js-client/function");
|
||||
|
||||
// List all the deployed functions
|
||||
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
|
||||
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
|
||||
async function reverseGeocodeLocation() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { GifsService } = require("m3o/gifs");
|
||||
const { GifsService } = require("micro-js-client/gifs");
|
||||
|
||||
// Search for a GIF
|
||||
async function search() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { GoogleService } = require("m3o/google");
|
||||
const { GoogleService } = require("micro-js-client/google");
|
||||
|
||||
// Search for videos on Google
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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.
|
||||
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),
|
||||
// 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.
|
||||
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.
|
||||
// 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.
|
||||
// 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.
|
||||
// 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.
|
||||
// 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.
|
||||
// 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
|
||||
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
|
||||
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
|
||||
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
|
||||
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.
|
||||
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.
|
||||
async function subscribeToAtopic() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { NotesService } = require("m3o/notes");
|
||||
const { NotesService } = require("micro-js-client/notes");
|
||||
|
||||
// Create a new note
|
||||
async function createAnote() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { NotesService } = require("m3o/notes");
|
||||
const { NotesService } = require("micro-js-client/notes");
|
||||
|
||||
// Delete a note
|
||||
async function deleteAnote() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { NotesService } = require("m3o/notes");
|
||||
const { NotesService } = require("micro-js-client/notes");
|
||||
|
||||
// Subscribe to notes events
|
||||
async function subscribeToEvents() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { NotesService } = require("m3o/notes");
|
||||
const { NotesService } = require("micro-js-client/notes");
|
||||
|
||||
// List all the notes
|
||||
async function listAllNotes() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { NotesService } = require("m3o/notes");
|
||||
const { NotesService } = require("micro-js-client/notes");
|
||||
|
||||
// Read a note
|
||||
async function readAnote() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { NotesService } = require("m3o/notes");
|
||||
const { NotesService } = require("micro-js-client/notes");
|
||||
|
||||
// Update a note
|
||||
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
|
||||
async function generateOtp() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { OtpService } = require("m3o/otp");
|
||||
const { OtpService } = require("micro-js-client/otp");
|
||||
|
||||
// Validate the OTP code
|
||||
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
|
||||
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
|
||||
async function returnArandomPostcodeAndItsInformation() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { PostcodeService } = require("m3o/postcode");
|
||||
const { PostcodeService } = require("micro-js-client/postcode");
|
||||
|
||||
// Validate a postcode.
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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)
|
||||
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
|
||||
// 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
|
||||
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
|
||||
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
|
||||
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
|
||||
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.
|
||||
async function readAfeed() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { RssService } = require("m3o/rss");
|
||||
const { RssService } = require("micro-js-client/rss");
|
||||
|
||||
// List the saved RSS fields
|
||||
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