From 340daa09b4bf246bf5a51bdf46d08bc1faed3d24 Mon Sep 17 00:00:00 2001 From: asim Date: Wed, 3 Nov 2021 21:59:46 +0000 Subject: [PATCH] Commit from GitHub Actions (Generate Clients & Examples) --- clients/go/address/address.go | 2 +- clients/go/answer/answer.go | 2 +- clients/go/cache/cache.go | 2 +- clients/go/crypto/crypto.go | 2 +- clients/go/currency/currency.go | 2 +- clients/go/db/db.go | 2 +- clients/go/email/email.go | 2 +- clients/go/emoji/emoji.go | 2 +- clients/go/evchargers/evchargers.go | 2 +- clients/go/event/event.go | 2 +- clients/go/file/file.go | 2 +- clients/go/forex/forex.go | 2 +- clients/go/function/function.go | 2 +- clients/go/geocoding/geocoding.go | 2 +- clients/go/gifs/gifs.go | 2 +- clients/go/google/google.go | 2 +- clients/go/helloworld/helloworld.go | 2 +- clients/go/holidays/holidays.go | 2 +- clients/go/id/id.go | 2 +- clients/go/image/image.go | 2 +- clients/go/ip/ip.go | 2 +- clients/go/location/location.go | 2 +- clients/go/m3o.go | 2 +- clients/go/mq/mq.go | 2 +- clients/go/notes/notes.go | 2 +- clients/go/otp/otp.go | 2 +- clients/go/postcode/postcode.go | 2 +- clients/go/prayer/prayer.go | 2 +- clients/go/qr/qr.go | 2 +- clients/go/quran/quran.go | 2 +- clients/go/routing/routing.go | 2 +- clients/go/rss/rss.go | 2 +- clients/go/sentiment/sentiment.go | 2 +- clients/go/sms/sms.go | 2 +- clients/go/stock/stock.go | 2 +- clients/go/stream/stream.go | 2 +- clients/go/sunnah/sunnah.go | 2 +- clients/go/thumbnail/thumbnail.go | 2 +- clients/go/time/time.go | 2 +- clients/go/twitter/twitter.go | 2 +- clients/go/url/url.go | 2 +- clients/go/user/user.go | 2 +- clients/go/vehicle/vehicle.go | 2 +- clients/go/weather/weather.go | 2 +- clients/go/youtube/youtube.go | 2 +- clients/ts/package.json | 2 +- examples/address/lookupPostcode/curl/lookupPostcode.sh | 2 +- examples/answer/question/curl/askAQuestion.sh | 2 +- examples/cache/decrement/curl/decrementAValue.sh | 2 +- examples/cache/delete/curl/deleteAValue.sh | 2 +- examples/cache/get/curl/getAValue.sh | 2 +- examples/cache/increment/curl/incrementAValue.sh | 2 +- examples/cache/set/curl/setAValue.sh | 2 +- examples/crypto/history/curl/getPreviousClose.sh | 2 +- examples/crypto/news/curl/getCryptocurrencyNews.sh | 2 +- examples/crypto/price/curl/getCryptocurrencyPrice.sh | 2 +- examples/crypto/quote/curl/getACryptocurrencyQuote.sh | 2 +- examples/currency/codes/curl/getSupportedCodes.sh | 2 +- examples/currency/convert/curl/convert10UsdToGbp.sh | 2 +- examples/currency/convert/curl/convertUsdToGbp.sh | 2 +- examples/currency/history/curl/historicRatesForACurrency.sh | 2 +- examples/currency/rates/curl/getRatesForUsd.sh | 2 +- examples/db/count/curl/countEntriesInATable.sh | 2 +- examples/db/create/curl/createARecord.sh | 2 +- examples/db/create/go/createARecord.go | 2 +- examples/db/delete/curl/deleteARecord.sh | 2 +- examples/db/read/curl/readRecords.sh | 2 +- examples/db/truncate/curl/truncateTable.sh | 2 +- examples/db/update/curl/updateARecord.sh | 2 +- examples/email/send/curl/sendEmail.sh | 2 +- examples/emoji/find/curl/findEmoji.sh | 2 +- examples/emoji/flag/curl/getFlagByCountryCode.sh | 2 +- examples/emoji/print/curl/printTextIncludingEmoji.sh | 2 +- .../emoji/send/curl/sendATextContainingAnEmojiToAnyoneViaSms.sh | 2 +- examples/evchargers/referenceData/curl/getReferenceData.sh | 2 +- examples/evchargers/search/curl/searchByBoundingBox.sh | 2 +- examples/evchargers/search/curl/searchByLocation.sh | 2 +- .../evchargers/search/curl/searchWithFiltersFastChargersOnly.sh | 2 +- examples/event/consume/curl/consumeFromATopic.sh | 2 +- examples/event/publish/curl/publishAnEvent.sh | 2 +- examples/event/publish/go/publishAnEvent.go | 2 +- examples/event/read/curl/readEventsOnATopic.sh | 2 +- examples/file/delete/curl/deleteFile.sh | 2 +- examples/file/list/curl/listFiles.sh | 2 +- examples/file/read/curl/readFile.sh | 2 +- examples/file/save/curl/saveFile.sh | 2 +- examples/forex/history/curl/getPreviousClose.sh | 2 +- examples/forex/price/curl/getAnFxPrice.sh | 2 +- examples/forex/quote/curl/getAFxQuote.sh | 2 +- examples/function/call/curl/callAFunction.sh | 2 +- examples/function/delete/curl/deleteAFunction.sh | 2 +- examples/function/deploy/curl/deployAFunction.sh | 2 +- examples/function/describe/curl/describeFunctionStatus.sh | 2 +- examples/function/list/curl/listFunctions.sh | 2 +- examples/geocoding/lookup/curl/geocodeAnAddress.sh | 2 +- examples/geocoding/reverse/curl/reverseGeocodeLocation.sh | 2 +- examples/gifs/search/curl/search.sh | 2 +- examples/google/search/curl/searchForVideos.sh | 2 +- examples/helloworld/call/curl/callTheHelloworldService.sh | 2 +- .../stream/curl/streamsResponsesFromTheServerUsingWebsockets.sh | 2 +- examples/holidays/countries/curl/listCountries.sh | 2 +- examples/holidays/list/curl/getHolidays.sh | 2 +- examples/id/generate/curl/generateABigflakeId.sh | 2 +- examples/id/generate/curl/generateAShortId.sh | 2 +- examples/id/generate/curl/generateASnowflakeId.sh | 2 +- examples/id/generate/curl/generateAUniqueId.sh | 2 +- examples/id/types/curl/listTheTypesOfIdsAvailable.sh | 2 +- ...ertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh | 2 +- examples/image/resize/curl/base64ToBase64Image.sh | 2 +- examples/image/resize/curl/base64ToBase64ImageWithCropping.sh | 2 +- examples/image/resize/curl/base64ToHostedImage.sh | 2 +- examples/image/upload/curl/uploadABase64ImageToMicrosCdn.sh | 2 +- examples/image/upload/curl/uploadAnImageFromAUrlToMicrosCdn.sh | 2 +- examples/ip/lookup/curl/lookupIpInfo.sh | 2 +- examples/location/read/curl/getLocationById.sh | 2 +- examples/location/save/curl/saveAnEntity.sh | 2 +- examples/location/search/curl/searchForLocations.sh | 2 +- examples/mq/publish/curl/publishAMessage.sh | 2 +- examples/mq/subscribe/curl/subscribeToATopic.sh | 2 +- examples/notes/create/curl/createANote.sh | 2 +- examples/notes/delete/curl/deleteANote.sh | 2 +- examples/notes/events/curl/subscribeToEvents.sh | 2 +- examples/notes/list/curl/listAllNotes.sh | 2 +- examples/notes/read/curl/readANote.sh | 2 +- examples/notes/update/curl/updateANote.sh | 2 +- examples/otp/generate/curl/generateOtp.sh | 2 +- examples/otp/validate/curl/validateOtp.sh | 2 +- examples/postcode/lookup/curl/lookupPostcode.sh | 2 +- .../random/curl/returnARandomPostcodeAndItsInformation.sh | 2 +- .../validate/curl/returnARandomPostcodeAndItsInformation.sh | 2 +- examples/prayer/times/curl/prayerTimes.sh | 2 +- examples/qr/generate/curl/generateAQrCode.sh | 2 +- examples/quran/chapters/curl/listChapters.sh | 2 +- examples/quran/search/curl/searchTheQuran.sh | 2 +- examples/quran/summary/curl/getChapterSummary.sh | 2 +- examples/quran/verses/curl/getVersesOfAChapter.sh | 2 +- examples/routing/directions/curl/turnByTurnDirections.sh | 2 +- examples/routing/eta/curl/etaFromPointAToPointB.sh | 2 +- examples/routing/route/curl/gpsPointsForARoute.sh | 2 +- examples/rss/add/curl/addANewFeed.sh | 2 +- examples/rss/feed/curl/readAFeed.sh | 2 +- examples/rss/list/curl/listRssFeeds.sh | 2 +- examples/rss/remove/curl/removeAFeed.sh | 2 +- examples/sentiment/analyze/curl/analyzeAPieceOfText.sh | 2 +- examples/sms/send/curl/sendSms.sh | 2 +- examples/stock/history/curl/getHistoricData.sh | 2 +- examples/stock/orderBook/curl/orderBookHistory.sh | 2 +- examples/stock/price/curl/getAStockPrice.sh | 2 +- examples/stock/quote/curl/getAStockQuote.sh | 2 +- examples/stream/createChannel/curl/createChannel.sh | 2 +- examples/stream/listChannels/curl/listChannels.sh | 2 +- examples/stream/listMessages/curl/listMessages.sh | 2 +- examples/stream/sendMessage/curl/sendMessage.sh | 2 +- examples/sunnah/books/curl/getTheBooksWithinACollection.sh | 2 +- examples/sunnah/chapters/curl/listTheChaptersInABook.sh | 2 +- examples/sunnah/collections/curl/listAvailableCollections.sh | 2 +- examples/sunnah/hadiths/curl/listTheHadithsInABook.sh | 2 +- examples/thumbnail/screenshot/curl/takeScreenshotOfAUrl.sh | 2 +- .../time/now/curl/returnsCurrentTimeOptionallyWithLocation.sh | 2 +- .../time/zone/curl/getTheTimezoneInfoForASpecificLocation.sh | 2 +- examples/twitter/search/curl/searchForTweets.sh | 2 +- examples/twitter/timeline/curl/getATwitterTimeline.sh | 2 +- .../twitter/trends/curl/getTheCurrentGlobalTrendingTopics.sh | 2 +- examples/twitter/user/curl/getAUsersTwitterProfile.sh | 2 +- examples/url/list/curl/listYourShortenedUrls.sh | 2 +- .../url/proxy/curl/resolveAShortUrlToALongDestinationUrl.sh | 2 +- examples/url/shorten/curl/shortenALongUrl.sh | 2 +- examples/user/create/curl/createAnAccount.sh | 2 +- examples/user/delete/curl/deleteUserAccount.sh | 2 +- examples/user/login/curl/logAUserIn.sh | 2 +- examples/user/logout/curl/logAUserOut.sh | 2 +- examples/user/read/curl/readAccountByEmail.sh | 2 +- examples/user/read/curl/readAccountByUsernameOrEmail.sh | 2 +- examples/user/read/curl/readAnAccountById.sh | 2 +- examples/user/readSession/curl/readASessionByTheSessionId.sh | 2 +- .../user/sendVerificationEmail/curl/sendVerificationEmail.sh | 2 +- examples/user/update/curl/updateAnAccount.sh | 2 +- examples/user/updatePassword/curl/updateTheAccountPassword.sh | 2 +- examples/user/verifyEmail/curl/verifyEmail.sh | 2 +- examples/vehicle/lookup/curl/lookupVehicle.sh | 2 +- examples/weather/forecast/curl/forecastWeather.sh | 2 +- examples/weather/now/curl/getCurrentWeather.sh | 2 +- examples/youtube/search/curl/searchForVideos.sh | 2 +- go.mod | 1 + go.sum | 2 ++ 185 files changed, 186 insertions(+), 183 deletions(-) diff --git a/clients/go/address/address.go b/clients/go/address/address.go index e775315..7679c0b 100755 --- a/clients/go/address/address.go +++ b/clients/go/address/address.go @@ -1,7 +1,7 @@ package address import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewAddressService(token string) *AddressService { diff --git a/clients/go/answer/answer.go b/clients/go/answer/answer.go index 881e67f..450219b 100755 --- a/clients/go/answer/answer.go +++ b/clients/go/answer/answer.go @@ -1,7 +1,7 @@ package answer import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewAnswerService(token string) *AnswerService { diff --git a/clients/go/cache/cache.go b/clients/go/cache/cache.go index 8dc61fb..849f5c2 100755 --- a/clients/go/cache/cache.go +++ b/clients/go/cache/cache.go @@ -1,7 +1,7 @@ package cache import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewCacheService(token string) *CacheService { diff --git a/clients/go/crypto/crypto.go b/clients/go/crypto/crypto.go index ea85643..bf9f14e 100755 --- a/clients/go/crypto/crypto.go +++ b/clients/go/crypto/crypto.go @@ -1,7 +1,7 @@ package crypto import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewCryptoService(token string) *CryptoService { diff --git a/clients/go/currency/currency.go b/clients/go/currency/currency.go index c3410b0..b456696 100755 --- a/clients/go/currency/currency.go +++ b/clients/go/currency/currency.go @@ -1,7 +1,7 @@ package currency import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewCurrencyService(token string) *CurrencyService { diff --git a/clients/go/db/db.go b/clients/go/db/db.go index faa4e5d..6ba0a5f 100755 --- a/clients/go/db/db.go +++ b/clients/go/db/db.go @@ -1,7 +1,7 @@ package db import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewDbService(token string) *DbService { diff --git a/clients/go/email/email.go b/clients/go/email/email.go index 8cc63d3..fde0871 100755 --- a/clients/go/email/email.go +++ b/clients/go/email/email.go @@ -1,7 +1,7 @@ package email import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewEmailService(token string) *EmailService { diff --git a/clients/go/emoji/emoji.go b/clients/go/emoji/emoji.go index 783c405..b66a771 100755 --- a/clients/go/emoji/emoji.go +++ b/clients/go/emoji/emoji.go @@ -1,7 +1,7 @@ package emoji import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewEmojiService(token string) *EmojiService { diff --git a/clients/go/evchargers/evchargers.go b/clients/go/evchargers/evchargers.go index b24c707..1afd641 100755 --- a/clients/go/evchargers/evchargers.go +++ b/clients/go/evchargers/evchargers.go @@ -1,7 +1,7 @@ package evchargers import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewEvchargersService(token string) *EvchargersService { diff --git a/clients/go/event/event.go b/clients/go/event/event.go index 2539aa8..bd0963a 100755 --- a/clients/go/event/event.go +++ b/clients/go/event/event.go @@ -1,7 +1,7 @@ package event import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewEventService(token string) *EventService { diff --git a/clients/go/file/file.go b/clients/go/file/file.go index dbf8caf..76ef4c7 100755 --- a/clients/go/file/file.go +++ b/clients/go/file/file.go @@ -1,7 +1,7 @@ package file import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewFileService(token string) *FileService { diff --git a/clients/go/forex/forex.go b/clients/go/forex/forex.go index d4f2fe5..beecb96 100755 --- a/clients/go/forex/forex.go +++ b/clients/go/forex/forex.go @@ -1,7 +1,7 @@ package forex import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewForexService(token string) *ForexService { diff --git a/clients/go/function/function.go b/clients/go/function/function.go index 9c3ddc2..a3799b5 100755 --- a/clients/go/function/function.go +++ b/clients/go/function/function.go @@ -1,7 +1,7 @@ package function import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewFunctionService(token string) *FunctionService { diff --git a/clients/go/geocoding/geocoding.go b/clients/go/geocoding/geocoding.go index d569b7f..520dc8f 100755 --- a/clients/go/geocoding/geocoding.go +++ b/clients/go/geocoding/geocoding.go @@ -1,7 +1,7 @@ package geocoding import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewGeocodingService(token string) *GeocodingService { diff --git a/clients/go/gifs/gifs.go b/clients/go/gifs/gifs.go index b669f34..674b4d5 100755 --- a/clients/go/gifs/gifs.go +++ b/clients/go/gifs/gifs.go @@ -1,7 +1,7 @@ package gifs import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewGifsService(token string) *GifsService { diff --git a/clients/go/google/google.go b/clients/go/google/google.go index 6c05839..87b68ba 100755 --- a/clients/go/google/google.go +++ b/clients/go/google/google.go @@ -1,7 +1,7 @@ package google import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewGoogleService(token string) *GoogleService { diff --git a/clients/go/helloworld/helloworld.go b/clients/go/helloworld/helloworld.go index 075fd71..7ef9dee 100755 --- a/clients/go/helloworld/helloworld.go +++ b/clients/go/helloworld/helloworld.go @@ -1,7 +1,7 @@ package helloworld import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewHelloworldService(token string) *HelloworldService { diff --git a/clients/go/holidays/holidays.go b/clients/go/holidays/holidays.go index db338a7..fb8695b 100755 --- a/clients/go/holidays/holidays.go +++ b/clients/go/holidays/holidays.go @@ -1,7 +1,7 @@ package holidays import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewHolidaysService(token string) *HolidaysService { diff --git a/clients/go/id/id.go b/clients/go/id/id.go index f3d5638..95b21d7 100755 --- a/clients/go/id/id.go +++ b/clients/go/id/id.go @@ -1,7 +1,7 @@ package id import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewIdService(token string) *IdService { diff --git a/clients/go/image/image.go b/clients/go/image/image.go index 0eb604d..c528c3b 100755 --- a/clients/go/image/image.go +++ b/clients/go/image/image.go @@ -1,7 +1,7 @@ package image import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewImageService(token string) *ImageService { diff --git a/clients/go/ip/ip.go b/clients/go/ip/ip.go index 3d81955..fe0a9c4 100755 --- a/clients/go/ip/ip.go +++ b/clients/go/ip/ip.go @@ -1,7 +1,7 @@ package ip import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewIpService(token string) *IpService { diff --git a/clients/go/location/location.go b/clients/go/location/location.go index 1acca4d..504c25f 100755 --- a/clients/go/location/location.go +++ b/clients/go/location/location.go @@ -1,7 +1,7 @@ package location import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewLocationService(token string) *LocationService { diff --git a/clients/go/m3o.go b/clients/go/m3o.go index 445b4e3..39876bf 100755 --- a/clients/go/m3o.go +++ b/clients/go/m3o.go @@ -1,4 +1,4 @@ -package m3o +package services import ( "github.com/micro/services/clients/go/address" diff --git a/clients/go/mq/mq.go b/clients/go/mq/mq.go index ffa4e31..45b8191 100755 --- a/clients/go/mq/mq.go +++ b/clients/go/mq/mq.go @@ -1,7 +1,7 @@ package mq import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewMqService(token string) *MqService { diff --git a/clients/go/notes/notes.go b/clients/go/notes/notes.go index d7218b4..e118fb1 100755 --- a/clients/go/notes/notes.go +++ b/clients/go/notes/notes.go @@ -1,7 +1,7 @@ package notes import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewNotesService(token string) *NotesService { diff --git a/clients/go/otp/otp.go b/clients/go/otp/otp.go index 5cc952f..0bb8b62 100755 --- a/clients/go/otp/otp.go +++ b/clients/go/otp/otp.go @@ -1,7 +1,7 @@ package otp import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewOtpService(token string) *OtpService { diff --git a/clients/go/postcode/postcode.go b/clients/go/postcode/postcode.go index 818f64b..31260de 100755 --- a/clients/go/postcode/postcode.go +++ b/clients/go/postcode/postcode.go @@ -1,7 +1,7 @@ package postcode import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewPostcodeService(token string) *PostcodeService { diff --git a/clients/go/prayer/prayer.go b/clients/go/prayer/prayer.go index cfafcc7..1c21c89 100755 --- a/clients/go/prayer/prayer.go +++ b/clients/go/prayer/prayer.go @@ -1,7 +1,7 @@ package prayer import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewPrayerService(token string) *PrayerService { diff --git a/clients/go/qr/qr.go b/clients/go/qr/qr.go index b0e4a34..544b07e 100755 --- a/clients/go/qr/qr.go +++ b/clients/go/qr/qr.go @@ -1,7 +1,7 @@ package qr import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewQrService(token string) *QrService { diff --git a/clients/go/quran/quran.go b/clients/go/quran/quran.go index 3fc090d..3395598 100755 --- a/clients/go/quran/quran.go +++ b/clients/go/quran/quran.go @@ -1,7 +1,7 @@ package quran import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewQuranService(token string) *QuranService { diff --git a/clients/go/routing/routing.go b/clients/go/routing/routing.go index 4ac2d5b..a70ad21 100755 --- a/clients/go/routing/routing.go +++ b/clients/go/routing/routing.go @@ -1,7 +1,7 @@ package routing import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewRoutingService(token string) *RoutingService { diff --git a/clients/go/rss/rss.go b/clients/go/rss/rss.go index 9348dc6..ed37cc4 100755 --- a/clients/go/rss/rss.go +++ b/clients/go/rss/rss.go @@ -1,7 +1,7 @@ package rss import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewRssService(token string) *RssService { diff --git a/clients/go/sentiment/sentiment.go b/clients/go/sentiment/sentiment.go index f53278f..21c04e3 100755 --- a/clients/go/sentiment/sentiment.go +++ b/clients/go/sentiment/sentiment.go @@ -1,7 +1,7 @@ package sentiment import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewSentimentService(token string) *SentimentService { diff --git a/clients/go/sms/sms.go b/clients/go/sms/sms.go index 8ae4f5f..1d975d2 100755 --- a/clients/go/sms/sms.go +++ b/clients/go/sms/sms.go @@ -1,7 +1,7 @@ package sms import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewSmsService(token string) *SmsService { diff --git a/clients/go/stock/stock.go b/clients/go/stock/stock.go index 002ddf5..5d8f0bd 100755 --- a/clients/go/stock/stock.go +++ b/clients/go/stock/stock.go @@ -1,7 +1,7 @@ package stock import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewStockService(token string) *StockService { diff --git a/clients/go/stream/stream.go b/clients/go/stream/stream.go index fec66b9..540a8b1 100755 --- a/clients/go/stream/stream.go +++ b/clients/go/stream/stream.go @@ -1,7 +1,7 @@ package stream import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewStreamService(token string) *StreamService { diff --git a/clients/go/sunnah/sunnah.go b/clients/go/sunnah/sunnah.go index 4375cfc..4e7ee37 100755 --- a/clients/go/sunnah/sunnah.go +++ b/clients/go/sunnah/sunnah.go @@ -1,7 +1,7 @@ package sunnah import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewSunnahService(token string) *SunnahService { diff --git a/clients/go/thumbnail/thumbnail.go b/clients/go/thumbnail/thumbnail.go index cb33147..cb01ea1 100755 --- a/clients/go/thumbnail/thumbnail.go +++ b/clients/go/thumbnail/thumbnail.go @@ -1,7 +1,7 @@ package thumbnail import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewThumbnailService(token string) *ThumbnailService { diff --git a/clients/go/time/time.go b/clients/go/time/time.go index aa61e65..14ad734 100755 --- a/clients/go/time/time.go +++ b/clients/go/time/time.go @@ -1,7 +1,7 @@ package time import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewTimeService(token string) *TimeService { diff --git a/clients/go/twitter/twitter.go b/clients/go/twitter/twitter.go index a855bfe..41866d1 100755 --- a/clients/go/twitter/twitter.go +++ b/clients/go/twitter/twitter.go @@ -1,7 +1,7 @@ package twitter import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewTwitterService(token string) *TwitterService { diff --git a/clients/go/url/url.go b/clients/go/url/url.go index cb3b79a..eb07827 100755 --- a/clients/go/url/url.go +++ b/clients/go/url/url.go @@ -1,7 +1,7 @@ package url import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewUrlService(token string) *UrlService { diff --git a/clients/go/user/user.go b/clients/go/user/user.go index b8d3a5f..61f37bb 100755 --- a/clients/go/user/user.go +++ b/clients/go/user/user.go @@ -1,7 +1,7 @@ package user import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewUserService(token string) *UserService { diff --git a/clients/go/vehicle/vehicle.go b/clients/go/vehicle/vehicle.go index a82da4c..e117d5e 100755 --- a/clients/go/vehicle/vehicle.go +++ b/clients/go/vehicle/vehicle.go @@ -1,7 +1,7 @@ package vehicle import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewVehicleService(token string) *VehicleService { diff --git a/clients/go/weather/weather.go b/clients/go/weather/weather.go index 578297a..8b6476d 100755 --- a/clients/go/weather/weather.go +++ b/clients/go/weather/weather.go @@ -1,7 +1,7 @@ package weather import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewWeatherService(token string) *WeatherService { diff --git a/clients/go/youtube/youtube.go b/clients/go/youtube/youtube.go index bda38af..31635e3 100755 --- a/clients/go/youtube/youtube.go +++ b/clients/go/youtube/youtube.go @@ -1,7 +1,7 @@ package youtube import ( - "github.com/m3o/m3o-go/client" + "github.com/micro/micro-go/client" ) func NewYoutubeService(token string) *YoutubeService { diff --git a/clients/ts/package.json b/clients/ts/package.json index 02c4a91..3ebde50 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -78,5 +78,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.624" + "version": "1.0.629" } \ No newline at end of file diff --git a/examples/address/lookupPostcode/curl/lookupPostcode.sh b/examples/address/lookupPostcode/curl/lookupPostcode.sh index 1a0a7fd..b5c2062 100755 --- a/examples/address/lookupPostcode/curl/lookupPostcode.sh +++ b/examples/address/lookupPostcode/curl/lookupPostcode.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/address/LookupPostcode" \ +curl "http://localhost:8080/address/LookupPostcode" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/answer/question/curl/askAQuestion.sh b/examples/answer/question/curl/askAQuestion.sh index 2f891d3..0f9147b 100755 --- a/examples/answer/question/curl/askAQuestion.sh +++ b/examples/answer/question/curl/askAQuestion.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/answer/Question" \ +curl "http://localhost:8080/answer/Question" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/cache/decrement/curl/decrementAValue.sh b/examples/cache/decrement/curl/decrementAValue.sh index 3ed6f0d..dda68f4 100755 --- a/examples/cache/decrement/curl/decrementAValue.sh +++ b/examples/cache/decrement/curl/decrementAValue.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/cache/Decrement" \ +curl "http://localhost:8080/cache/Decrement" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/cache/delete/curl/deleteAValue.sh b/examples/cache/delete/curl/deleteAValue.sh index 431cac5..69e0f4d 100755 --- a/examples/cache/delete/curl/deleteAValue.sh +++ b/examples/cache/delete/curl/deleteAValue.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/cache/Delete" \ +curl "http://localhost:8080/cache/Delete" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/cache/get/curl/getAValue.sh b/examples/cache/get/curl/getAValue.sh index 3821929..f735ae7 100755 --- a/examples/cache/get/curl/getAValue.sh +++ b/examples/cache/get/curl/getAValue.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/cache/Get" \ +curl "http://localhost:8080/cache/Get" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/cache/increment/curl/incrementAValue.sh b/examples/cache/increment/curl/incrementAValue.sh index 2da7099..067d3ff 100755 --- a/examples/cache/increment/curl/incrementAValue.sh +++ b/examples/cache/increment/curl/incrementAValue.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/cache/Increment" \ +curl "http://localhost:8080/cache/Increment" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/cache/set/curl/setAValue.sh b/examples/cache/set/curl/setAValue.sh index eb569cb..05db6cb 100755 --- a/examples/cache/set/curl/setAValue.sh +++ b/examples/cache/set/curl/setAValue.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/cache/Set" \ +curl "http://localhost:8080/cache/Set" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/crypto/history/curl/getPreviousClose.sh b/examples/crypto/history/curl/getPreviousClose.sh index c83ac76..e278acc 100755 --- a/examples/crypto/history/curl/getPreviousClose.sh +++ b/examples/crypto/history/curl/getPreviousClose.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/crypto/History" \ +curl "http://localhost:8080/crypto/History" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/crypto/news/curl/getCryptocurrencyNews.sh b/examples/crypto/news/curl/getCryptocurrencyNews.sh index 1aa2db3..ad0e25a 100755 --- a/examples/crypto/news/curl/getCryptocurrencyNews.sh +++ b/examples/crypto/news/curl/getCryptocurrencyNews.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/crypto/News" \ +curl "http://localhost:8080/crypto/News" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/crypto/price/curl/getCryptocurrencyPrice.sh b/examples/crypto/price/curl/getCryptocurrencyPrice.sh index d0024d3..8076ed9 100755 --- a/examples/crypto/price/curl/getCryptocurrencyPrice.sh +++ b/examples/crypto/price/curl/getCryptocurrencyPrice.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/crypto/Price" \ +curl "http://localhost:8080/crypto/Price" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/crypto/quote/curl/getACryptocurrencyQuote.sh b/examples/crypto/quote/curl/getACryptocurrencyQuote.sh index 1deafac..db29641 100755 --- a/examples/crypto/quote/curl/getACryptocurrencyQuote.sh +++ b/examples/crypto/quote/curl/getACryptocurrencyQuote.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/crypto/Quote" \ +curl "http://localhost:8080/crypto/Quote" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/currency/codes/curl/getSupportedCodes.sh b/examples/currency/codes/curl/getSupportedCodes.sh index f8b7ddb..b753ff6 100755 --- a/examples/currency/codes/curl/getSupportedCodes.sh +++ b/examples/currency/codes/curl/getSupportedCodes.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/currency/Codes" \ +curl "http://localhost:8080/currency/Codes" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/currency/convert/curl/convert10UsdToGbp.sh b/examples/currency/convert/curl/convert10UsdToGbp.sh index d2ebee2..9211b02 100755 --- a/examples/currency/convert/curl/convert10UsdToGbp.sh +++ b/examples/currency/convert/curl/convert10UsdToGbp.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/currency/Convert" \ +curl "http://localhost:8080/currency/Convert" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/currency/convert/curl/convertUsdToGbp.sh b/examples/currency/convert/curl/convertUsdToGbp.sh index dbe41b3..04fd054 100755 --- a/examples/currency/convert/curl/convertUsdToGbp.sh +++ b/examples/currency/convert/curl/convertUsdToGbp.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/currency/Convert" \ +curl "http://localhost:8080/currency/Convert" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/currency/history/curl/historicRatesForACurrency.sh b/examples/currency/history/curl/historicRatesForACurrency.sh index 7d4c6c3..7966535 100755 --- a/examples/currency/history/curl/historicRatesForACurrency.sh +++ b/examples/currency/history/curl/historicRatesForACurrency.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/currency/History" \ +curl "http://localhost:8080/currency/History" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/currency/rates/curl/getRatesForUsd.sh b/examples/currency/rates/curl/getRatesForUsd.sh index 6d32bda..1bf13fd 100755 --- a/examples/currency/rates/curl/getRatesForUsd.sh +++ b/examples/currency/rates/curl/getRatesForUsd.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/currency/Rates" \ +curl "http://localhost:8080/currency/Rates" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/db/count/curl/countEntriesInATable.sh b/examples/db/count/curl/countEntriesInATable.sh index 049d6e2..03eff52 100755 --- a/examples/db/count/curl/countEntriesInATable.sh +++ b/examples/db/count/curl/countEntriesInATable.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/db/Count" \ +curl "http://localhost:8080/db/Count" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/db/create/curl/createARecord.sh b/examples/db/create/curl/createARecord.sh index d5a7793..08aa02d 100755 --- a/examples/db/create/curl/createARecord.sh +++ b/examples/db/create/curl/createARecord.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/db/Create" \ +curl "http://localhost:8080/db/Create" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index 08be46f..0f23082 100755 --- a/examples/db/create/go/createARecord.go +++ b/examples/db/create/go/createARecord.go @@ -12,10 +12,10 @@ func CreateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Create(&db.CreateRequest{ Record: map[string]interface{}{ - "age": 42, "isActive": true, "id": "1", "name": "Jane", + "age": 42, }, Table: "users", }) diff --git a/examples/db/delete/curl/deleteARecord.sh b/examples/db/delete/curl/deleteARecord.sh index 04aebb4..20cf918 100755 --- a/examples/db/delete/curl/deleteARecord.sh +++ b/examples/db/delete/curl/deleteARecord.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/db/Delete" \ +curl "http://localhost:8080/db/Delete" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/db/read/curl/readRecords.sh b/examples/db/read/curl/readRecords.sh index ba3ec7b..ff7d668 100755 --- a/examples/db/read/curl/readRecords.sh +++ b/examples/db/read/curl/readRecords.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/db/Read" \ +curl "http://localhost:8080/db/Read" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/db/truncate/curl/truncateTable.sh b/examples/db/truncate/curl/truncateTable.sh index a2edeb1..dd116b3 100755 --- a/examples/db/truncate/curl/truncateTable.sh +++ b/examples/db/truncate/curl/truncateTable.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/db/Truncate" \ +curl "http://localhost:8080/db/Truncate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/db/update/curl/updateARecord.sh b/examples/db/update/curl/updateARecord.sh index a787614..1aa5d06 100755 --- a/examples/db/update/curl/updateARecord.sh +++ b/examples/db/update/curl/updateARecord.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/db/Update" \ +curl "http://localhost:8080/db/Update" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/email/send/curl/sendEmail.sh b/examples/email/send/curl/sendEmail.sh index 44ab6b2..5ef0e95 100755 --- a/examples/email/send/curl/sendEmail.sh +++ b/examples/email/send/curl/sendEmail.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/email/Send" \ +curl "http://localhost:8080/email/Send" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/emoji/find/curl/findEmoji.sh b/examples/emoji/find/curl/findEmoji.sh index 8f261ce..7e4c24f 100755 --- a/examples/emoji/find/curl/findEmoji.sh +++ b/examples/emoji/find/curl/findEmoji.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/emoji/Find" \ +curl "http://localhost:8080/emoji/Find" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/emoji/flag/curl/getFlagByCountryCode.sh b/examples/emoji/flag/curl/getFlagByCountryCode.sh index 3635803..a45b703 100755 --- a/examples/emoji/flag/curl/getFlagByCountryCode.sh +++ b/examples/emoji/flag/curl/getFlagByCountryCode.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/emoji/Flag" \ +curl "http://localhost:8080/emoji/Flag" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/emoji/print/curl/printTextIncludingEmoji.sh b/examples/emoji/print/curl/printTextIncludingEmoji.sh index 621886b..3b9544d 100755 --- a/examples/emoji/print/curl/printTextIncludingEmoji.sh +++ b/examples/emoji/print/curl/printTextIncludingEmoji.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/emoji/Print" \ +curl "http://localhost:8080/emoji/Print" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/emoji/send/curl/sendATextContainingAnEmojiToAnyoneViaSms.sh b/examples/emoji/send/curl/sendATextContainingAnEmojiToAnyoneViaSms.sh index b69043e..2a1849c 100755 --- a/examples/emoji/send/curl/sendATextContainingAnEmojiToAnyoneViaSms.sh +++ b/examples/emoji/send/curl/sendATextContainingAnEmojiToAnyoneViaSms.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/emoji/Send" \ +curl "http://localhost:8080/emoji/Send" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/evchargers/referenceData/curl/getReferenceData.sh b/examples/evchargers/referenceData/curl/getReferenceData.sh index 2e44970..3e7a3ad 100755 --- a/examples/evchargers/referenceData/curl/getReferenceData.sh +++ b/examples/evchargers/referenceData/curl/getReferenceData.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/evchargers/ReferenceData" \ +curl "http://localhost:8080/evchargers/ReferenceData" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/evchargers/search/curl/searchByBoundingBox.sh b/examples/evchargers/search/curl/searchByBoundingBox.sh index 932fd00..3371e98 100755 --- a/examples/evchargers/search/curl/searchByBoundingBox.sh +++ b/examples/evchargers/search/curl/searchByBoundingBox.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/evchargers/Search" \ +curl "http://localhost:8080/evchargers/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/evchargers/search/curl/searchByLocation.sh b/examples/evchargers/search/curl/searchByLocation.sh index 58b8186..c7d67c4 100755 --- a/examples/evchargers/search/curl/searchByLocation.sh +++ b/examples/evchargers/search/curl/searchByLocation.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/evchargers/Search" \ +curl "http://localhost:8080/evchargers/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/evchargers/search/curl/searchWithFiltersFastChargersOnly.sh b/examples/evchargers/search/curl/searchWithFiltersFastChargersOnly.sh index 604c701..4170f3e 100755 --- a/examples/evchargers/search/curl/searchWithFiltersFastChargersOnly.sh +++ b/examples/evchargers/search/curl/searchWithFiltersFastChargersOnly.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/evchargers/Search" \ +curl "http://localhost:8080/evchargers/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/event/consume/curl/consumeFromATopic.sh b/examples/event/consume/curl/consumeFromATopic.sh index 4f0e4a3..827ce7f 100755 --- a/examples/event/consume/curl/consumeFromATopic.sh +++ b/examples/event/consume/curl/consumeFromATopic.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/event/Consume" \ +curl "http://localhost:8080/event/Consume" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/event/publish/curl/publishAnEvent.sh b/examples/event/publish/curl/publishAnEvent.sh index 5921cfc..9525e0f 100755 --- a/examples/event/publish/curl/publishAnEvent.sh +++ b/examples/event/publish/curl/publishAnEvent.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/event/Publish" \ +curl "http://localhost:8080/event/Publish" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/event/publish/go/publishAnEvent.go b/examples/event/publish/go/publishAnEvent.go index cd945dc..fd9dc17 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{}{ + "user": "john", "id": "1", "type": "signup", - "user": "john", }, Topic: "user", }) diff --git a/examples/event/read/curl/readEventsOnATopic.sh b/examples/event/read/curl/readEventsOnATopic.sh index 5ca4f77..2d31019 100755 --- a/examples/event/read/curl/readEventsOnATopic.sh +++ b/examples/event/read/curl/readEventsOnATopic.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/event/Read" \ +curl "http://localhost:8080/event/Read" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/file/delete/curl/deleteFile.sh b/examples/file/delete/curl/deleteFile.sh index 5bab3da..bb24597 100755 --- a/examples/file/delete/curl/deleteFile.sh +++ b/examples/file/delete/curl/deleteFile.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/file/Delete" \ +curl "http://localhost:8080/file/Delete" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/file/list/curl/listFiles.sh b/examples/file/list/curl/listFiles.sh index 9d2061d..1831272 100755 --- a/examples/file/list/curl/listFiles.sh +++ b/examples/file/list/curl/listFiles.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/file/List" \ +curl "http://localhost:8080/file/List" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/file/read/curl/readFile.sh b/examples/file/read/curl/readFile.sh index 7bc0675..e7d12c4 100755 --- a/examples/file/read/curl/readFile.sh +++ b/examples/file/read/curl/readFile.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/file/Read" \ +curl "http://localhost:8080/file/Read" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/file/save/curl/saveFile.sh b/examples/file/save/curl/saveFile.sh index 2a9aadf..818699c 100755 --- a/examples/file/save/curl/saveFile.sh +++ b/examples/file/save/curl/saveFile.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/file/Save" \ +curl "http://localhost:8080/file/Save" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/forex/history/curl/getPreviousClose.sh b/examples/forex/history/curl/getPreviousClose.sh index 3482e8d..4c42b25 100755 --- a/examples/forex/history/curl/getPreviousClose.sh +++ b/examples/forex/history/curl/getPreviousClose.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/forex/History" \ +curl "http://localhost:8080/forex/History" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/forex/price/curl/getAnFxPrice.sh b/examples/forex/price/curl/getAnFxPrice.sh index 40e56b7..96a4851 100755 --- a/examples/forex/price/curl/getAnFxPrice.sh +++ b/examples/forex/price/curl/getAnFxPrice.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/forex/Price" \ +curl "http://localhost:8080/forex/Price" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/forex/quote/curl/getAFxQuote.sh b/examples/forex/quote/curl/getAFxQuote.sh index c31a982..181be9b 100755 --- a/examples/forex/quote/curl/getAFxQuote.sh +++ b/examples/forex/quote/curl/getAFxQuote.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/forex/Quote" \ +curl "http://localhost:8080/forex/Quote" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/function/call/curl/callAFunction.sh b/examples/function/call/curl/callAFunction.sh index 08e7724..49ca63f 100755 --- a/examples/function/call/curl/callAFunction.sh +++ b/examples/function/call/curl/callAFunction.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/function/Call" \ +curl "http://localhost:8080/function/Call" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/function/delete/curl/deleteAFunction.sh b/examples/function/delete/curl/deleteAFunction.sh index 2bee0b1..b0d9e44 100755 --- a/examples/function/delete/curl/deleteAFunction.sh +++ b/examples/function/delete/curl/deleteAFunction.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/function/Delete" \ +curl "http://localhost:8080/function/Delete" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/function/deploy/curl/deployAFunction.sh b/examples/function/deploy/curl/deployAFunction.sh index 763c8de..a32fefc 100755 --- a/examples/function/deploy/curl/deployAFunction.sh +++ b/examples/function/deploy/curl/deployAFunction.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/function/Deploy" \ +curl "http://localhost:8080/function/Deploy" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/function/describe/curl/describeFunctionStatus.sh b/examples/function/describe/curl/describeFunctionStatus.sh index cb52197..ec7b0d1 100755 --- a/examples/function/describe/curl/describeFunctionStatus.sh +++ b/examples/function/describe/curl/describeFunctionStatus.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/function/Describe" \ +curl "http://localhost:8080/function/Describe" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/function/list/curl/listFunctions.sh b/examples/function/list/curl/listFunctions.sh index b3d40e6..a25bb62 100755 --- a/examples/function/list/curl/listFunctions.sh +++ b/examples/function/list/curl/listFunctions.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/function/List" \ +curl "http://localhost:8080/function/List" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/geocoding/lookup/curl/geocodeAnAddress.sh b/examples/geocoding/lookup/curl/geocodeAnAddress.sh index a548486..3f29690 100755 --- a/examples/geocoding/lookup/curl/geocodeAnAddress.sh +++ b/examples/geocoding/lookup/curl/geocodeAnAddress.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/geocoding/Lookup" \ +curl "http://localhost:8080/geocoding/Lookup" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/geocoding/reverse/curl/reverseGeocodeLocation.sh b/examples/geocoding/reverse/curl/reverseGeocodeLocation.sh index 76e34ba..85df420 100755 --- a/examples/geocoding/reverse/curl/reverseGeocodeLocation.sh +++ b/examples/geocoding/reverse/curl/reverseGeocodeLocation.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/geocoding/Reverse" \ +curl "http://localhost:8080/geocoding/Reverse" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/gifs/search/curl/search.sh b/examples/gifs/search/curl/search.sh index 8a00d3a..7a38a46 100755 --- a/examples/gifs/search/curl/search.sh +++ b/examples/gifs/search/curl/search.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/gifs/Search" \ +curl "http://localhost:8080/gifs/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/google/search/curl/searchForVideos.sh b/examples/google/search/curl/searchForVideos.sh index 1ab0545..303efb1 100755 --- a/examples/google/search/curl/searchForVideos.sh +++ b/examples/google/search/curl/searchForVideos.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/google/Search" \ +curl "http://localhost:8080/google/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/helloworld/call/curl/callTheHelloworldService.sh b/examples/helloworld/call/curl/callTheHelloworldService.sh index 59c5366..02c1422 100755 --- a/examples/helloworld/call/curl/callTheHelloworldService.sh +++ b/examples/helloworld/call/curl/callTheHelloworldService.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/helloworld/Call" \ +curl "http://localhost:8080/helloworld/Call" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/helloworld/stream/curl/streamsResponsesFromTheServerUsingWebsockets.sh b/examples/helloworld/stream/curl/streamsResponsesFromTheServerUsingWebsockets.sh index f03c1ad..5140693 100755 --- a/examples/helloworld/stream/curl/streamsResponsesFromTheServerUsingWebsockets.sh +++ b/examples/helloworld/stream/curl/streamsResponsesFromTheServerUsingWebsockets.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/helloworld/Stream" \ +curl "http://localhost:8080/helloworld/Stream" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/holidays/countries/curl/listCountries.sh b/examples/holidays/countries/curl/listCountries.sh index c0bdb96..c82e1dc 100755 --- a/examples/holidays/countries/curl/listCountries.sh +++ b/examples/holidays/countries/curl/listCountries.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/holidays/Countries" \ +curl "http://localhost:8080/holidays/Countries" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/holidays/list/curl/getHolidays.sh b/examples/holidays/list/curl/getHolidays.sh index 0fafdfe..b759405 100755 --- a/examples/holidays/list/curl/getHolidays.sh +++ b/examples/holidays/list/curl/getHolidays.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/holidays/List" \ +curl "http://localhost:8080/holidays/List" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/id/generate/curl/generateABigflakeId.sh b/examples/id/generate/curl/generateABigflakeId.sh index 3bfd483..3001aef 100755 --- a/examples/id/generate/curl/generateABigflakeId.sh +++ b/examples/id/generate/curl/generateABigflakeId.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/id/Generate" \ +curl "http://localhost:8080/id/Generate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/id/generate/curl/generateAShortId.sh b/examples/id/generate/curl/generateAShortId.sh index cd0f54a..773927c 100755 --- a/examples/id/generate/curl/generateAShortId.sh +++ b/examples/id/generate/curl/generateAShortId.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/id/Generate" \ +curl "http://localhost:8080/id/Generate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/id/generate/curl/generateASnowflakeId.sh b/examples/id/generate/curl/generateASnowflakeId.sh index 2ce118c..4c5af5b 100755 --- a/examples/id/generate/curl/generateASnowflakeId.sh +++ b/examples/id/generate/curl/generateASnowflakeId.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/id/Generate" \ +curl "http://localhost:8080/id/Generate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/id/generate/curl/generateAUniqueId.sh b/examples/id/generate/curl/generateAUniqueId.sh index 792fdbf..13eac5c 100755 --- a/examples/id/generate/curl/generateAUniqueId.sh +++ b/examples/id/generate/curl/generateAUniqueId.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/id/Generate" \ +curl "http://localhost:8080/id/Generate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/id/types/curl/listTheTypesOfIdsAvailable.sh b/examples/id/types/curl/listTheTypesOfIdsAvailable.sh index ffd6730..477d905 100755 --- a/examples/id/types/curl/listTheTypesOfIdsAvailable.sh +++ b/examples/id/types/curl/listTheTypesOfIdsAvailable.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/id/Types" \ +curl "http://localhost:8080/id/Types" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/image/convert/curl/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh b/examples/image/convert/curl/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh index b34b665..95ce55e 100755 --- a/examples/image/convert/curl/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh +++ b/examples/image/convert/curl/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/image/Convert" \ +curl "http://localhost:8080/image/Convert" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/image/resize/curl/base64ToBase64Image.sh b/examples/image/resize/curl/base64ToBase64Image.sh index 4b19edd..2e05857 100755 --- a/examples/image/resize/curl/base64ToBase64Image.sh +++ b/examples/image/resize/curl/base64ToBase64Image.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/image/Resize" \ +curl "http://localhost:8080/image/Resize" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/image/resize/curl/base64ToBase64ImageWithCropping.sh b/examples/image/resize/curl/base64ToBase64ImageWithCropping.sh index 3199051..abddc3a 100755 --- a/examples/image/resize/curl/base64ToBase64ImageWithCropping.sh +++ b/examples/image/resize/curl/base64ToBase64ImageWithCropping.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/image/Resize" \ +curl "http://localhost:8080/image/Resize" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/image/resize/curl/base64ToHostedImage.sh b/examples/image/resize/curl/base64ToHostedImage.sh index 85626ec..ba1aeed 100755 --- a/examples/image/resize/curl/base64ToHostedImage.sh +++ b/examples/image/resize/curl/base64ToHostedImage.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/image/Resize" \ +curl "http://localhost:8080/image/Resize" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/image/upload/curl/uploadABase64ImageToMicrosCdn.sh b/examples/image/upload/curl/uploadABase64ImageToMicrosCdn.sh index 86073ea..a825792 100755 --- a/examples/image/upload/curl/uploadABase64ImageToMicrosCdn.sh +++ b/examples/image/upload/curl/uploadABase64ImageToMicrosCdn.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/image/Upload" \ +curl "http://localhost:8080/image/Upload" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/image/upload/curl/uploadAnImageFromAUrlToMicrosCdn.sh b/examples/image/upload/curl/uploadAnImageFromAUrlToMicrosCdn.sh index d1c35ca..d5d385c 100755 --- a/examples/image/upload/curl/uploadAnImageFromAUrlToMicrosCdn.sh +++ b/examples/image/upload/curl/uploadAnImageFromAUrlToMicrosCdn.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/image/Upload" \ +curl "http://localhost:8080/image/Upload" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/ip/lookup/curl/lookupIpInfo.sh b/examples/ip/lookup/curl/lookupIpInfo.sh index 8677cc9..0bc8ae2 100755 --- a/examples/ip/lookup/curl/lookupIpInfo.sh +++ b/examples/ip/lookup/curl/lookupIpInfo.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/ip/Lookup" \ +curl "http://localhost:8080/ip/Lookup" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/location/read/curl/getLocationById.sh b/examples/location/read/curl/getLocationById.sh index 2febbf1..cb4cf9b 100755 --- a/examples/location/read/curl/getLocationById.sh +++ b/examples/location/read/curl/getLocationById.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/location/Read" \ +curl "http://localhost:8080/location/Read" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/location/save/curl/saveAnEntity.sh b/examples/location/save/curl/saveAnEntity.sh index e5afe49..a15302d 100755 --- a/examples/location/save/curl/saveAnEntity.sh +++ b/examples/location/save/curl/saveAnEntity.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/location/Save" \ +curl "http://localhost:8080/location/Save" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/location/search/curl/searchForLocations.sh b/examples/location/search/curl/searchForLocations.sh index 58322b5..242991a 100755 --- a/examples/location/search/curl/searchForLocations.sh +++ b/examples/location/search/curl/searchForLocations.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/location/Search" \ +curl "http://localhost:8080/location/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/mq/publish/curl/publishAMessage.sh b/examples/mq/publish/curl/publishAMessage.sh index a864f41..7b3a384 100755 --- a/examples/mq/publish/curl/publishAMessage.sh +++ b/examples/mq/publish/curl/publishAMessage.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/mq/Publish" \ +curl "http://localhost:8080/mq/Publish" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/mq/subscribe/curl/subscribeToATopic.sh b/examples/mq/subscribe/curl/subscribeToATopic.sh index 26d8512..f34edcb 100755 --- a/examples/mq/subscribe/curl/subscribeToATopic.sh +++ b/examples/mq/subscribe/curl/subscribeToATopic.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/mq/Subscribe" \ +curl "http://localhost:8080/mq/Subscribe" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/notes/create/curl/createANote.sh b/examples/notes/create/curl/createANote.sh index ffda249..b3457d8 100755 --- a/examples/notes/create/curl/createANote.sh +++ b/examples/notes/create/curl/createANote.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/notes/Create" \ +curl "http://localhost:8080/notes/Create" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/notes/delete/curl/deleteANote.sh b/examples/notes/delete/curl/deleteANote.sh index f5fde0f..781a272 100755 --- a/examples/notes/delete/curl/deleteANote.sh +++ b/examples/notes/delete/curl/deleteANote.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/notes/Delete" \ +curl "http://localhost:8080/notes/Delete" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/notes/events/curl/subscribeToEvents.sh b/examples/notes/events/curl/subscribeToEvents.sh index bbdd17e..3730aef 100755 --- a/examples/notes/events/curl/subscribeToEvents.sh +++ b/examples/notes/events/curl/subscribeToEvents.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/notes/Events" \ +curl "http://localhost:8080/notes/Events" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/notes/list/curl/listAllNotes.sh b/examples/notes/list/curl/listAllNotes.sh index 80fbc10..39b5510 100755 --- a/examples/notes/list/curl/listAllNotes.sh +++ b/examples/notes/list/curl/listAllNotes.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/notes/List" \ +curl "http://localhost:8080/notes/List" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/notes/read/curl/readANote.sh b/examples/notes/read/curl/readANote.sh index 31d499d..b168845 100755 --- a/examples/notes/read/curl/readANote.sh +++ b/examples/notes/read/curl/readANote.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/notes/Read" \ +curl "http://localhost:8080/notes/Read" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/notes/update/curl/updateANote.sh b/examples/notes/update/curl/updateANote.sh index 7feb4ee..597a738 100755 --- a/examples/notes/update/curl/updateANote.sh +++ b/examples/notes/update/curl/updateANote.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/notes/Update" \ +curl "http://localhost:8080/notes/Update" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/otp/generate/curl/generateOtp.sh b/examples/otp/generate/curl/generateOtp.sh index e9222c8..9361c03 100755 --- a/examples/otp/generate/curl/generateOtp.sh +++ b/examples/otp/generate/curl/generateOtp.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/otp/Generate" \ +curl "http://localhost:8080/otp/Generate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/otp/validate/curl/validateOtp.sh b/examples/otp/validate/curl/validateOtp.sh index 1006312..8c43c51 100755 --- a/examples/otp/validate/curl/validateOtp.sh +++ b/examples/otp/validate/curl/validateOtp.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/otp/Validate" \ +curl "http://localhost:8080/otp/Validate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/postcode/lookup/curl/lookupPostcode.sh b/examples/postcode/lookup/curl/lookupPostcode.sh index 51fe297..ce8dd70 100755 --- a/examples/postcode/lookup/curl/lookupPostcode.sh +++ b/examples/postcode/lookup/curl/lookupPostcode.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/postcode/Lookup" \ +curl "http://localhost:8080/postcode/Lookup" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/postcode/random/curl/returnARandomPostcodeAndItsInformation.sh b/examples/postcode/random/curl/returnARandomPostcodeAndItsInformation.sh index eebad2a..f8e740c 100755 --- a/examples/postcode/random/curl/returnARandomPostcodeAndItsInformation.sh +++ b/examples/postcode/random/curl/returnARandomPostcodeAndItsInformation.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/postcode/Random" \ +curl "http://localhost:8080/postcode/Random" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/postcode/validate/curl/returnARandomPostcodeAndItsInformation.sh b/examples/postcode/validate/curl/returnARandomPostcodeAndItsInformation.sh index 272d736..bf3f238 100755 --- a/examples/postcode/validate/curl/returnARandomPostcodeAndItsInformation.sh +++ b/examples/postcode/validate/curl/returnARandomPostcodeAndItsInformation.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/postcode/Validate" \ +curl "http://localhost:8080/postcode/Validate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/prayer/times/curl/prayerTimes.sh b/examples/prayer/times/curl/prayerTimes.sh index 14e72b1..8302b6a 100755 --- a/examples/prayer/times/curl/prayerTimes.sh +++ b/examples/prayer/times/curl/prayerTimes.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/prayer/Times" \ +curl "http://localhost:8080/prayer/Times" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/qr/generate/curl/generateAQrCode.sh b/examples/qr/generate/curl/generateAQrCode.sh index e3f8a32..4e0fd62 100755 --- a/examples/qr/generate/curl/generateAQrCode.sh +++ b/examples/qr/generate/curl/generateAQrCode.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/qr/Generate" \ +curl "http://localhost:8080/qr/Generate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/quran/chapters/curl/listChapters.sh b/examples/quran/chapters/curl/listChapters.sh index a313444..891a0f1 100755 --- a/examples/quran/chapters/curl/listChapters.sh +++ b/examples/quran/chapters/curl/listChapters.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/quran/Chapters" \ +curl "http://localhost:8080/quran/Chapters" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/quran/search/curl/searchTheQuran.sh b/examples/quran/search/curl/searchTheQuran.sh index a0e4367..896f529 100755 --- a/examples/quran/search/curl/searchTheQuran.sh +++ b/examples/quran/search/curl/searchTheQuran.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/quran/Search" \ +curl "http://localhost:8080/quran/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/quran/summary/curl/getChapterSummary.sh b/examples/quran/summary/curl/getChapterSummary.sh index cb2d85d..4f10dc2 100755 --- a/examples/quran/summary/curl/getChapterSummary.sh +++ b/examples/quran/summary/curl/getChapterSummary.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/quran/Summary" \ +curl "http://localhost:8080/quran/Summary" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/quran/verses/curl/getVersesOfAChapter.sh b/examples/quran/verses/curl/getVersesOfAChapter.sh index 8fcf18e..d8dac81 100755 --- a/examples/quran/verses/curl/getVersesOfAChapter.sh +++ b/examples/quran/verses/curl/getVersesOfAChapter.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/quran/Verses" \ +curl "http://localhost:8080/quran/Verses" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/routing/directions/curl/turnByTurnDirections.sh b/examples/routing/directions/curl/turnByTurnDirections.sh index c6b60ff..a1b0c71 100755 --- a/examples/routing/directions/curl/turnByTurnDirections.sh +++ b/examples/routing/directions/curl/turnByTurnDirections.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/routing/Directions" \ +curl "http://localhost:8080/routing/Directions" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/routing/eta/curl/etaFromPointAToPointB.sh b/examples/routing/eta/curl/etaFromPointAToPointB.sh index d6a38c9..475b6b6 100755 --- a/examples/routing/eta/curl/etaFromPointAToPointB.sh +++ b/examples/routing/eta/curl/etaFromPointAToPointB.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/routing/Eta" \ +curl "http://localhost:8080/routing/Eta" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/routing/route/curl/gpsPointsForARoute.sh b/examples/routing/route/curl/gpsPointsForARoute.sh index 3e448d7..b70e8ed 100755 --- a/examples/routing/route/curl/gpsPointsForARoute.sh +++ b/examples/routing/route/curl/gpsPointsForARoute.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/routing/Route" \ +curl "http://localhost:8080/routing/Route" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/rss/add/curl/addANewFeed.sh b/examples/rss/add/curl/addANewFeed.sh index 1ec08f4..116a58e 100755 --- a/examples/rss/add/curl/addANewFeed.sh +++ b/examples/rss/add/curl/addANewFeed.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/rss/Add" \ +curl "http://localhost:8080/rss/Add" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/rss/feed/curl/readAFeed.sh b/examples/rss/feed/curl/readAFeed.sh index a768f9c..a893e2b 100755 --- a/examples/rss/feed/curl/readAFeed.sh +++ b/examples/rss/feed/curl/readAFeed.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/rss/Feed" \ +curl "http://localhost:8080/rss/Feed" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/rss/list/curl/listRssFeeds.sh b/examples/rss/list/curl/listRssFeeds.sh index 57e53cb..5d6fa70 100755 --- a/examples/rss/list/curl/listRssFeeds.sh +++ b/examples/rss/list/curl/listRssFeeds.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/rss/List" \ +curl "http://localhost:8080/rss/List" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/rss/remove/curl/removeAFeed.sh b/examples/rss/remove/curl/removeAFeed.sh index ca7a07d..b7e84e2 100755 --- a/examples/rss/remove/curl/removeAFeed.sh +++ b/examples/rss/remove/curl/removeAFeed.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/rss/Remove" \ +curl "http://localhost:8080/rss/Remove" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/sentiment/analyze/curl/analyzeAPieceOfText.sh b/examples/sentiment/analyze/curl/analyzeAPieceOfText.sh index 8df9ed0..9dfa03c 100755 --- a/examples/sentiment/analyze/curl/analyzeAPieceOfText.sh +++ b/examples/sentiment/analyze/curl/analyzeAPieceOfText.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/sentiment/Analyze" \ +curl "http://localhost:8080/sentiment/Analyze" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/sms/send/curl/sendSms.sh b/examples/sms/send/curl/sendSms.sh index d271ffc..65a657b 100755 --- a/examples/sms/send/curl/sendSms.sh +++ b/examples/sms/send/curl/sendSms.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/sms/Send" \ +curl "http://localhost:8080/sms/Send" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/stock/history/curl/getHistoricData.sh b/examples/stock/history/curl/getHistoricData.sh index ff57bc5..77c4384 100755 --- a/examples/stock/history/curl/getHistoricData.sh +++ b/examples/stock/history/curl/getHistoricData.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/stock/History" \ +curl "http://localhost:8080/stock/History" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/stock/orderBook/curl/orderBookHistory.sh b/examples/stock/orderBook/curl/orderBookHistory.sh index 19dda17..665cd35 100755 --- a/examples/stock/orderBook/curl/orderBookHistory.sh +++ b/examples/stock/orderBook/curl/orderBookHistory.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/stock/OrderBook" \ +curl "http://localhost:8080/stock/OrderBook" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/stock/price/curl/getAStockPrice.sh b/examples/stock/price/curl/getAStockPrice.sh index 9c97c1d..a5aaa04 100755 --- a/examples/stock/price/curl/getAStockPrice.sh +++ b/examples/stock/price/curl/getAStockPrice.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/stock/Price" \ +curl "http://localhost:8080/stock/Price" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/stock/quote/curl/getAStockQuote.sh b/examples/stock/quote/curl/getAStockQuote.sh index 85cb2c4..4b84f4d 100755 --- a/examples/stock/quote/curl/getAStockQuote.sh +++ b/examples/stock/quote/curl/getAStockQuote.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/stock/Quote" \ +curl "http://localhost:8080/stock/Quote" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/stream/createChannel/curl/createChannel.sh b/examples/stream/createChannel/curl/createChannel.sh index bb90bb6..ec9fd1c 100755 --- a/examples/stream/createChannel/curl/createChannel.sh +++ b/examples/stream/createChannel/curl/createChannel.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/stream/CreateChannel" \ +curl "http://localhost:8080/stream/CreateChannel" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/stream/listChannels/curl/listChannels.sh b/examples/stream/listChannels/curl/listChannels.sh index 3b2bccb..f1de508 100755 --- a/examples/stream/listChannels/curl/listChannels.sh +++ b/examples/stream/listChannels/curl/listChannels.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/stream/ListChannels" \ +curl "http://localhost:8080/stream/ListChannels" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/stream/listMessages/curl/listMessages.sh b/examples/stream/listMessages/curl/listMessages.sh index a364691..1bd79f2 100755 --- a/examples/stream/listMessages/curl/listMessages.sh +++ b/examples/stream/listMessages/curl/listMessages.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/stream/ListMessages" \ +curl "http://localhost:8080/stream/ListMessages" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/stream/sendMessage/curl/sendMessage.sh b/examples/stream/sendMessage/curl/sendMessage.sh index ec4dc58..ba5e4a6 100755 --- a/examples/stream/sendMessage/curl/sendMessage.sh +++ b/examples/stream/sendMessage/curl/sendMessage.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/stream/SendMessage" \ +curl "http://localhost:8080/stream/SendMessage" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/sunnah/books/curl/getTheBooksWithinACollection.sh b/examples/sunnah/books/curl/getTheBooksWithinACollection.sh index 0262af1..9d341af 100755 --- a/examples/sunnah/books/curl/getTheBooksWithinACollection.sh +++ b/examples/sunnah/books/curl/getTheBooksWithinACollection.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/sunnah/Books" \ +curl "http://localhost:8080/sunnah/Books" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/sunnah/chapters/curl/listTheChaptersInABook.sh b/examples/sunnah/chapters/curl/listTheChaptersInABook.sh index 0cdd3a3..fb45e32 100755 --- a/examples/sunnah/chapters/curl/listTheChaptersInABook.sh +++ b/examples/sunnah/chapters/curl/listTheChaptersInABook.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/sunnah/Chapters" \ +curl "http://localhost:8080/sunnah/Chapters" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/sunnah/collections/curl/listAvailableCollections.sh b/examples/sunnah/collections/curl/listAvailableCollections.sh index 3e14081..6413372 100755 --- a/examples/sunnah/collections/curl/listAvailableCollections.sh +++ b/examples/sunnah/collections/curl/listAvailableCollections.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/sunnah/Collections" \ +curl "http://localhost:8080/sunnah/Collections" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/sunnah/hadiths/curl/listTheHadithsInABook.sh b/examples/sunnah/hadiths/curl/listTheHadithsInABook.sh index d9ad1f1..2a213fe 100755 --- a/examples/sunnah/hadiths/curl/listTheHadithsInABook.sh +++ b/examples/sunnah/hadiths/curl/listTheHadithsInABook.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/sunnah/Hadiths" \ +curl "http://localhost:8080/sunnah/Hadiths" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/thumbnail/screenshot/curl/takeScreenshotOfAUrl.sh b/examples/thumbnail/screenshot/curl/takeScreenshotOfAUrl.sh index a67be2a..f85bf81 100755 --- a/examples/thumbnail/screenshot/curl/takeScreenshotOfAUrl.sh +++ b/examples/thumbnail/screenshot/curl/takeScreenshotOfAUrl.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/thumbnail/Screenshot" \ +curl "http://localhost:8080/thumbnail/Screenshot" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/time/now/curl/returnsCurrentTimeOptionallyWithLocation.sh b/examples/time/now/curl/returnsCurrentTimeOptionallyWithLocation.sh index 482401c..d7afbfb 100755 --- a/examples/time/now/curl/returnsCurrentTimeOptionallyWithLocation.sh +++ b/examples/time/now/curl/returnsCurrentTimeOptionallyWithLocation.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/time/Now" \ +curl "http://localhost:8080/time/Now" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/time/zone/curl/getTheTimezoneInfoForASpecificLocation.sh b/examples/time/zone/curl/getTheTimezoneInfoForASpecificLocation.sh index ee94d8f..0565114 100755 --- a/examples/time/zone/curl/getTheTimezoneInfoForASpecificLocation.sh +++ b/examples/time/zone/curl/getTheTimezoneInfoForASpecificLocation.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/time/Zone" \ +curl "http://localhost:8080/time/Zone" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/twitter/search/curl/searchForTweets.sh b/examples/twitter/search/curl/searchForTweets.sh index d09bf76..a03b988 100755 --- a/examples/twitter/search/curl/searchForTweets.sh +++ b/examples/twitter/search/curl/searchForTweets.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/twitter/Search" \ +curl "http://localhost:8080/twitter/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/twitter/timeline/curl/getATwitterTimeline.sh b/examples/twitter/timeline/curl/getATwitterTimeline.sh index df97c16..be3c833 100755 --- a/examples/twitter/timeline/curl/getATwitterTimeline.sh +++ b/examples/twitter/timeline/curl/getATwitterTimeline.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/twitter/Timeline" \ +curl "http://localhost:8080/twitter/Timeline" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/twitter/trends/curl/getTheCurrentGlobalTrendingTopics.sh b/examples/twitter/trends/curl/getTheCurrentGlobalTrendingTopics.sh index db07c19..4088f04 100755 --- a/examples/twitter/trends/curl/getTheCurrentGlobalTrendingTopics.sh +++ b/examples/twitter/trends/curl/getTheCurrentGlobalTrendingTopics.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/twitter/Trends" \ +curl "http://localhost:8080/twitter/Trends" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/twitter/user/curl/getAUsersTwitterProfile.sh b/examples/twitter/user/curl/getAUsersTwitterProfile.sh index 2827a05..34cdac6 100755 --- a/examples/twitter/user/curl/getAUsersTwitterProfile.sh +++ b/examples/twitter/user/curl/getAUsersTwitterProfile.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/twitter/User" \ +curl "http://localhost:8080/twitter/User" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/url/list/curl/listYourShortenedUrls.sh b/examples/url/list/curl/listYourShortenedUrls.sh index 25a070a..a99085c 100755 --- a/examples/url/list/curl/listYourShortenedUrls.sh +++ b/examples/url/list/curl/listYourShortenedUrls.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/url/List" \ +curl "http://localhost:8080/url/List" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{}' \ No newline at end of file diff --git a/examples/url/proxy/curl/resolveAShortUrlToALongDestinationUrl.sh b/examples/url/proxy/curl/resolveAShortUrlToALongDestinationUrl.sh index 7922557..acd071c 100755 --- a/examples/url/proxy/curl/resolveAShortUrlToALongDestinationUrl.sh +++ b/examples/url/proxy/curl/resolveAShortUrlToALongDestinationUrl.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/url/Proxy" \ +curl "http://localhost:8080/url/Proxy" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/url/shorten/curl/shortenALongUrl.sh b/examples/url/shorten/curl/shortenALongUrl.sh index ea71e39..e29a2ea 100755 --- a/examples/url/shorten/curl/shortenALongUrl.sh +++ b/examples/url/shorten/curl/shortenALongUrl.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/url/Shorten" \ +curl "http://localhost:8080/url/Shorten" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/create/curl/createAnAccount.sh b/examples/user/create/curl/createAnAccount.sh index d80e21e..9919c8b 100755 --- a/examples/user/create/curl/createAnAccount.sh +++ b/examples/user/create/curl/createAnAccount.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/Create" \ +curl "http://localhost:8080/user/Create" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/delete/curl/deleteUserAccount.sh b/examples/user/delete/curl/deleteUserAccount.sh index 7fe2832..aceba3b 100755 --- a/examples/user/delete/curl/deleteUserAccount.sh +++ b/examples/user/delete/curl/deleteUserAccount.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/Delete" \ +curl "http://localhost:8080/user/Delete" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/login/curl/logAUserIn.sh b/examples/user/login/curl/logAUserIn.sh index ae134f5..4215f94 100755 --- a/examples/user/login/curl/logAUserIn.sh +++ b/examples/user/login/curl/logAUserIn.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/Login" \ +curl "http://localhost:8080/user/Login" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/logout/curl/logAUserOut.sh b/examples/user/logout/curl/logAUserOut.sh index fb3d2c1..37bb655 100755 --- a/examples/user/logout/curl/logAUserOut.sh +++ b/examples/user/logout/curl/logAUserOut.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/Logout" \ +curl "http://localhost:8080/user/Logout" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/read/curl/readAccountByEmail.sh b/examples/user/read/curl/readAccountByEmail.sh index 9896fc4..097a61c 100755 --- a/examples/user/read/curl/readAccountByEmail.sh +++ b/examples/user/read/curl/readAccountByEmail.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/Read" \ +curl "http://localhost:8080/user/Read" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/read/curl/readAccountByUsernameOrEmail.sh b/examples/user/read/curl/readAccountByUsernameOrEmail.sh index 35b0276..ff9e358 100755 --- a/examples/user/read/curl/readAccountByUsernameOrEmail.sh +++ b/examples/user/read/curl/readAccountByUsernameOrEmail.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/Read" \ +curl "http://localhost:8080/user/Read" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/read/curl/readAnAccountById.sh b/examples/user/read/curl/readAnAccountById.sh index 841af4b..5ce8c3a 100755 --- a/examples/user/read/curl/readAnAccountById.sh +++ b/examples/user/read/curl/readAnAccountById.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/Read" \ +curl "http://localhost:8080/user/Read" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/readSession/curl/readASessionByTheSessionId.sh b/examples/user/readSession/curl/readASessionByTheSessionId.sh index 9f8f35a..c51a1db 100755 --- a/examples/user/readSession/curl/readASessionByTheSessionId.sh +++ b/examples/user/readSession/curl/readASessionByTheSessionId.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/ReadSession" \ +curl "http://localhost:8080/user/ReadSession" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/sendVerificationEmail/curl/sendVerificationEmail.sh b/examples/user/sendVerificationEmail/curl/sendVerificationEmail.sh index 7274034..6b9beb7 100755 --- a/examples/user/sendVerificationEmail/curl/sendVerificationEmail.sh +++ b/examples/user/sendVerificationEmail/curl/sendVerificationEmail.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/SendVerificationEmail" \ +curl "http://localhost:8080/user/SendVerificationEmail" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/update/curl/updateAnAccount.sh b/examples/user/update/curl/updateAnAccount.sh index f22e191..a141293 100755 --- a/examples/user/update/curl/updateAnAccount.sh +++ b/examples/user/update/curl/updateAnAccount.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/Update" \ +curl "http://localhost:8080/user/Update" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/updatePassword/curl/updateTheAccountPassword.sh b/examples/user/updatePassword/curl/updateTheAccountPassword.sh index bf3127b..f1e64c9 100755 --- a/examples/user/updatePassword/curl/updateTheAccountPassword.sh +++ b/examples/user/updatePassword/curl/updateTheAccountPassword.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/UpdatePassword" \ +curl "http://localhost:8080/user/UpdatePassword" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/user/verifyEmail/curl/verifyEmail.sh b/examples/user/verifyEmail/curl/verifyEmail.sh index 75474aa..5dab9b3 100755 --- a/examples/user/verifyEmail/curl/verifyEmail.sh +++ b/examples/user/verifyEmail/curl/verifyEmail.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/user/VerifyEmail" \ +curl "http://localhost:8080/user/VerifyEmail" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/vehicle/lookup/curl/lookupVehicle.sh b/examples/vehicle/lookup/curl/lookupVehicle.sh index 00c867e..f7233b1 100755 --- a/examples/vehicle/lookup/curl/lookupVehicle.sh +++ b/examples/vehicle/lookup/curl/lookupVehicle.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/vehicle/Lookup" \ +curl "http://localhost:8080/vehicle/Lookup" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/weather/forecast/curl/forecastWeather.sh b/examples/weather/forecast/curl/forecastWeather.sh index 4fa63dd..aa1b54b 100755 --- a/examples/weather/forecast/curl/forecastWeather.sh +++ b/examples/weather/forecast/curl/forecastWeather.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/weather/Forecast" \ +curl "http://localhost:8080/weather/Forecast" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/weather/now/curl/getCurrentWeather.sh b/examples/weather/now/curl/getCurrentWeather.sh index 34d23d1..bb1aa18 100755 --- a/examples/weather/now/curl/getCurrentWeather.sh +++ b/examples/weather/now/curl/getCurrentWeather.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/weather/Now" \ +curl "http://localhost:8080/weather/Now" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/examples/youtube/search/curl/searchForVideos.sh b/examples/youtube/search/curl/searchForVideos.sh index afe742c..c6391b3 100755 --- a/examples/youtube/search/curl/searchForVideos.sh +++ b/examples/youtube/search/curl/searchForVideos.sh @@ -1,4 +1,4 @@ -curl "https://api.m3o.com/v1/youtube/Search" \ +curl "http://localhost:8080/youtube/Search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \ -d '{ diff --git a/go.mod b/go.mod index 2edf8c4..72db3fa 100644 --- a/go.mod +++ b/go.mod @@ -33,6 +33,7 @@ require ( github.com/m3o/m3o-go/client v0.0.0-20210421144725-8bfd7992ada3 github.com/mattheath/base62 v0.0.0-20150408093626-b80cdc656a7a // indirect github.com/mattheath/kala v0.0.0-20171219141654-d6276794bf0e + github.com/micro/micro-go v0.0.0-20211101221015-79ab982f8163 github.com/micro/micro/v3 v3.4.1-0.20210910132548-f8bfb12823c0 github.com/miekg/dns v1.1.31 // indirect github.com/oschwald/geoip2-golang v1.5.0 diff --git a/go.sum b/go.sum index 0e50714..3ad5b63 100644 --- a/go.sum +++ b/go.sum @@ -488,6 +488,8 @@ github.com/mattn/go-sqlite3 v1.14.5 h1:1IdxlwTNazvbKJQSxoJ5/9ECbEeaTTyeU7sEAZ5KK github.com/mattn/go-sqlite3 v1.14.5/go.mod h1:WVKg1VTActs4Qso6iwGbiFih2UIHo0ENGwNd0Lj+XmI= github.com/mattn/go-tty v0.0.0-20180219170247-931426f7535a/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/micro/micro-go v0.0.0-20211101221015-79ab982f8163 h1:kNngAyoUre7ahqYWjlBVpT4GGDYM7r9BYUzpcOveaPs= +github.com/micro/micro-go v0.0.0-20211101221015-79ab982f8163/go.mod h1:o4fTExNn5LlnQRB/WiW3RChsohPwQTJ1AKdNCz2YEYA= github.com/micro/micro/v3 v3.4.1-0.20210910132548-f8bfb12823c0 h1:TNsE0OkoYpb3DTDBsTm7vUvKoyp8zkUuUprxhIpMjoM= github.com/micro/micro/v3 v3.4.1-0.20210910132548-f8bfb12823c0/go.mod h1:bkhxUsib0oX41JNr5qlxTt2LYzzGXJWet4d/Vwvb6Wg= github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=