From ef70da538095bc638561c3a7c4eeeca9c7addfee Mon Sep 17 00:00:00 2001 From: asim Date: Wed, 17 Nov 2021 22:20:21 +0000 Subject: [PATCH] Commit from GitHub Actions (Generate Clients & Examples) --- clients/ts/package.json | 2 +- examples/address/lookupPostcode/node/lookupPostcode.js | 2 +- examples/answer/question/node/askAQuestion.js | 2 +- examples/cache/decrement/node/decrementAValue.js | 2 +- examples/cache/delete/node/deleteAValue.js | 2 +- examples/cache/get/node/getAValue.js | 2 +- examples/cache/increment/node/incrementAValue.js | 2 +- examples/cache/set/node/setAValue.js | 2 +- examples/crypto/history/node/getPreviousClose.js | 2 +- examples/crypto/news/node/getCryptocurrencyNews.js | 2 +- examples/crypto/price/node/getCryptocurrencyPrice.js | 2 +- examples/crypto/quote/node/getACryptocurrencyQuote.js | 2 +- examples/currency/codes/node/getSupportedCodes.js | 2 +- examples/currency/convert/node/convert10UsdToGbp.js | 2 +- examples/currency/convert/node/convertUsdToGbp.js | 2 +- examples/currency/history/node/historicRatesForACurrency.js | 2 +- examples/currency/rates/node/getRatesForUsd.js | 2 +- examples/db/count/node/countEntriesInATable.js | 2 +- examples/db/create/node/createARecord.js | 2 +- examples/db/delete/node/deleteARecord.js | 2 +- examples/db/dropTable/node/dropTable.js | 2 +- examples/db/listTables/node/listTables.js | 2 +- examples/db/read/node/readRecords.js | 2 +- examples/db/renameTable/node/renameTable.js | 2 +- examples/db/truncate/node/truncateTable.js | 2 +- examples/db/update/node/updateARecord.js | 2 +- examples/email/send/node/sendEmail.js | 2 +- examples/emoji/find/node/findEmoji.js | 2 +- examples/emoji/flag/node/getFlagByCountryCode.js | 2 +- examples/emoji/print/node/printTextIncludingEmoji.js | 2 +- .../emoji/send/node/sendATextContainingAnEmojiToAnyoneViaSms.js | 2 +- examples/evchargers/referenceData/node/getReferenceData.js | 2 +- examples/evchargers/search/node/searchByBoundingBox.js | 2 +- examples/evchargers/search/node/searchByLocation.js | 2 +- .../evchargers/search/node/searchWithFiltersFastChargersOnly.js | 2 +- examples/event/consume/node/consumeFromATopic.js | 2 +- examples/event/publish/go/publishAnEvent.go | 2 +- examples/event/publish/node/publishAnEvent.js | 2 +- examples/event/read/node/readEventsOnATopic.js | 2 +- examples/file/delete/node/deleteFile.js | 2 +- examples/file/list/node/listFiles.js | 2 +- examples/file/read/node/readFile.js | 2 +- examples/file/save/node/saveFile.js | 2 +- examples/forex/history/node/getPreviousClose.js | 2 +- examples/forex/price/node/getAnFxPrice.js | 2 +- examples/forex/quote/node/getAFxQuote.js | 2 +- examples/function/call/node/callAFunction.js | 2 +- examples/function/delete/node/deleteAFunction.js | 2 +- examples/function/deploy/node/deployAFunction.js | 2 +- examples/function/describe/node/describeFunctionStatus.js | 2 +- examples/function/list/node/listFunctions.js | 2 +- examples/geocoding/lookup/node/geocodeAnAddress.js | 2 +- examples/geocoding/reverse/node/reverseGeocodeLocation.js | 2 +- examples/gifs/search/node/search.js | 2 +- examples/google/search/node/searchForVideos.js | 2 +- examples/helloworld/call/node/callTheHelloworldService.js | 2 +- .../stream/node/streamsResponsesFromTheServerUsingWebsockets.js | 2 +- examples/holidays/countries/node/listCountries.js | 2 +- examples/holidays/list/node/getHolidays.js | 2 +- examples/id/generate/node/generateABigflakeId.js | 2 +- examples/id/generate/node/generateAShortId.js | 2 +- examples/id/generate/node/generateASnowflakeId.js | 2 +- examples/id/generate/node/generateAUniqueId.js | 2 +- examples/id/types/node/listTheTypesOfIdsAvailable.js | 2 +- ...ertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.js | 2 +- examples/image/delete/node/deleteAnUploadedImage.js | 2 +- examples/image/resize/node/base64ToBase64Image.js | 2 +- examples/image/resize/node/base64ToBase64ImageWithCropping.js | 2 +- examples/image/resize/node/base64ToHostedImage.js | 2 +- examples/image/upload/node/uploadABase64ImageToMicrosCdn.js | 2 +- examples/image/upload/node/uploadAnImageFromAUrlToMicrosCdn.js | 2 +- examples/ip/lookup/node/lookupIpInfo.js | 2 +- examples/location/read/node/getLocationById.js | 2 +- examples/location/save/node/saveAnEntity.js | 2 +- examples/location/search/node/searchForLocations.js | 2 +- examples/mq/publish/node/publishAMessage.js | 2 +- examples/mq/subscribe/node/subscribeToATopic.js | 2 +- examples/notes/create/node/createANote.js | 2 +- examples/notes/delete/node/deleteANote.js | 2 +- examples/notes/events/node/subscribeToEvents.js | 2 +- examples/notes/list/node/listAllNotes.js | 2 +- examples/notes/read/node/readANote.js | 2 +- examples/notes/update/node/updateANote.js | 2 +- examples/otp/generate/node/generateOtp.js | 2 +- examples/otp/validate/node/validateOtp.js | 2 +- examples/postcode/lookup/node/lookupPostcode.js | 2 +- .../random/node/returnARandomPostcodeAndItsInformation.js | 2 +- .../validate/node/returnARandomPostcodeAndItsInformation.js | 2 +- examples/prayer/times/node/prayerTimes.js | 2 +- examples/qr/generate/node/generateAQrCode.js | 2 +- examples/quran/chapters/node/listChapters.js | 2 +- examples/quran/search/node/searchTheQuran.js | 2 +- examples/quran/summary/node/getChapterSummary.js | 2 +- examples/quran/verses/node/getVersesOfAChapter.js | 2 +- examples/routing/directions/node/turnByTurnDirections.js | 2 +- examples/routing/eta/node/etaFromPointAToPointB.js | 2 +- examples/routing/route/node/gpsPointsForARoute.js | 2 +- examples/rss/add/node/addANewFeed.js | 2 +- examples/rss/feed/node/readAFeed.js | 2 +- examples/rss/list/node/listRssFeeds.js | 2 +- examples/rss/remove/node/removeAFeed.js | 2 +- examples/sentiment/analyze/node/analyzeAPieceOfText.js | 2 +- examples/sms/send/node/sendSms.js | 2 +- examples/spam/classify/node/classifyAnEmail.js | 2 +- examples/spam/classify/node/classifyAnEmailUsingTheRawData.js | 2 +- examples/stock/history/node/getHistoricData.js | 2 +- examples/stock/orderBook/node/orderBookHistory.js | 2 +- examples/stock/price/node/getAStockPrice.js | 2 +- examples/stock/quote/node/getAStockQuote.js | 2 +- examples/stream/createChannel/node/createChannel.js | 2 +- examples/stream/listChannels/node/listChannels.js | 2 +- examples/stream/listMessages/node/listMessages.js | 2 +- examples/stream/sendMessage/node/sendMessage.js | 2 +- examples/sunnah/books/node/getTheBooksWithinACollection.js | 2 +- examples/sunnah/chapters/node/listTheChaptersInABook.js | 2 +- examples/sunnah/collections/node/listAvailableCollections.js | 2 +- examples/sunnah/hadiths/node/listTheHadithsInABook.js | 2 +- examples/thumbnail/screenshot/node/takeScreenshotOfAUrl.js | 2 +- .../time/now/node/returnsCurrentTimeOptionallyWithLocation.js | 2 +- .../time/zone/node/getTheTimezoneInfoForASpecificLocation.js | 2 +- examples/twitter/search/node/searchForTweets.js | 2 +- examples/twitter/timeline/node/getATwitterTimeline.js | 2 +- .../twitter/trends/node/getTheCurrentGlobalTrendingTopics.js | 2 +- examples/twitter/user/node/getAUsersTwitterProfile.js | 2 +- examples/url/list/node/listYourShortenedUrls.js | 2 +- .../url/proxy/node/resolveAShortUrlToALongDestinationUrl.js | 2 +- examples/url/shorten/node/shortenALongUrl.js | 2 +- examples/user/create/node/createAnAccount.js | 2 +- examples/user/delete/node/deleteUserAccount.js | 2 +- examples/user/login/node/logAUserIn.js | 2 +- examples/user/logout/node/logAUserOut.js | 2 +- examples/user/read/node/readAccountByEmail.js | 2 +- examples/user/read/node/readAccountByUsernameOrEmail.js | 2 +- examples/user/read/node/readAnAccountById.js | 2 +- examples/user/readSession/node/readASessionByTheSessionId.js | 2 +- examples/user/resetPassword/node/resetPassword.js | 2 +- .../user/sendPasswordResetEmail/node/sendPasswordResetEmail.js | 2 +- .../user/sendVerificationEmail/node/sendVerificationEmail.js | 2 +- examples/user/update/node/updateAnAccount.js | 2 +- examples/user/updatePassword/node/updateTheAccountPassword.js | 2 +- examples/user/verifyEmail/node/verifyEmail.js | 2 +- examples/vehicle/lookup/node/lookupVehicle.js | 2 +- examples/weather/forecast/node/forecastWeather.js | 2 +- examples/weather/now/node/getCurrentWeather.js | 2 +- examples/youtube/search/node/searchForVideos.js | 2 +- 145 files changed, 145 insertions(+), 145 deletions(-) diff --git a/clients/ts/package.json b/clients/ts/package.json index 916807f..52577d1 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -79,5 +79,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.769" + "version": "1.0.770" } \ No newline at end of file diff --git a/examples/address/lookupPostcode/node/lookupPostcode.js b/examples/address/lookupPostcode/node/lookupPostcode.js index 4add73b..9f1753c 100755 --- a/examples/address/lookupPostcode/node/lookupPostcode.js +++ b/examples/address/lookupPostcode/node/lookupPostcode.js @@ -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() { diff --git a/examples/answer/question/node/askAQuestion.js b/examples/answer/question/node/askAQuestion.js index 820a37f..8559193 100755 --- a/examples/answer/question/node/askAQuestion.js +++ b/examples/answer/question/node/askAQuestion.js @@ -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() { diff --git a/examples/cache/decrement/node/decrementAValue.js b/examples/cache/decrement/node/decrementAValue.js index ed914a5..fef6d3d 100755 --- a/examples/cache/decrement/node/decrementAValue.js +++ b/examples/cache/decrement/node/decrementAValue.js @@ -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() { diff --git a/examples/cache/delete/node/deleteAValue.js b/examples/cache/delete/node/deleteAValue.js index 678c0b9..afbd8bd 100755 --- a/examples/cache/delete/node/deleteAValue.js +++ b/examples/cache/delete/node/deleteAValue.js @@ -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() { diff --git a/examples/cache/get/node/getAValue.js b/examples/cache/get/node/getAValue.js index 76083bf..5c43bfb 100755 --- a/examples/cache/get/node/getAValue.js +++ b/examples/cache/get/node/getAValue.js @@ -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() { diff --git a/examples/cache/increment/node/incrementAValue.js b/examples/cache/increment/node/incrementAValue.js index a40e81d..ba67c88 100755 --- a/examples/cache/increment/node/incrementAValue.js +++ b/examples/cache/increment/node/incrementAValue.js @@ -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() { diff --git a/examples/cache/set/node/setAValue.js b/examples/cache/set/node/setAValue.js index 02b0431..1acb99f 100755 --- a/examples/cache/set/node/setAValue.js +++ b/examples/cache/set/node/setAValue.js @@ -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() { diff --git a/examples/crypto/history/node/getPreviousClose.js b/examples/crypto/history/node/getPreviousClose.js index 07f9a52..e645857 100755 --- a/examples/crypto/history/node/getPreviousClose.js +++ b/examples/crypto/history/node/getPreviousClose.js @@ -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() { diff --git a/examples/crypto/news/node/getCryptocurrencyNews.js b/examples/crypto/news/node/getCryptocurrencyNews.js index 310dc93..ac156cc 100755 --- a/examples/crypto/news/node/getCryptocurrencyNews.js +++ b/examples/crypto/news/node/getCryptocurrencyNews.js @@ -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() { diff --git a/examples/crypto/price/node/getCryptocurrencyPrice.js b/examples/crypto/price/node/getCryptocurrencyPrice.js index 4881602..c7cb01d 100755 --- a/examples/crypto/price/node/getCryptocurrencyPrice.js +++ b/examples/crypto/price/node/getCryptocurrencyPrice.js @@ -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() { diff --git a/examples/crypto/quote/node/getACryptocurrencyQuote.js b/examples/crypto/quote/node/getACryptocurrencyQuote.js index b8391df..d2a3741 100755 --- a/examples/crypto/quote/node/getACryptocurrencyQuote.js +++ b/examples/crypto/quote/node/getACryptocurrencyQuote.js @@ -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() { diff --git a/examples/currency/codes/node/getSupportedCodes.js b/examples/currency/codes/node/getSupportedCodes.js index a30b610..3c36126 100755 --- a/examples/currency/codes/node/getSupportedCodes.js +++ b/examples/currency/codes/node/getSupportedCodes.js @@ -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() { diff --git a/examples/currency/convert/node/convert10UsdToGbp.js b/examples/currency/convert/node/convert10UsdToGbp.js index b2776df..d440b7c 100755 --- a/examples/currency/convert/node/convert10UsdToGbp.js +++ b/examples/currency/convert/node/convert10UsdToGbp.js @@ -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() { diff --git a/examples/currency/convert/node/convertUsdToGbp.js b/examples/currency/convert/node/convertUsdToGbp.js index 3d8f634..a7fe51b 100755 --- a/examples/currency/convert/node/convertUsdToGbp.js +++ b/examples/currency/convert/node/convertUsdToGbp.js @@ -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() { diff --git a/examples/currency/history/node/historicRatesForACurrency.js b/examples/currency/history/node/historicRatesForACurrency.js index b888554..c535f63 100755 --- a/examples/currency/history/node/historicRatesForACurrency.js +++ b/examples/currency/history/node/historicRatesForACurrency.js @@ -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() { diff --git a/examples/currency/rates/node/getRatesForUsd.js b/examples/currency/rates/node/getRatesForUsd.js index 2c9dcb5..12b940f 100755 --- a/examples/currency/rates/node/getRatesForUsd.js +++ b/examples/currency/rates/node/getRatesForUsd.js @@ -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() { diff --git a/examples/db/count/node/countEntriesInATable.js b/examples/db/count/node/countEntriesInATable.js index 070dd39..de6764b 100755 --- a/examples/db/count/node/countEntriesInATable.js +++ b/examples/db/count/node/countEntriesInATable.js @@ -1,4 +1,4 @@ -const { DbService } = require("m3o/db"); +const { DbService } = require("micro-js-client/db"); // Count records in a table async function countEntriesInAtable() { diff --git a/examples/db/create/node/createARecord.js b/examples/db/create/node/createARecord.js index 376473f..7b57dad 100755 --- a/examples/db/create/node/createARecord.js +++ b/examples/db/create/node/createARecord.js @@ -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() { diff --git a/examples/db/delete/node/deleteARecord.js b/examples/db/delete/node/deleteARecord.js index 28f6980..cf0e74a 100755 --- a/examples/db/delete/node/deleteARecord.js +++ b/examples/db/delete/node/deleteARecord.js @@ -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() { diff --git a/examples/db/dropTable/node/dropTable.js b/examples/db/dropTable/node/dropTable.js index 32df9f5..a71ce1c 100755 --- a/examples/db/dropTable/node/dropTable.js +++ b/examples/db/dropTable/node/dropTable.js @@ -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() { diff --git a/examples/db/listTables/node/listTables.js b/examples/db/listTables/node/listTables.js index 8f629b9..8cc8081 100755 --- a/examples/db/listTables/node/listTables.js +++ b/examples/db/listTables/node/listTables.js @@ -1,4 +1,4 @@ -const { DbService } = require("m3o/db"); +const { DbService } = require("micro-js-client/db"); // List tables in the DB async function listTables() { diff --git a/examples/db/read/node/readRecords.js b/examples/db/read/node/readRecords.js index f97f850..c7b1121 100755 --- a/examples/db/read/node/readRecords.js +++ b/examples/db/read/node/readRecords.js @@ -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() { diff --git a/examples/db/renameTable/node/renameTable.js b/examples/db/renameTable/node/renameTable.js index 178e928..ddfba30 100755 --- a/examples/db/renameTable/node/renameTable.js +++ b/examples/db/renameTable/node/renameTable.js @@ -1,4 +1,4 @@ -const { DbService } = require("m3o/db"); +const { DbService } = require("micro-js-client/db"); // Rename a table async function renameTable() { diff --git a/examples/db/truncate/node/truncateTable.js b/examples/db/truncate/node/truncateTable.js index 899844b..b166b8f 100755 --- a/examples/db/truncate/node/truncateTable.js +++ b/examples/db/truncate/node/truncateTable.js @@ -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() { diff --git a/examples/db/update/node/updateARecord.js b/examples/db/update/node/updateARecord.js index cf43fed..5ac6acd 100755 --- a/examples/db/update/node/updateARecord.js +++ b/examples/db/update/node/updateARecord.js @@ -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() { diff --git a/examples/email/send/node/sendEmail.js b/examples/email/send/node/sendEmail.js index f899013..003e6ae 100755 --- a/examples/email/send/node/sendEmail.js +++ b/examples/email/send/node/sendEmail.js @@ -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() { diff --git a/examples/emoji/find/node/findEmoji.js b/examples/emoji/find/node/findEmoji.js index e4b22c0..919aaac 100755 --- a/examples/emoji/find/node/findEmoji.js +++ b/examples/emoji/find/node/findEmoji.js @@ -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() { diff --git a/examples/emoji/flag/node/getFlagByCountryCode.js b/examples/emoji/flag/node/getFlagByCountryCode.js index c55ad0e..461c7fc 100755 --- a/examples/emoji/flag/node/getFlagByCountryCode.js +++ b/examples/emoji/flag/node/getFlagByCountryCode.js @@ -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() { diff --git a/examples/emoji/print/node/printTextIncludingEmoji.js b/examples/emoji/print/node/printTextIncludingEmoji.js index c77da62..773643f 100755 --- a/examples/emoji/print/node/printTextIncludingEmoji.js +++ b/examples/emoji/print/node/printTextIncludingEmoji.js @@ -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 🍺 diff --git a/examples/emoji/send/node/sendATextContainingAnEmojiToAnyoneViaSms.js b/examples/emoji/send/node/sendATextContainingAnEmojiToAnyoneViaSms.js index 9337887..4575786 100755 --- a/examples/emoji/send/node/sendATextContainingAnEmojiToAnyoneViaSms.js +++ b/examples/emoji/send/node/sendATextContainingAnEmojiToAnyoneViaSms.js @@ -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 ' Sent from ' async function sendAtextContainingAnEmojiToAnyoneViaSms() { diff --git a/examples/evchargers/referenceData/node/getReferenceData.js b/examples/evchargers/referenceData/node/getReferenceData.js index 836f004..681c78f 100755 --- a/examples/evchargers/referenceData/node/getReferenceData.js +++ b/examples/evchargers/referenceData/node/getReferenceData.js @@ -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() { diff --git a/examples/evchargers/search/node/searchByBoundingBox.js b/examples/evchargers/search/node/searchByBoundingBox.js index 5a14385..fa8235a 100755 --- a/examples/evchargers/search/node/searchByBoundingBox.js +++ b/examples/evchargers/search/node/searchByBoundingBox.js @@ -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() { diff --git a/examples/evchargers/search/node/searchByLocation.js b/examples/evchargers/search/node/searchByLocation.js index 1ee0b4f..e430e85 100755 --- a/examples/evchargers/search/node/searchByLocation.js +++ b/examples/evchargers/search/node/searchByLocation.js @@ -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() { diff --git a/examples/evchargers/search/node/searchWithFiltersFastChargersOnly.js b/examples/evchargers/search/node/searchWithFiltersFastChargersOnly.js index 53df9f4..f4f2791 100755 --- a/examples/evchargers/search/node/searchWithFiltersFastChargersOnly.js +++ b/examples/evchargers/search/node/searchWithFiltersFastChargersOnly.js @@ -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() { diff --git a/examples/event/consume/node/consumeFromATopic.js b/examples/event/consume/node/consumeFromATopic.js index a354249..e943a93 100755 --- a/examples/event/consume/node/consumeFromATopic.js +++ b/examples/event/consume/node/consumeFromATopic.js @@ -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() { diff --git a/examples/event/publish/go/publishAnEvent.go b/examples/event/publish/go/publishAnEvent.go index a6a3b0e..cd945dc 100755 --- a/examples/event/publish/go/publishAnEvent.go +++ b/examples/event/publish/go/publishAnEvent.go @@ -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", }) diff --git a/examples/event/publish/node/publishAnEvent.js b/examples/event/publish/node/publishAnEvent.js index 900da7d..313e36d 100755 --- a/examples/event/publish/node/publishAnEvent.js +++ b/examples/event/publish/node/publishAnEvent.js @@ -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() { diff --git a/examples/event/read/node/readEventsOnATopic.js b/examples/event/read/node/readEventsOnATopic.js index 89561ac..0801f97 100755 --- a/examples/event/read/node/readEventsOnATopic.js +++ b/examples/event/read/node/readEventsOnATopic.js @@ -1,4 +1,4 @@ -const { EventService } = require("m3o/event"); +const { EventService } = require("micro-js-client/event"); // Read stored events async function readEventsOnAtopic() { diff --git a/examples/file/delete/node/deleteFile.js b/examples/file/delete/node/deleteFile.js index 6cc4286..9bc9c14 100755 --- a/examples/file/delete/node/deleteFile.js +++ b/examples/file/delete/node/deleteFile.js @@ -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() { diff --git a/examples/file/list/node/listFiles.js b/examples/file/list/node/listFiles.js index 2b7822f..c8bde67 100755 --- a/examples/file/list/node/listFiles.js +++ b/examples/file/list/node/listFiles.js @@ -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() { diff --git a/examples/file/read/node/readFile.js b/examples/file/read/node/readFile.js index 48cc4ef..4023618 100755 --- a/examples/file/read/node/readFile.js +++ b/examples/file/read/node/readFile.js @@ -1,4 +1,4 @@ -const { FileService } = require("m3o/file"); +const { FileService } = require("micro-js-client/file"); // Read a file by path async function readFile() { diff --git a/examples/file/save/node/saveFile.js b/examples/file/save/node/saveFile.js index 1d12d77..9f7683b 100755 --- a/examples/file/save/node/saveFile.js +++ b/examples/file/save/node/saveFile.js @@ -1,4 +1,4 @@ -const { FileService } = require("m3o/file"); +const { FileService } = require("micro-js-client/file"); // Save a file async function saveFile() { diff --git a/examples/forex/history/node/getPreviousClose.js b/examples/forex/history/node/getPreviousClose.js index 4c8af07..38e7cd2 100755 --- a/examples/forex/history/node/getPreviousClose.js +++ b/examples/forex/history/node/getPreviousClose.js @@ -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() { diff --git a/examples/forex/price/node/getAnFxPrice.js b/examples/forex/price/node/getAnFxPrice.js index 3b12361..b373163 100755 --- a/examples/forex/price/node/getAnFxPrice.js +++ b/examples/forex/price/node/getAnFxPrice.js @@ -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() { diff --git a/examples/forex/quote/node/getAFxQuote.js b/examples/forex/quote/node/getAFxQuote.js index f9a5adf..55e7111 100755 --- a/examples/forex/quote/node/getAFxQuote.js +++ b/examples/forex/quote/node/getAFxQuote.js @@ -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() { diff --git a/examples/function/call/node/callAFunction.js b/examples/function/call/node/callAFunction.js index 20f1d7e..df086f6 100755 --- a/examples/function/call/node/callAFunction.js +++ b/examples/function/call/node/callAFunction.js @@ -1,4 +1,4 @@ -const { FunctionService } = require("m3o/function"); +const { FunctionService } = require("micro-js-client/function"); // Call a function by name async function callAfunction() { diff --git a/examples/function/delete/node/deleteAFunction.js b/examples/function/delete/node/deleteAFunction.js index 213b7d8..2a66cbe 100755 --- a/examples/function/delete/node/deleteAFunction.js +++ b/examples/function/delete/node/deleteAFunction.js @@ -1,4 +1,4 @@ -const { FunctionService } = require("m3o/function"); +const { FunctionService } = require("micro-js-client/function"); // Delete a function by name async function deleteAfunction() { diff --git a/examples/function/deploy/node/deployAFunction.js b/examples/function/deploy/node/deployAFunction.js index 9770312..a47bf39 100755 --- a/examples/function/deploy/node/deployAFunction.js +++ b/examples/function/deploy/node/deployAFunction.js @@ -1,4 +1,4 @@ -const { FunctionService } = require("m3o/function"); +const { FunctionService } = require("micro-js-client/function"); // Deploy a group of functions async function deployAfunction() { diff --git a/examples/function/describe/node/describeFunctionStatus.js b/examples/function/describe/node/describeFunctionStatus.js index 82449b4..b4ebbfb 100755 --- a/examples/function/describe/node/describeFunctionStatus.js +++ b/examples/function/describe/node/describeFunctionStatus.js @@ -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() { diff --git a/examples/function/list/node/listFunctions.js b/examples/function/list/node/listFunctions.js index 59f1cfd..760ac97 100755 --- a/examples/function/list/node/listFunctions.js +++ b/examples/function/list/node/listFunctions.js @@ -1,4 +1,4 @@ -const { FunctionService } = require("m3o/function"); +const { FunctionService } = require("micro-js-client/function"); // List all the deployed functions async function listFunctions() { diff --git a/examples/geocoding/lookup/node/geocodeAnAddress.js b/examples/geocoding/lookup/node/geocodeAnAddress.js index c21e92f..34655a6 100755 --- a/examples/geocoding/lookup/node/geocodeAnAddress.js +++ b/examples/geocoding/lookup/node/geocodeAnAddress.js @@ -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() { diff --git a/examples/geocoding/reverse/node/reverseGeocodeLocation.js b/examples/geocoding/reverse/node/reverseGeocodeLocation.js index e52dbfb..df2a083 100755 --- a/examples/geocoding/reverse/node/reverseGeocodeLocation.js +++ b/examples/geocoding/reverse/node/reverseGeocodeLocation.js @@ -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() { diff --git a/examples/gifs/search/node/search.js b/examples/gifs/search/node/search.js index cd57145..c522614 100755 --- a/examples/gifs/search/node/search.js +++ b/examples/gifs/search/node/search.js @@ -1,4 +1,4 @@ -const { GifsService } = require("m3o/gifs"); +const { GifsService } = require("micro-js-client/gifs"); // Search for a GIF async function search() { diff --git a/examples/google/search/node/searchForVideos.js b/examples/google/search/node/searchForVideos.js index 61df983..9d7eb74 100755 --- a/examples/google/search/node/searchForVideos.js +++ b/examples/google/search/node/searchForVideos.js @@ -1,4 +1,4 @@ -const { GoogleService } = require("m3o/google"); +const { GoogleService } = require("micro-js-client/google"); // Search for videos on Google async function searchForVideos() { diff --git a/examples/helloworld/call/node/callTheHelloworldService.js b/examples/helloworld/call/node/callTheHelloworldService.js index 22c4a02..cf9af69 100755 --- a/examples/helloworld/call/node/callTheHelloworldService.js +++ b/examples/helloworld/call/node/callTheHelloworldService.js @@ -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() { diff --git a/examples/helloworld/stream/node/streamsResponsesFromTheServerUsingWebsockets.js b/examples/helloworld/stream/node/streamsResponsesFromTheServerUsingWebsockets.js index 3514931..dccf12f 100755 --- a/examples/helloworld/stream/node/streamsResponsesFromTheServerUsingWebsockets.js +++ b/examples/helloworld/stream/node/streamsResponsesFromTheServerUsingWebsockets.js @@ -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() { diff --git a/examples/holidays/countries/node/listCountries.js b/examples/holidays/countries/node/listCountries.js index bc93a73..4152204 100755 --- a/examples/holidays/countries/node/listCountries.js +++ b/examples/holidays/countries/node/listCountries.js @@ -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() { diff --git a/examples/holidays/list/node/getHolidays.js b/examples/holidays/list/node/getHolidays.js index 0e8817e..e8f46cd 100755 --- a/examples/holidays/list/node/getHolidays.js +++ b/examples/holidays/list/node/getHolidays.js @@ -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() { diff --git a/examples/id/generate/node/generateABigflakeId.js b/examples/id/generate/node/generateABigflakeId.js index e74a53c..af60297 100755 --- a/examples/id/generate/node/generateABigflakeId.js +++ b/examples/id/generate/node/generateABigflakeId.js @@ -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() { diff --git a/examples/id/generate/node/generateAShortId.js b/examples/id/generate/node/generateAShortId.js index bdff3a4..0aab9a4 100755 --- a/examples/id/generate/node/generateAShortId.js +++ b/examples/id/generate/node/generateAShortId.js @@ -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() { diff --git a/examples/id/generate/node/generateASnowflakeId.js b/examples/id/generate/node/generateASnowflakeId.js index a8ea1f5..fdd1d9b 100755 --- a/examples/id/generate/node/generateASnowflakeId.js +++ b/examples/id/generate/node/generateASnowflakeId.js @@ -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() { diff --git a/examples/id/generate/node/generateAUniqueId.js b/examples/id/generate/node/generateAUniqueId.js index e77212c..8aca1d5 100755 --- a/examples/id/generate/node/generateAUniqueId.js +++ b/examples/id/generate/node/generateAUniqueId.js @@ -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() { diff --git a/examples/id/types/node/listTheTypesOfIdsAvailable.js b/examples/id/types/node/listTheTypesOfIdsAvailable.js index f440caf..547d34c 100755 --- a/examples/id/types/node/listTheTypesOfIdsAvailable.js +++ b/examples/id/types/node/listTheTypesOfIdsAvailable.js @@ -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() { diff --git a/examples/image/convert/node/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.js b/examples/image/convert/node/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.js index bd822ab..1eba3dd 100755 --- a/examples/image/convert/node/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.js +++ b/examples/image/convert/node/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.js @@ -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. diff --git a/examples/image/delete/node/deleteAnUploadedImage.js b/examples/image/delete/node/deleteAnUploadedImage.js index f8c9e4b..51dbf67 100755 --- a/examples/image/delete/node/deleteAnUploadedImage.js +++ b/examples/image/delete/node/deleteAnUploadedImage.js @@ -1,4 +1,4 @@ -const { ImageService } = require("m3o/image"); +const { ImageService } = require("micro-js-client/image"); // Delete an image previously uploaded. async function deleteAnUploadedImage() { diff --git a/examples/image/resize/node/base64ToBase64Image.js b/examples/image/resize/node/base64ToBase64Image.js index 4807902..c48fd8e 100755 --- a/examples/image/resize/node/base64ToBase64Image.js +++ b/examples/image/resize/node/base64ToBase64Image.js @@ -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. diff --git a/examples/image/resize/node/base64ToBase64ImageWithCropping.js b/examples/image/resize/node/base64ToBase64ImageWithCropping.js index d8ad4ff..c92d644 100755 --- a/examples/image/resize/node/base64ToBase64ImageWithCropping.js +++ b/examples/image/resize/node/base64ToBase64ImageWithCropping.js @@ -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. diff --git a/examples/image/resize/node/base64ToHostedImage.js b/examples/image/resize/node/base64ToHostedImage.js index 3aebf75..6c39d2b 100755 --- a/examples/image/resize/node/base64ToHostedImage.js +++ b/examples/image/resize/node/base64ToHostedImage.js @@ -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. diff --git a/examples/image/upload/node/uploadABase64ImageToMicrosCdn.js b/examples/image/upload/node/uploadABase64ImageToMicrosCdn.js index ddd20e6..db6eccd 100755 --- a/examples/image/upload/node/uploadABase64ImageToMicrosCdn.js +++ b/examples/image/upload/node/uploadABase64ImageToMicrosCdn.js @@ -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. diff --git a/examples/image/upload/node/uploadAnImageFromAUrlToMicrosCdn.js b/examples/image/upload/node/uploadAnImageFromAUrlToMicrosCdn.js index 2b53576..a2d2370 100755 --- a/examples/image/upload/node/uploadAnImageFromAUrlToMicrosCdn.js +++ b/examples/image/upload/node/uploadAnImageFromAUrlToMicrosCdn.js @@ -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. diff --git a/examples/ip/lookup/node/lookupIpInfo.js b/examples/ip/lookup/node/lookupIpInfo.js index 7159a4e..3c583c1 100755 --- a/examples/ip/lookup/node/lookupIpInfo.js +++ b/examples/ip/lookup/node/lookupIpInfo.js @@ -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() { diff --git a/examples/location/read/node/getLocationById.js b/examples/location/read/node/getLocationById.js index 1a3b46e..dfd69ad 100755 --- a/examples/location/read/node/getLocationById.js +++ b/examples/location/read/node/getLocationById.js @@ -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() { diff --git a/examples/location/save/node/saveAnEntity.js b/examples/location/save/node/saveAnEntity.js index f2ef5e6..fbb97e1 100755 --- a/examples/location/save/node/saveAnEntity.js +++ b/examples/location/save/node/saveAnEntity.js @@ -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() { diff --git a/examples/location/search/node/searchForLocations.js b/examples/location/search/node/searchForLocations.js index d6620a4..1a449ef 100755 --- a/examples/location/search/node/searchForLocations.js +++ b/examples/location/search/node/searchForLocations.js @@ -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() { diff --git a/examples/mq/publish/node/publishAMessage.js b/examples/mq/publish/node/publishAMessage.js index 1296213..7095828 100755 --- a/examples/mq/publish/node/publishAMessage.js +++ b/examples/mq/publish/node/publishAMessage.js @@ -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() { diff --git a/examples/mq/subscribe/node/subscribeToATopic.js b/examples/mq/subscribe/node/subscribeToATopic.js index b87f614..6ace8e9 100755 --- a/examples/mq/subscribe/node/subscribeToATopic.js +++ b/examples/mq/subscribe/node/subscribeToATopic.js @@ -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() { diff --git a/examples/notes/create/node/createANote.js b/examples/notes/create/node/createANote.js index 0ee8838..46b5513 100755 --- a/examples/notes/create/node/createANote.js +++ b/examples/notes/create/node/createANote.js @@ -1,4 +1,4 @@ -const { NotesService } = require("m3o/notes"); +const { NotesService } = require("micro-js-client/notes"); // Create a new note async function createAnote() { diff --git a/examples/notes/delete/node/deleteANote.js b/examples/notes/delete/node/deleteANote.js index 3ca4e77..217c64f 100755 --- a/examples/notes/delete/node/deleteANote.js +++ b/examples/notes/delete/node/deleteANote.js @@ -1,4 +1,4 @@ -const { NotesService } = require("m3o/notes"); +const { NotesService } = require("micro-js-client/notes"); // Delete a note async function deleteAnote() { diff --git a/examples/notes/events/node/subscribeToEvents.js b/examples/notes/events/node/subscribeToEvents.js index 4c31633..e5ffe1c 100755 --- a/examples/notes/events/node/subscribeToEvents.js +++ b/examples/notes/events/node/subscribeToEvents.js @@ -1,4 +1,4 @@ -const { NotesService } = require("m3o/notes"); +const { NotesService } = require("micro-js-client/notes"); // Subscribe to notes events async function subscribeToEvents() { diff --git a/examples/notes/list/node/listAllNotes.js b/examples/notes/list/node/listAllNotes.js index d227754..ad52007 100755 --- a/examples/notes/list/node/listAllNotes.js +++ b/examples/notes/list/node/listAllNotes.js @@ -1,4 +1,4 @@ -const { NotesService } = require("m3o/notes"); +const { NotesService } = require("micro-js-client/notes"); // List all the notes async function listAllNotes() { diff --git a/examples/notes/read/node/readANote.js b/examples/notes/read/node/readANote.js index 3383c4b..46e58bb 100755 --- a/examples/notes/read/node/readANote.js +++ b/examples/notes/read/node/readANote.js @@ -1,4 +1,4 @@ -const { NotesService } = require("m3o/notes"); +const { NotesService } = require("micro-js-client/notes"); // Read a note async function readAnote() { diff --git a/examples/notes/update/node/updateANote.js b/examples/notes/update/node/updateANote.js index 1d1d1e0..3e12caf 100755 --- a/examples/notes/update/node/updateANote.js +++ b/examples/notes/update/node/updateANote.js @@ -1,4 +1,4 @@ -const { NotesService } = require("m3o/notes"); +const { NotesService } = require("micro-js-client/notes"); // Update a note async function updateAnote() { diff --git a/examples/otp/generate/node/generateOtp.js b/examples/otp/generate/node/generateOtp.js index 05b550b..b8c59f7 100755 --- a/examples/otp/generate/node/generateOtp.js +++ b/examples/otp/generate/node/generateOtp.js @@ -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() { diff --git a/examples/otp/validate/node/validateOtp.js b/examples/otp/validate/node/validateOtp.js index 03798eb..cbf6922 100755 --- a/examples/otp/validate/node/validateOtp.js +++ b/examples/otp/validate/node/validateOtp.js @@ -1,4 +1,4 @@ -const { OtpService } = require("m3o/otp"); +const { OtpService } = require("micro-js-client/otp"); // Validate the OTP code async function validateOtp() { diff --git a/examples/postcode/lookup/node/lookupPostcode.js b/examples/postcode/lookup/node/lookupPostcode.js index 6edf55b..5fea06d 100755 --- a/examples/postcode/lookup/node/lookupPostcode.js +++ b/examples/postcode/lookup/node/lookupPostcode.js @@ -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() { diff --git a/examples/postcode/random/node/returnARandomPostcodeAndItsInformation.js b/examples/postcode/random/node/returnARandomPostcodeAndItsInformation.js index 0b766c7..46adc79 100755 --- a/examples/postcode/random/node/returnARandomPostcodeAndItsInformation.js +++ b/examples/postcode/random/node/returnARandomPostcodeAndItsInformation.js @@ -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() { diff --git a/examples/postcode/validate/node/returnARandomPostcodeAndItsInformation.js b/examples/postcode/validate/node/returnARandomPostcodeAndItsInformation.js index ec1991d..79c9dc6 100755 --- a/examples/postcode/validate/node/returnARandomPostcodeAndItsInformation.js +++ b/examples/postcode/validate/node/returnARandomPostcodeAndItsInformation.js @@ -1,4 +1,4 @@ -const { PostcodeService } = require("m3o/postcode"); +const { PostcodeService } = require("micro-js-client/postcode"); // Validate a postcode. async function returnArandomPostcodeAndItsInformation() { diff --git a/examples/prayer/times/node/prayerTimes.js b/examples/prayer/times/node/prayerTimes.js index 76d5e1a..2996358 100755 --- a/examples/prayer/times/node/prayerTimes.js +++ b/examples/prayer/times/node/prayerTimes.js @@ -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() { diff --git a/examples/qr/generate/node/generateAQrCode.js b/examples/qr/generate/node/generateAQrCode.js index 353f535..c5f20e8 100755 --- a/examples/qr/generate/node/generateAQrCode.js +++ b/examples/qr/generate/node/generateAQrCode.js @@ -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() { diff --git a/examples/quran/chapters/node/listChapters.js b/examples/quran/chapters/node/listChapters.js index bb268cb..5748aad 100755 --- a/examples/quran/chapters/node/listChapters.js +++ b/examples/quran/chapters/node/listChapters.js @@ -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() { diff --git a/examples/quran/search/node/searchTheQuran.js b/examples/quran/search/node/searchTheQuran.js index e835963..68806b4 100755 --- a/examples/quran/search/node/searchTheQuran.js +++ b/examples/quran/search/node/searchTheQuran.js @@ -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() { diff --git a/examples/quran/summary/node/getChapterSummary.js b/examples/quran/summary/node/getChapterSummary.js index a42528b..bd14d21 100755 --- a/examples/quran/summary/node/getChapterSummary.js +++ b/examples/quran/summary/node/getChapterSummary.js @@ -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() { diff --git a/examples/quran/verses/node/getVersesOfAChapter.js b/examples/quran/verses/node/getVersesOfAChapter.js index 81d0cf8..29c22d0 100755 --- a/examples/quran/verses/node/getVersesOfAChapter.js +++ b/examples/quran/verses/node/getVersesOfAChapter.js @@ -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 diff --git a/examples/routing/directions/node/turnByTurnDirections.js b/examples/routing/directions/node/turnByTurnDirections.js index 569e4ee..ca7fdd5 100755 --- a/examples/routing/directions/node/turnByTurnDirections.js +++ b/examples/routing/directions/node/turnByTurnDirections.js @@ -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() { diff --git a/examples/routing/eta/node/etaFromPointAToPointB.js b/examples/routing/eta/node/etaFromPointAToPointB.js index e9a8a19..487027d 100755 --- a/examples/routing/eta/node/etaFromPointAToPointB.js +++ b/examples/routing/eta/node/etaFromPointAToPointB.js @@ -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() { diff --git a/examples/routing/route/node/gpsPointsForARoute.js b/examples/routing/route/node/gpsPointsForARoute.js index b7d4602..801b5c4 100755 --- a/examples/routing/route/node/gpsPointsForARoute.js +++ b/examples/routing/route/node/gpsPointsForARoute.js @@ -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() { diff --git a/examples/rss/add/node/addANewFeed.js b/examples/rss/add/node/addANewFeed.js index 4dae809..05e814b 100755 --- a/examples/rss/add/node/addANewFeed.js +++ b/examples/rss/add/node/addANewFeed.js @@ -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() { diff --git a/examples/rss/feed/node/readAFeed.js b/examples/rss/feed/node/readAFeed.js index 6329226..7ed5813 100755 --- a/examples/rss/feed/node/readAFeed.js +++ b/examples/rss/feed/node/readAFeed.js @@ -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() { diff --git a/examples/rss/list/node/listRssFeeds.js b/examples/rss/list/node/listRssFeeds.js index 7a91dc9..6bb85cd 100755 --- a/examples/rss/list/node/listRssFeeds.js +++ b/examples/rss/list/node/listRssFeeds.js @@ -1,4 +1,4 @@ -const { RssService } = require("m3o/rss"); +const { RssService } = require("micro-js-client/rss"); // List the saved RSS fields async function listRssFeeds() { diff --git a/examples/rss/remove/node/removeAFeed.js b/examples/rss/remove/node/removeAFeed.js index 79dc338..c78940d 100755 --- a/examples/rss/remove/node/removeAFeed.js +++ b/examples/rss/remove/node/removeAFeed.js @@ -1,4 +1,4 @@ -const { RssService } = require("m3o/rss"); +const { RssService } = require("micro-js-client/rss"); // Remove an RSS feed by name async function removeAfeed() { diff --git a/examples/sentiment/analyze/node/analyzeAPieceOfText.js b/examples/sentiment/analyze/node/analyzeAPieceOfText.js index c50fbe4..0fcef46 100755 --- a/examples/sentiment/analyze/node/analyzeAPieceOfText.js +++ b/examples/sentiment/analyze/node/analyzeAPieceOfText.js @@ -1,4 +1,4 @@ -const { SentimentService } = require("m3o/sentiment"); +const { SentimentService } = require("micro-js-client/sentiment"); // Analyze and score a piece of text async function analyzeApieceOfText() { diff --git a/examples/sms/send/node/sendSms.js b/examples/sms/send/node/sendSms.js index b3f7d5c..4e130b6 100755 --- a/examples/sms/send/node/sendSms.js +++ b/examples/sms/send/node/sendSms.js @@ -1,4 +1,4 @@ -const { SmsService } = require("m3o/sms"); +const { SmsService } = require("micro-js-client/sms"); // Send an SMS. async function sendSms() { diff --git a/examples/spam/classify/node/classifyAnEmail.js b/examples/spam/classify/node/classifyAnEmail.js index 91c000e..93208a1 100755 --- a/examples/spam/classify/node/classifyAnEmail.js +++ b/examples/spam/classify/node/classifyAnEmail.js @@ -1,4 +1,4 @@ -const { SpamService } = require("m3o/spam"); +const { SpamService } = require("micro-js-client/spam"); // Check whether an email is likely to be spam based on its attributes async function classifyAnEmail() { diff --git a/examples/spam/classify/node/classifyAnEmailUsingTheRawData.js b/examples/spam/classify/node/classifyAnEmailUsingTheRawData.js index 8cf7136..d9b0c9e 100755 --- a/examples/spam/classify/node/classifyAnEmailUsingTheRawData.js +++ b/examples/spam/classify/node/classifyAnEmailUsingTheRawData.js @@ -1,4 +1,4 @@ -const { SpamService } = require("m3o/spam"); +const { SpamService } = require("micro-js-client/spam"); // Check whether an email is likely to be spam based on its attributes async function classifyAnEmailUsingTheRawData() { diff --git a/examples/stock/history/node/getHistoricData.js b/examples/stock/history/node/getHistoricData.js index 200f0b7..fc2bd5c 100755 --- a/examples/stock/history/node/getHistoricData.js +++ b/examples/stock/history/node/getHistoricData.js @@ -1,4 +1,4 @@ -const { StockService } = require("m3o/stock"); +const { StockService } = require("micro-js-client/stock"); // Get the historic open-close for a given day async function getHistoricData() { diff --git a/examples/stock/orderBook/node/orderBookHistory.js b/examples/stock/orderBook/node/orderBookHistory.js index 2e4e5e9..8c857a1 100755 --- a/examples/stock/orderBook/node/orderBookHistory.js +++ b/examples/stock/orderBook/node/orderBookHistory.js @@ -1,4 +1,4 @@ -const { StockService } = require("m3o/stock"); +const { StockService } = require("micro-js-client/stock"); // Get the historic order book and each trade by timestamp async function orderBookHistory() { diff --git a/examples/stock/price/node/getAStockPrice.js b/examples/stock/price/node/getAStockPrice.js index 92cafbe..2340746 100755 --- a/examples/stock/price/node/getAStockPrice.js +++ b/examples/stock/price/node/getAStockPrice.js @@ -1,4 +1,4 @@ -const { StockService } = require("m3o/stock"); +const { StockService } = require("micro-js-client/stock"); // Get the last price for a given stock ticker async function getAstockPrice() { diff --git a/examples/stock/quote/node/getAStockQuote.js b/examples/stock/quote/node/getAStockQuote.js index d9ec04c..786b4b2 100755 --- a/examples/stock/quote/node/getAStockQuote.js +++ b/examples/stock/quote/node/getAStockQuote.js @@ -1,4 +1,4 @@ -const { StockService } = require("m3o/stock"); +const { StockService } = require("micro-js-client/stock"); // Get the last quote for the stock async function getAstockQuote() { diff --git a/examples/stream/createChannel/node/createChannel.js b/examples/stream/createChannel/node/createChannel.js index d878b13..c01b848 100755 --- a/examples/stream/createChannel/node/createChannel.js +++ b/examples/stream/createChannel/node/createChannel.js @@ -1,4 +1,4 @@ -const { StreamService } = require("m3o/stream"); +const { StreamService } = require("micro-js-client/stream"); // Create a channel with a given name and description. Channels are created automatically but // this allows you to specify a description that's persisted for the lifetime of the channel. diff --git a/examples/stream/listChannels/node/listChannels.js b/examples/stream/listChannels/node/listChannels.js index 100c445..07d3f7d 100755 --- a/examples/stream/listChannels/node/listChannels.js +++ b/examples/stream/listChannels/node/listChannels.js @@ -1,4 +1,4 @@ -const { StreamService } = require("m3o/stream"); +const { StreamService } = require("micro-js-client/stream"); // List all the active channels async function listChannels() { diff --git a/examples/stream/listMessages/node/listMessages.js b/examples/stream/listMessages/node/listMessages.js index bd501f8..f868e85 100755 --- a/examples/stream/listMessages/node/listMessages.js +++ b/examples/stream/listMessages/node/listMessages.js @@ -1,4 +1,4 @@ -const { StreamService } = require("m3o/stream"); +const { StreamService } = require("micro-js-client/stream"); // List messages for a given channel async function listMessages() { diff --git a/examples/stream/sendMessage/node/sendMessage.js b/examples/stream/sendMessage/node/sendMessage.js index 1f2e95b..95b8a41 100755 --- a/examples/stream/sendMessage/node/sendMessage.js +++ b/examples/stream/sendMessage/node/sendMessage.js @@ -1,4 +1,4 @@ -const { StreamService } = require("m3o/stream"); +const { StreamService } = require("micro-js-client/stream"); // Send a message to the stream. async function sendMessage() { diff --git a/examples/sunnah/books/node/getTheBooksWithinACollection.js b/examples/sunnah/books/node/getTheBooksWithinACollection.js index 9d81fb2..06e5b48 100755 --- a/examples/sunnah/books/node/getTheBooksWithinACollection.js +++ b/examples/sunnah/books/node/getTheBooksWithinACollection.js @@ -1,4 +1,4 @@ -const { SunnahService } = require("m3o/sunnah"); +const { SunnahService } = require("micro-js-client/sunnah"); // Get a list of books from within a collection. A book can contain many chapters // each with its own hadiths. diff --git a/examples/sunnah/chapters/node/listTheChaptersInABook.js b/examples/sunnah/chapters/node/listTheChaptersInABook.js index 46ba975..aa0d5fe 100755 --- a/examples/sunnah/chapters/node/listTheChaptersInABook.js +++ b/examples/sunnah/chapters/node/listTheChaptersInABook.js @@ -1,4 +1,4 @@ -const { SunnahService } = require("m3o/sunnah"); +const { SunnahService } = require("micro-js-client/sunnah"); // Get all the chapters of a given book within a collection. async function listTheChaptersInAbook() { diff --git a/examples/sunnah/collections/node/listAvailableCollections.js b/examples/sunnah/collections/node/listAvailableCollections.js index ce29fe5..9ebb121 100755 --- a/examples/sunnah/collections/node/listAvailableCollections.js +++ b/examples/sunnah/collections/node/listAvailableCollections.js @@ -1,4 +1,4 @@ -const { SunnahService } = require("m3o/sunnah"); +const { SunnahService } = require("micro-js-client/sunnah"); // Get a list of available collections. A collection is // a compilation of hadiths collected and written by an author. diff --git a/examples/sunnah/hadiths/node/listTheHadithsInABook.js b/examples/sunnah/hadiths/node/listTheHadithsInABook.js index 12ae27d..a4ff076 100755 --- a/examples/sunnah/hadiths/node/listTheHadithsInABook.js +++ b/examples/sunnah/hadiths/node/listTheHadithsInABook.js @@ -1,4 +1,4 @@ -const { SunnahService } = require("m3o/sunnah"); +const { SunnahService } = require("micro-js-client/sunnah"); // Hadiths returns a list of hadiths and their corresponding text for a // given book within a collection. diff --git a/examples/thumbnail/screenshot/node/takeScreenshotOfAUrl.js b/examples/thumbnail/screenshot/node/takeScreenshotOfAUrl.js index c6b4593..c0c38d8 100755 --- a/examples/thumbnail/screenshot/node/takeScreenshotOfAUrl.js +++ b/examples/thumbnail/screenshot/node/takeScreenshotOfAUrl.js @@ -1,4 +1,4 @@ -const { ThumbnailService } = require("m3o/thumbnail"); +const { ThumbnailService } = require("micro-js-client/thumbnail"); // Create a thumbnail screenshot by passing in a url, height and width async function takeScreenshotOfAurl() { diff --git a/examples/time/now/node/returnsCurrentTimeOptionallyWithLocation.js b/examples/time/now/node/returnsCurrentTimeOptionallyWithLocation.js index 157b180..b33bade 100755 --- a/examples/time/now/node/returnsCurrentTimeOptionallyWithLocation.js +++ b/examples/time/now/node/returnsCurrentTimeOptionallyWithLocation.js @@ -1,4 +1,4 @@ -const { TimeService } = require("m3o/time"); +const { TimeService } = require("micro-js-client/time"); // Get the current time async function returnsCurrentTimeOptionallyWithLocation() { diff --git a/examples/time/zone/node/getTheTimezoneInfoForASpecificLocation.js b/examples/time/zone/node/getTheTimezoneInfoForASpecificLocation.js index 26e3cfd..c1162dd 100755 --- a/examples/time/zone/node/getTheTimezoneInfoForASpecificLocation.js +++ b/examples/time/zone/node/getTheTimezoneInfoForASpecificLocation.js @@ -1,4 +1,4 @@ -const { TimeService } = require("m3o/time"); +const { TimeService } = require("micro-js-client/time"); // Get the timezone info for a specific location async function getTheTimezoneInfoForAspecificLocation() { diff --git a/examples/twitter/search/node/searchForTweets.js b/examples/twitter/search/node/searchForTweets.js index 4323ef9..91544c2 100755 --- a/examples/twitter/search/node/searchForTweets.js +++ b/examples/twitter/search/node/searchForTweets.js @@ -1,4 +1,4 @@ -const { TwitterService } = require("m3o/twitter"); +const { TwitterService } = require("micro-js-client/twitter"); // Search for tweets with a simple query async function searchForTweets() { diff --git a/examples/twitter/timeline/node/getATwitterTimeline.js b/examples/twitter/timeline/node/getATwitterTimeline.js index dbc852f..127d8f8 100755 --- a/examples/twitter/timeline/node/getATwitterTimeline.js +++ b/examples/twitter/timeline/node/getATwitterTimeline.js @@ -1,4 +1,4 @@ -const { TwitterService } = require("m3o/twitter"); +const { TwitterService } = require("micro-js-client/twitter"); // Get the timeline for a given user async function getAtwitterTimeline() { diff --git a/examples/twitter/trends/node/getTheCurrentGlobalTrendingTopics.js b/examples/twitter/trends/node/getTheCurrentGlobalTrendingTopics.js index 8f9aa81..1435950 100755 --- a/examples/twitter/trends/node/getTheCurrentGlobalTrendingTopics.js +++ b/examples/twitter/trends/node/getTheCurrentGlobalTrendingTopics.js @@ -1,4 +1,4 @@ -const { TwitterService } = require("m3o/twitter"); +const { TwitterService } = require("micro-js-client/twitter"); // Get the current global trending topics async function getTheCurrentGlobalTrendingTopics() { diff --git a/examples/twitter/user/node/getAUsersTwitterProfile.js b/examples/twitter/user/node/getAUsersTwitterProfile.js index 674d930..b07d06a 100755 --- a/examples/twitter/user/node/getAUsersTwitterProfile.js +++ b/examples/twitter/user/node/getAUsersTwitterProfile.js @@ -1,4 +1,4 @@ -const { TwitterService } = require("m3o/twitter"); +const { TwitterService } = require("micro-js-client/twitter"); // Get a user's twitter profile async function getAusersTwitterProfile() { diff --git a/examples/url/list/node/listYourShortenedUrls.js b/examples/url/list/node/listYourShortenedUrls.js index 96d96b7..fde7c6e 100755 --- a/examples/url/list/node/listYourShortenedUrls.js +++ b/examples/url/list/node/listYourShortenedUrls.js @@ -1,4 +1,4 @@ -const { UrlService } = require("m3o/url"); +const { UrlService } = require("micro-js-client/url"); // List information on all the shortened URLs that you have created async function listYourShortenedUrls() { diff --git a/examples/url/proxy/node/resolveAShortUrlToALongDestinationUrl.js b/examples/url/proxy/node/resolveAShortUrlToALongDestinationUrl.js index da9ab35..e6b94d7 100755 --- a/examples/url/proxy/node/resolveAShortUrlToALongDestinationUrl.js +++ b/examples/url/proxy/node/resolveAShortUrlToALongDestinationUrl.js @@ -1,4 +1,4 @@ -const { UrlService } = require("m3o/url"); +const { UrlService } = require("micro-js-client/url"); // Proxy returns the destination URL of a short URL. async function resolveAshortUrlToAlongDestinationUrl() { diff --git a/examples/url/shorten/node/shortenALongUrl.js b/examples/url/shorten/node/shortenALongUrl.js index 4c0c68a..5ba97ab 100755 --- a/examples/url/shorten/node/shortenALongUrl.js +++ b/examples/url/shorten/node/shortenALongUrl.js @@ -1,4 +1,4 @@ -const { UrlService } = require("m3o/url"); +const { UrlService } = require("micro-js-client/url"); // Shortens a destination URL and returns a full short URL. async function shortenAlongUrl() { diff --git a/examples/user/create/node/createAnAccount.js b/examples/user/create/node/createAnAccount.js index 1107b35..e4cd279 100755 --- a/examples/user/create/node/createAnAccount.js +++ b/examples/user/create/node/createAnAccount.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Create a new user account. The email address and username for the account must be unique. async function createAnAccount() { diff --git a/examples/user/delete/node/deleteUserAccount.js b/examples/user/delete/node/deleteUserAccount.js index 1030e85..891be66 100755 --- a/examples/user/delete/node/deleteUserAccount.js +++ b/examples/user/delete/node/deleteUserAccount.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Delete an account by id async function deleteUserAccount() { diff --git a/examples/user/login/node/logAUserIn.js b/examples/user/login/node/logAUserIn.js index e1c00f4..6a70046 100755 --- a/examples/user/login/node/logAUserIn.js +++ b/examples/user/login/node/logAUserIn.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Login using username or email. The response will return a new session for successful login, // 401 in the case of login failure and 500 for any other error diff --git a/examples/user/logout/node/logAUserOut.js b/examples/user/logout/node/logAUserOut.js index 9eca83d..ff9c387 100755 --- a/examples/user/logout/node/logAUserOut.js +++ b/examples/user/logout/node/logAUserOut.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Logout a user account async function logAuserOut() { diff --git a/examples/user/read/node/readAccountByEmail.js b/examples/user/read/node/readAccountByEmail.js index ca94b8d..8f3b3a5 100755 --- a/examples/user/read/node/readAccountByEmail.js +++ b/examples/user/read/node/readAccountByEmail.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Read an account by id, username or email. Only one need to be specified. async function readAccountByEmail() { diff --git a/examples/user/read/node/readAccountByUsernameOrEmail.js b/examples/user/read/node/readAccountByUsernameOrEmail.js index 3e000b0..8f07caf 100755 --- a/examples/user/read/node/readAccountByUsernameOrEmail.js +++ b/examples/user/read/node/readAccountByUsernameOrEmail.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Read an account by id, username or email. Only one need to be specified. async function readAccountByUsernameOrEmail() { diff --git a/examples/user/read/node/readAnAccountById.js b/examples/user/read/node/readAnAccountById.js index 6a98a29..9bf7afb 100755 --- a/examples/user/read/node/readAnAccountById.js +++ b/examples/user/read/node/readAnAccountById.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Read an account by id, username or email. Only one need to be specified. async function readAnAccountById() { diff --git a/examples/user/readSession/node/readASessionByTheSessionId.js b/examples/user/readSession/node/readASessionByTheSessionId.js index 004705a..a605ab7 100755 --- a/examples/user/readSession/node/readASessionByTheSessionId.js +++ b/examples/user/readSession/node/readASessionByTheSessionId.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Read a session by the session id. In the event it has expired or is not found and error is returned. async function readAsessionByTheSessionId() { diff --git a/examples/user/resetPassword/node/resetPassword.js b/examples/user/resetPassword/node/resetPassword.js index 9e3767d..0f47c1c 100755 --- a/examples/user/resetPassword/node/resetPassword.js +++ b/examples/user/resetPassword/node/resetPassword.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Reset password with the code sent by the "SendPasswordResetEmail" endoint. async function resetPassword() { diff --git a/examples/user/sendPasswordResetEmail/node/sendPasswordResetEmail.js b/examples/user/sendPasswordResetEmail/node/sendPasswordResetEmail.js index e132892..b0a8299 100755 --- a/examples/user/sendPasswordResetEmail/node/sendPasswordResetEmail.js +++ b/examples/user/sendPasswordResetEmail/node/sendPasswordResetEmail.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Send an email with a verification code to reset password. // Call "ResetPassword" endpoint once user provides the code. diff --git a/examples/user/sendVerificationEmail/node/sendVerificationEmail.js b/examples/user/sendVerificationEmail/node/sendVerificationEmail.js index 17fb901..161a9f1 100755 --- a/examples/user/sendVerificationEmail/node/sendVerificationEmail.js +++ b/examples/user/sendVerificationEmail/node/sendVerificationEmail.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Send a verification email // to the user being signed up. Email from will be from 'noreply@email.m3ocontent.com', diff --git a/examples/user/update/node/updateAnAccount.js b/examples/user/update/node/updateAnAccount.js index 56704d7..4bb0f65 100755 --- a/examples/user/update/node/updateAnAccount.js +++ b/examples/user/update/node/updateAnAccount.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Update the account username or email async function updateAnAccount() { diff --git a/examples/user/updatePassword/node/updateTheAccountPassword.js b/examples/user/updatePassword/node/updateTheAccountPassword.js index d84c387..0911741 100755 --- a/examples/user/updatePassword/node/updateTheAccountPassword.js +++ b/examples/user/updatePassword/node/updateTheAccountPassword.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Update the account password async function updateTheAccountPassword() { diff --git a/examples/user/verifyEmail/node/verifyEmail.js b/examples/user/verifyEmail/node/verifyEmail.js index 49cf62a..300f922 100755 --- a/examples/user/verifyEmail/node/verifyEmail.js +++ b/examples/user/verifyEmail/node/verifyEmail.js @@ -1,4 +1,4 @@ -const { UserService } = require("m3o/user"); +const { UserService } = require("micro-js-client/user"); // Verify the email address of an account from a token sent in an email to the user. async function verifyEmail() { diff --git a/examples/vehicle/lookup/node/lookupVehicle.js b/examples/vehicle/lookup/node/lookupVehicle.js index a251462..8c00504 100755 --- a/examples/vehicle/lookup/node/lookupVehicle.js +++ b/examples/vehicle/lookup/node/lookupVehicle.js @@ -1,4 +1,4 @@ -const { VehicleService } = require("m3o/vehicle"); +const { VehicleService } = require("micro-js-client/vehicle"); // Lookup a UK vehicle by it's registration number async function lookupVehicle() { diff --git a/examples/weather/forecast/node/forecastWeather.js b/examples/weather/forecast/node/forecastWeather.js index 25518f8..6f8dd35 100755 --- a/examples/weather/forecast/node/forecastWeather.js +++ b/examples/weather/forecast/node/forecastWeather.js @@ -1,4 +1,4 @@ -const { WeatherService } = require("m3o/weather"); +const { WeatherService } = require("micro-js-client/weather"); // Get the weather forecast for the next 1-10 days async function forecastWeather() { diff --git a/examples/weather/now/node/getCurrentWeather.js b/examples/weather/now/node/getCurrentWeather.js index 932a9d3..21a180f 100755 --- a/examples/weather/now/node/getCurrentWeather.js +++ b/examples/weather/now/node/getCurrentWeather.js @@ -1,4 +1,4 @@ -const { WeatherService } = require("m3o/weather"); +const { WeatherService } = require("micro-js-client/weather"); // Get the current weather report for a location by postcode, city, zip code, ip address async function getCurrentWeather() { diff --git a/examples/youtube/search/node/searchForVideos.js b/examples/youtube/search/node/searchForVideos.js index c508ebf..79787ba 100755 --- a/examples/youtube/search/node/searchForVideos.js +++ b/examples/youtube/search/node/searchForVideos.js @@ -1,4 +1,4 @@ -const { YoutubeService } = require("m3o/youtube"); +const { YoutubeService } = require("micro-js-client/youtube"); // Search for videos on YouTube async function searchForVideos() {