From c5c2867dc3a257a9ce17e873a001cf5f3530e56d Mon Sep 17 00:00:00 2001 From: m3o-actions <> Date: Fri, 29 Oct 2021 10:32:59 +0000 Subject: [PATCH] Commit from m3o/m3o action --- curl/address/lookupPostcode/lookupPostcode.sh | 6 ++++++ curl/answer/question/askAQuestion.sh | 6 ++++++ curl/cache/decrement/decrementAValue.sh | 7 +++++++ curl/cache/delete/deleteAValue.sh | 6 ++++++ curl/cache/get/getAValue.sh | 6 ++++++ curl/cache/increment/incrementAValue.sh | 7 +++++++ curl/cache/set/setAValue.sh | 7 +++++++ curl/crypto/history/getPreviousClose.sh | 6 ++++++ curl/crypto/news/getCryptocurrencyNews.sh | 6 ++++++ curl/crypto/price/getCryptocurrencyPrice.sh | 6 ++++++ curl/crypto/quote/getACryptocurrencyQuote.sh | 6 ++++++ curl/currency/codes/getSupportedCodes.sh | 4 ++++ curl/currency/convert/convert10UsdToGbp.sh | 8 ++++++++ curl/currency/convert/convertUsdToGbp.sh | 7 +++++++ .../history/historicRatesForACurrency.sh | 7 +++++++ curl/currency/rates/getRatesForUsd.sh | 6 ++++++ curl/db/count/countEntriesInATable.sh | 6 ++++++ curl/db/create/createARecord.sh | 12 ++++++++++++ curl/db/delete/deleteARecord.sh | 7 +++++++ curl/db/read/readRecords.sh | 7 +++++++ curl/db/truncate/truncateTable.sh | 6 ++++++ curl/db/update/updateARecord.sh | 10 ++++++++++ curl/email/send/sendEmail.sh | 8 ++++++++ curl/emoji/find/findEmoji.sh | 6 ++++++ curl/emoji/flag/getFlagByCountryCode.sh | 6 ++++++ curl/emoji/print/printTextIncludingEmoji.sh | 6 ++++++ .../sendATextContainingAnEmojiToAnyoneViaSms.sh | 8 ++++++++ .../evchargers/referenceData/getReferenceData.sh | 4 ++++ curl/evchargers/search/searchByBoundingBox.sh | 16 ++++++++++++++++ curl/evchargers/search/searchByLocation.sh | 11 +++++++++++ .../search/searchWithFiltersFastChargersOnly.sh | 14 ++++++++++++++ curl/file/delete/deleteFile.sh | 7 +++++++ curl/file/list/listFiles.sh | 6 ++++++ curl/file/read/readFile.sh | 7 +++++++ curl/file/save/saveFile.sh | 10 ++++++++++ curl/forex/history/getPreviousClose.sh | 6 ++++++ curl/forex/price/getAnFxPrice.sh | 6 ++++++ curl/forex/quote/getAFxQuote.sh | 6 ++++++ curl/function/call/callAFunction.sh | 7 +++++++ curl/function/delete/deleteAFunction.sh | 7 +++++++ curl/function/deploy/deployAFunction.sh | 10 ++++++++++ curl/function/describe/describeFunctionStatus.sh | 7 +++++++ curl/function/list/listFunctions.sh | 4 ++++ curl/geocoding/lookup/geocodeAnAddress.sh | 9 +++++++++ curl/geocoding/reverse/reverseGeocodeLocation.sh | 7 +++++++ curl/gifs/search/search.sh | 7 +++++++ curl/google/search/searchForVideos.sh | 6 ++++++ curl/helloworld/call/callTheHelloworldService.sh | 6 ++++++ ...eCurrentlyTemporarilyNotSupportedInClients.sh | 6 ++++++ curl/holidays/countries/listCountries.sh | 4 ++++ curl/holidays/list/getHolidays.sh | 7 +++++++ curl/id/generate/generateABigflakeId.sh | 6 ++++++ curl/id/generate/generateAShortId.sh | 6 ++++++ curl/id/generate/generateASnowflakeId.sh | 6 ++++++ curl/id/generate/generateAUniqueId.sh | 6 ++++++ curl/id/types/listTheTypesOfIdsAvailable.sh | 4 ++++ ...JpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh | 8 ++++++++ curl/image/resize/base64ToBase64Image.sh | 8 ++++++++ .../resize/base64ToBase64ImageWithCropping.sh | 12 ++++++++++++ curl/image/resize/base64ToHostedImage.sh | 10 ++++++++++ .../upload/uploadABase64ImageToMicrosCdn.sh | 8 ++++++++ .../upload/uploadAnImageFromAUrlToMicrosCdn.sh | 7 +++++++ curl/ip/lookup/lookupIpInfo.sh | 6 ++++++ curl/location/read/getLocationById.sh | 6 ++++++ curl/location/save/saveAnEntity.sh | 14 ++++++++++++++ curl/location/search/searchForLocations.sh | 12 ++++++++++++ curl/notes/create/createANote.sh | 7 +++++++ curl/notes/delete/deleteANote.sh | 6 ++++++ curl/notes/list/listAllNotes.sh | 4 ++++ curl/notes/read/readANote.sh | 6 ++++++ curl/notes/update/updateANote.sh | 10 ++++++++++ curl/otp/generate/generateOtp.sh | 6 ++++++ curl/otp/validate/validateOtp.sh | 7 +++++++ curl/postcode/lookup/lookupPostcode.sh | 6 ++++++ .../returnARandomPostcodeAndItsInformation.sh | 4 ++++ .../returnARandomPostcodeAndItsInformation.sh | 6 ++++++ curl/prayer/times/prayerTimes.sh | 6 ++++++ curl/qr/generate/generateAQrCode.sh | 7 +++++++ curl/quran/chapters/listChapters.sh | 6 ++++++ curl/quran/search/searchTheQuran.sh | 6 ++++++ curl/quran/summary/getChapterSummary.sh | 6 ++++++ curl/quran/verses/getVersesOfAChapter.sh | 6 ++++++ curl/routing/directions/turnByTurnDirections.sh | 13 +++++++++++++ curl/routing/eta/etaFromPointAToPointB.sh | 13 +++++++++++++ curl/routing/route/gpsPointsForARoute.sh | 13 +++++++++++++ curl/rss/add/addANewFeed.sh | 8 ++++++++ curl/rss/feed/readAFeed.sh | 6 ++++++ curl/rss/list/listRssFeeds.sh | 4 ++++ curl/rss/remove/removeAFeed.sh | 6 ++++++ curl/sentiment/analyze/analyzeAPieceOfText.sh | 6 ++++++ curl/sms/send/sendSms.sh | 8 ++++++++ curl/stock/history/getHistoricData.sh | 7 +++++++ curl/stock/orderBook/orderBookHistory.sh | 10 ++++++++++ curl/stock/price/getAStockPrice.sh | 6 ++++++ curl/stock/quote/getAStockQuote.sh | 6 ++++++ curl/stream/publish/publishAMessage.sh | 11 +++++++++++ curl/stream/subscribe/subscribeToATopic.sh | 6 ++++++ .../sunnah/books/getTheBooksWithinACollection.sh | 6 ++++++ curl/sunnah/chapters/listTheChaptersInABook.sh | 7 +++++++ .../collections/listAvailableCollections.sh | 4 ++++ curl/sunnah/hadiths/listTheHadithsInABook.sh | 7 +++++++ .../thumbnail/screenshot/takeScreenshotOfAUrl.sh | 8 ++++++++ .../returnsCurrentTimeOptionallyWithLocation.sh | 4 ++++ .../getTheTimezoneInfoForASpecificLocation.sh | 6 ++++++ curl/twitter/search/searchForTweets.sh | 6 ++++++ curl/twitter/timeline/getATwitterTimeline.sh | 7 +++++++ .../trends/getTheCurrentGlobalTrendingTopics.sh | 4 ++++ curl/twitter/user/getAUsersTwitterProfile.sh | 6 ++++++ curl/url/list/listYourShortenedUrls.sh | 4 ++++ .../resolveAShortUrlToALongDestinationUrl.sh | 6 ++++++ curl/url/shorten/shortenALongUrl.sh | 6 ++++++ curl/user/create/createAnAccount.sh | 9 +++++++++ curl/user/delete/deleteUserAccount.sh | 6 ++++++ curl/user/login/logAUserIn.sh | 7 +++++++ curl/user/logout/logAUserOut.sh | 6 ++++++ curl/user/read/readAccountByEmail.sh | 6 ++++++ curl/user/read/readAccountByUsernameOrEmail.sh | 6 ++++++ curl/user/read/readAnAccountById.sh | 6 ++++++ .../readSession/readASessionByTheSessionId.sh | 6 ++++++ .../sendVerificationEmail.sh | 11 +++++++++++ curl/user/update/updateAnAccount.sh | 7 +++++++ .../updatePassword/updateTheAccountPassword.sh | 9 +++++++++ curl/user/verifyEmail/verifyEmail.sh | 6 ++++++ curl/vehicle/lookup/lookupVehicle.sh | 6 ++++++ curl/weather/forecast/forecastWeather.sh | 7 +++++++ curl/weather/now/getCurrentWeather.sh | 6 ++++++ curl/youtube/search/searchForVideos.sh | 6 ++++++ 127 files changed, 895 insertions(+) create mode 100755 curl/address/lookupPostcode/lookupPostcode.sh create mode 100755 curl/answer/question/askAQuestion.sh create mode 100755 curl/cache/decrement/decrementAValue.sh create mode 100755 curl/cache/delete/deleteAValue.sh create mode 100755 curl/cache/get/getAValue.sh create mode 100755 curl/cache/increment/incrementAValue.sh create mode 100755 curl/cache/set/setAValue.sh create mode 100755 curl/crypto/history/getPreviousClose.sh create mode 100755 curl/crypto/news/getCryptocurrencyNews.sh create mode 100755 curl/crypto/price/getCryptocurrencyPrice.sh create mode 100755 curl/crypto/quote/getACryptocurrencyQuote.sh create mode 100755 curl/currency/codes/getSupportedCodes.sh create mode 100755 curl/currency/convert/convert10UsdToGbp.sh create mode 100755 curl/currency/convert/convertUsdToGbp.sh create mode 100755 curl/currency/history/historicRatesForACurrency.sh create mode 100755 curl/currency/rates/getRatesForUsd.sh create mode 100755 curl/db/count/countEntriesInATable.sh create mode 100755 curl/db/create/createARecord.sh create mode 100755 curl/db/delete/deleteARecord.sh create mode 100755 curl/db/read/readRecords.sh create mode 100755 curl/db/truncate/truncateTable.sh create mode 100755 curl/db/update/updateARecord.sh create mode 100755 curl/email/send/sendEmail.sh create mode 100755 curl/emoji/find/findEmoji.sh create mode 100755 curl/emoji/flag/getFlagByCountryCode.sh create mode 100755 curl/emoji/print/printTextIncludingEmoji.sh create mode 100755 curl/emoji/send/sendATextContainingAnEmojiToAnyoneViaSms.sh create mode 100755 curl/evchargers/referenceData/getReferenceData.sh create mode 100755 curl/evchargers/search/searchByBoundingBox.sh create mode 100755 curl/evchargers/search/searchByLocation.sh create mode 100755 curl/evchargers/search/searchWithFiltersFastChargersOnly.sh create mode 100755 curl/file/delete/deleteFile.sh create mode 100755 curl/file/list/listFiles.sh create mode 100755 curl/file/read/readFile.sh create mode 100755 curl/file/save/saveFile.sh create mode 100755 curl/forex/history/getPreviousClose.sh create mode 100755 curl/forex/price/getAnFxPrice.sh create mode 100755 curl/forex/quote/getAFxQuote.sh create mode 100755 curl/function/call/callAFunction.sh create mode 100755 curl/function/delete/deleteAFunction.sh create mode 100755 curl/function/deploy/deployAFunction.sh create mode 100755 curl/function/describe/describeFunctionStatus.sh create mode 100755 curl/function/list/listFunctions.sh create mode 100755 curl/geocoding/lookup/geocodeAnAddress.sh create mode 100755 curl/geocoding/reverse/reverseGeocodeLocation.sh create mode 100755 curl/gifs/search/search.sh create mode 100755 curl/google/search/searchForVideos.sh create mode 100755 curl/helloworld/call/callTheHelloworldService.sh create mode 100755 curl/helloworld/stream/streamsAreCurrentlyTemporarilyNotSupportedInClients.sh create mode 100755 curl/holidays/countries/listCountries.sh create mode 100755 curl/holidays/list/getHolidays.sh create mode 100755 curl/id/generate/generateABigflakeId.sh create mode 100755 curl/id/generate/generateAShortId.sh create mode 100755 curl/id/generate/generateASnowflakeId.sh create mode 100755 curl/id/generate/generateAUniqueId.sh create mode 100755 curl/id/types/listTheTypesOfIdsAvailable.sh create mode 100755 curl/image/convert/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh create mode 100755 curl/image/resize/base64ToBase64Image.sh create mode 100755 curl/image/resize/base64ToBase64ImageWithCropping.sh create mode 100755 curl/image/resize/base64ToHostedImage.sh create mode 100755 curl/image/upload/uploadABase64ImageToMicrosCdn.sh create mode 100755 curl/image/upload/uploadAnImageFromAUrlToMicrosCdn.sh create mode 100755 curl/ip/lookup/lookupIpInfo.sh create mode 100755 curl/location/read/getLocationById.sh create mode 100755 curl/location/save/saveAnEntity.sh create mode 100755 curl/location/search/searchForLocations.sh create mode 100755 curl/notes/create/createANote.sh create mode 100755 curl/notes/delete/deleteANote.sh create mode 100755 curl/notes/list/listAllNotes.sh create mode 100755 curl/notes/read/readANote.sh create mode 100755 curl/notes/update/updateANote.sh create mode 100755 curl/otp/generate/generateOtp.sh create mode 100755 curl/otp/validate/validateOtp.sh create mode 100755 curl/postcode/lookup/lookupPostcode.sh create mode 100755 curl/postcode/random/returnARandomPostcodeAndItsInformation.sh create mode 100755 curl/postcode/validate/returnARandomPostcodeAndItsInformation.sh create mode 100755 curl/prayer/times/prayerTimes.sh create mode 100755 curl/qr/generate/generateAQrCode.sh create mode 100755 curl/quran/chapters/listChapters.sh create mode 100755 curl/quran/search/searchTheQuran.sh create mode 100755 curl/quran/summary/getChapterSummary.sh create mode 100755 curl/quran/verses/getVersesOfAChapter.sh create mode 100755 curl/routing/directions/turnByTurnDirections.sh create mode 100755 curl/routing/eta/etaFromPointAToPointB.sh create mode 100755 curl/routing/route/gpsPointsForARoute.sh create mode 100755 curl/rss/add/addANewFeed.sh create mode 100755 curl/rss/feed/readAFeed.sh create mode 100755 curl/rss/list/listRssFeeds.sh create mode 100755 curl/rss/remove/removeAFeed.sh create mode 100755 curl/sentiment/analyze/analyzeAPieceOfText.sh create mode 100755 curl/sms/send/sendSms.sh create mode 100755 curl/stock/history/getHistoricData.sh create mode 100755 curl/stock/orderBook/orderBookHistory.sh create mode 100755 curl/stock/price/getAStockPrice.sh create mode 100755 curl/stock/quote/getAStockQuote.sh create mode 100755 curl/stream/publish/publishAMessage.sh create mode 100755 curl/stream/subscribe/subscribeToATopic.sh create mode 100755 curl/sunnah/books/getTheBooksWithinACollection.sh create mode 100755 curl/sunnah/chapters/listTheChaptersInABook.sh create mode 100755 curl/sunnah/collections/listAvailableCollections.sh create mode 100755 curl/sunnah/hadiths/listTheHadithsInABook.sh create mode 100755 curl/thumbnail/screenshot/takeScreenshotOfAUrl.sh create mode 100755 curl/time/now/returnsCurrentTimeOptionallyWithLocation.sh create mode 100755 curl/time/zone/getTheTimezoneInfoForASpecificLocation.sh create mode 100755 curl/twitter/search/searchForTweets.sh create mode 100755 curl/twitter/timeline/getATwitterTimeline.sh create mode 100755 curl/twitter/trends/getTheCurrentGlobalTrendingTopics.sh create mode 100755 curl/twitter/user/getAUsersTwitterProfile.sh create mode 100755 curl/url/list/listYourShortenedUrls.sh create mode 100755 curl/url/proxy/resolveAShortUrlToALongDestinationUrl.sh create mode 100755 curl/url/shorten/shortenALongUrl.sh create mode 100755 curl/user/create/createAnAccount.sh create mode 100755 curl/user/delete/deleteUserAccount.sh create mode 100755 curl/user/login/logAUserIn.sh create mode 100755 curl/user/logout/logAUserOut.sh create mode 100755 curl/user/read/readAccountByEmail.sh create mode 100755 curl/user/read/readAccountByUsernameOrEmail.sh create mode 100755 curl/user/read/readAnAccountById.sh create mode 100755 curl/user/readSession/readASessionByTheSessionId.sh create mode 100755 curl/user/sendVerificationEmail/sendVerificationEmail.sh create mode 100755 curl/user/update/updateAnAccount.sh create mode 100755 curl/user/updatePassword/updateTheAccountPassword.sh create mode 100755 curl/user/verifyEmail/verifyEmail.sh create mode 100755 curl/vehicle/lookup/lookupVehicle.sh create mode 100755 curl/weather/forecast/forecastWeather.sh create mode 100755 curl/weather/now/getCurrentWeather.sh create mode 100755 curl/youtube/search/searchForVideos.sh diff --git a/curl/address/lookupPostcode/lookupPostcode.sh b/curl/address/lookupPostcode/lookupPostcode.sh new file mode 100755 index 0000000..3984675 --- /dev/null +++ b/curl/address/lookupPostcode/lookupPostcode.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/address/LookupPostcode" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "postcode": "SW1A 2AA" +}' \ No newline at end of file diff --git a/curl/answer/question/askAQuestion.sh b/curl/answer/question/askAQuestion.sh new file mode 100755 index 0000000..2c9398e --- /dev/null +++ b/curl/answer/question/askAQuestion.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/answer/Question" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "query": "microsoft" +}' \ No newline at end of file diff --git a/curl/cache/decrement/decrementAValue.sh b/curl/cache/decrement/decrementAValue.sh new file mode 100755 index 0000000..5a5c847 --- /dev/null +++ b/curl/cache/decrement/decrementAValue.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/cache/Decrement" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "key": "counter", + "value": 2 +}' \ No newline at end of file diff --git a/curl/cache/delete/deleteAValue.sh b/curl/cache/delete/deleteAValue.sh new file mode 100755 index 0000000..0c4053f --- /dev/null +++ b/curl/cache/delete/deleteAValue.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/cache/Delete" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "key": "foo" +}' \ No newline at end of file diff --git a/curl/cache/get/getAValue.sh b/curl/cache/get/getAValue.sh new file mode 100755 index 0000000..ea7b169 --- /dev/null +++ b/curl/cache/get/getAValue.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/cache/Get" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "key": "foo" +}' \ No newline at end of file diff --git a/curl/cache/increment/incrementAValue.sh b/curl/cache/increment/incrementAValue.sh new file mode 100755 index 0000000..df9d07a --- /dev/null +++ b/curl/cache/increment/incrementAValue.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/cache/Increment" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "key": "counter", + "value": 2 +}' \ No newline at end of file diff --git a/curl/cache/set/setAValue.sh b/curl/cache/set/setAValue.sh new file mode 100755 index 0000000..835b90b --- /dev/null +++ b/curl/cache/set/setAValue.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/cache/Set" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "key": "foo", + "value": "bar" +}' \ No newline at end of file diff --git a/curl/crypto/history/getPreviousClose.sh b/curl/crypto/history/getPreviousClose.sh new file mode 100755 index 0000000..8f4b889 --- /dev/null +++ b/curl/crypto/history/getPreviousClose.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/crypto/History" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "BTCUSD" +}' \ No newline at end of file diff --git a/curl/crypto/news/getCryptocurrencyNews.sh b/curl/crypto/news/getCryptocurrencyNews.sh new file mode 100755 index 0000000..93ebff5 --- /dev/null +++ b/curl/crypto/news/getCryptocurrencyNews.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/crypto/News" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "BTCUSD" +}' \ No newline at end of file diff --git a/curl/crypto/price/getCryptocurrencyPrice.sh b/curl/crypto/price/getCryptocurrencyPrice.sh new file mode 100755 index 0000000..33fb7fe --- /dev/null +++ b/curl/crypto/price/getCryptocurrencyPrice.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/crypto/Price" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "BTCUSD" +}' \ No newline at end of file diff --git a/curl/crypto/quote/getACryptocurrencyQuote.sh b/curl/crypto/quote/getACryptocurrencyQuote.sh new file mode 100755 index 0000000..8cf825c --- /dev/null +++ b/curl/crypto/quote/getACryptocurrencyQuote.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/crypto/Quote" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "BTCUSD" +}' \ No newline at end of file diff --git a/curl/currency/codes/getSupportedCodes.sh b/curl/currency/codes/getSupportedCodes.sh new file mode 100755 index 0000000..371ba8b --- /dev/null +++ b/curl/currency/codes/getSupportedCodes.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/currency/Codes" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/currency/convert/convert10UsdToGbp.sh b/curl/currency/convert/convert10UsdToGbp.sh new file mode 100755 index 0000000..0688d8c --- /dev/null +++ b/curl/currency/convert/convert10UsdToGbp.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/currency/Convert" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "amount": 10, + "from": "USD", + "to": "GBP" +}' \ No newline at end of file diff --git a/curl/currency/convert/convertUsdToGbp.sh b/curl/currency/convert/convertUsdToGbp.sh new file mode 100755 index 0000000..b864573 --- /dev/null +++ b/curl/currency/convert/convertUsdToGbp.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/currency/Convert" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "from": "USD", + "to": "GBP" +}' \ No newline at end of file diff --git a/curl/currency/history/historicRatesForACurrency.sh b/curl/currency/history/historicRatesForACurrency.sh new file mode 100755 index 0000000..190f185 --- /dev/null +++ b/curl/currency/history/historicRatesForACurrency.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/currency/History" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "code": "USD", + "date": "2021-05-30" +}' \ No newline at end of file diff --git a/curl/currency/rates/getRatesForUsd.sh b/curl/currency/rates/getRatesForUsd.sh new file mode 100755 index 0000000..995c5f1 --- /dev/null +++ b/curl/currency/rates/getRatesForUsd.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/currency/Rates" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "code": "USD" +}' \ No newline at end of file diff --git a/curl/db/count/countEntriesInATable.sh b/curl/db/count/countEntriesInATable.sh new file mode 100755 index 0000000..fdd2bfb --- /dev/null +++ b/curl/db/count/countEntriesInATable.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/db/Count" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "table": "users" +}' \ No newline at end of file diff --git a/curl/db/create/createARecord.sh b/curl/db/create/createARecord.sh new file mode 100755 index 0000000..47cabf2 --- /dev/null +++ b/curl/db/create/createARecord.sh @@ -0,0 +1,12 @@ +curl "https://api.m3o.com/v1/db/Create" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "record": { + "age": 42, + "id": "1", + "isActive": true, + "name": "Jane" + }, + "table": "users" +}' \ No newline at end of file diff --git a/curl/db/delete/deleteARecord.sh b/curl/db/delete/deleteARecord.sh new file mode 100755 index 0000000..ef6abf1 --- /dev/null +++ b/curl/db/delete/deleteARecord.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/db/Delete" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "id": "1", + "table": "users" +}' \ No newline at end of file diff --git a/curl/db/read/readRecords.sh b/curl/db/read/readRecords.sh new file mode 100755 index 0000000..8a737ed --- /dev/null +++ b/curl/db/read/readRecords.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/db/Read" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "query": "age == 43", + "table": "users" +}' \ No newline at end of file diff --git a/curl/db/truncate/truncateTable.sh b/curl/db/truncate/truncateTable.sh new file mode 100755 index 0000000..b0d5d40 --- /dev/null +++ b/curl/db/truncate/truncateTable.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/db/Truncate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "table": "users" +}' \ No newline at end of file diff --git a/curl/db/update/updateARecord.sh b/curl/db/update/updateARecord.sh new file mode 100755 index 0000000..c278560 --- /dev/null +++ b/curl/db/update/updateARecord.sh @@ -0,0 +1,10 @@ +curl "https://api.m3o.com/v1/db/Update" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "record": { + "age": 43, + "id": "1" + }, + "table": "users" +}' \ No newline at end of file diff --git a/curl/email/send/sendEmail.sh b/curl/email/send/sendEmail.sh new file mode 100755 index 0000000..9a3a5f8 --- /dev/null +++ b/curl/email/send/sendEmail.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/email/Send" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "from": "Awesome Dot Com", + "subject": "Email verification", + "textBody": "Hi there,\n\nPlease verify your email by clicking this link: $micro_verification_link" +}' \ No newline at end of file diff --git a/curl/emoji/find/findEmoji.sh b/curl/emoji/find/findEmoji.sh new file mode 100755 index 0000000..df8d0b8 --- /dev/null +++ b/curl/emoji/find/findEmoji.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/emoji/Find" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "alias": ":beer:" +}' \ No newline at end of file diff --git a/curl/emoji/flag/getFlagByCountryCode.sh b/curl/emoji/flag/getFlagByCountryCode.sh new file mode 100755 index 0000000..d72fcbd --- /dev/null +++ b/curl/emoji/flag/getFlagByCountryCode.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/emoji/Flag" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "alias": "GB" +}' \ No newline at end of file diff --git a/curl/emoji/print/printTextIncludingEmoji.sh b/curl/emoji/print/printTextIncludingEmoji.sh new file mode 100755 index 0000000..0fb4f86 --- /dev/null +++ b/curl/emoji/print/printTextIncludingEmoji.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/emoji/Print" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "text": "let's grab a :beer:" +}' \ No newline at end of file diff --git a/curl/emoji/send/sendATextContainingAnEmojiToAnyoneViaSms.sh b/curl/emoji/send/sendATextContainingAnEmojiToAnyoneViaSms.sh new file mode 100755 index 0000000..8315b6e --- /dev/null +++ b/curl/emoji/send/sendATextContainingAnEmojiToAnyoneViaSms.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/emoji/Send" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "from": "Alice", + "message": "let's grab a :beer:", + "to": "+44782669123" +}' \ No newline at end of file diff --git a/curl/evchargers/referenceData/getReferenceData.sh b/curl/evchargers/referenceData/getReferenceData.sh new file mode 100755 index 0000000..77dd008 --- /dev/null +++ b/curl/evchargers/referenceData/getReferenceData.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/evchargers/ReferenceData" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/evchargers/search/searchByBoundingBox.sh b/curl/evchargers/search/searchByBoundingBox.sh new file mode 100755 index 0000000..8825fb6 --- /dev/null +++ b/curl/evchargers/search/searchByBoundingBox.sh @@ -0,0 +1,16 @@ +curl "https://api.m3o.com/v1/evchargers/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "box": { + "bottom_left": { + "latitude": 51.52627543859447, + "longitude": -0.03635349400295168 + }, + "top_right": { + "latitude": 51.56717121807993, + "longitude": -0.002293530559768285 + } + }, + "max_results": 2 +}' \ No newline at end of file diff --git a/curl/evchargers/search/searchByLocation.sh b/curl/evchargers/search/searchByLocation.sh new file mode 100755 index 0000000..1eac241 --- /dev/null +++ b/curl/evchargers/search/searchByLocation.sh @@ -0,0 +1,11 @@ +curl "https://api.m3o.com/v1/evchargers/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "distance": 2000, + "location": { + "latitude": 51.53336351319885, + "longitude": -0.0252 + }, + "max_results": 2 +}' \ No newline at end of file diff --git a/curl/evchargers/search/searchWithFiltersFastChargersOnly.sh b/curl/evchargers/search/searchWithFiltersFastChargersOnly.sh new file mode 100755 index 0000000..2e0d7f3 --- /dev/null +++ b/curl/evchargers/search/searchWithFiltersFastChargersOnly.sh @@ -0,0 +1,14 @@ +curl "https://api.m3o.com/v1/evchargers/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "distance": 2000, + "levels": [ + "3" + ], + "location": { + "latitude": 51.53336351319885, + "longitude": -0.0252 + }, + "max_results": 2 +}' \ No newline at end of file diff --git a/curl/file/delete/deleteFile.sh b/curl/file/delete/deleteFile.sh new file mode 100755 index 0000000..5271a16 --- /dev/null +++ b/curl/file/delete/deleteFile.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/file/Delete" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "path": "/document/text-files/file.txt", + "project": "examples" +}' \ No newline at end of file diff --git a/curl/file/list/listFiles.sh b/curl/file/list/listFiles.sh new file mode 100755 index 0000000..5334e3c --- /dev/null +++ b/curl/file/list/listFiles.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/file/List" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "project": "examples" +}' \ No newline at end of file diff --git a/curl/file/read/readFile.sh b/curl/file/read/readFile.sh new file mode 100755 index 0000000..f05bc34 --- /dev/null +++ b/curl/file/read/readFile.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/file/Read" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "path": "/document/text-files/file.txt", + "project": "examples" +}' \ No newline at end of file diff --git a/curl/file/save/saveFile.sh b/curl/file/save/saveFile.sh new file mode 100755 index 0000000..06d7cea --- /dev/null +++ b/curl/file/save/saveFile.sh @@ -0,0 +1,10 @@ +curl "https://api.m3o.com/v1/file/Save" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "file": { + "content": "file content example", + "path": "/document/text-files/file.txt", + "project": "examples" + } +}' \ No newline at end of file diff --git a/curl/forex/history/getPreviousClose.sh b/curl/forex/history/getPreviousClose.sh new file mode 100755 index 0000000..1c17cb9 --- /dev/null +++ b/curl/forex/history/getPreviousClose.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/forex/History" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "GBPUSD" +}' \ No newline at end of file diff --git a/curl/forex/price/getAnFxPrice.sh b/curl/forex/price/getAnFxPrice.sh new file mode 100755 index 0000000..5f4cbdc --- /dev/null +++ b/curl/forex/price/getAnFxPrice.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/forex/Price" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "GBPUSD" +}' \ No newline at end of file diff --git a/curl/forex/quote/getAFxQuote.sh b/curl/forex/quote/getAFxQuote.sh new file mode 100755 index 0000000..f0c2b34 --- /dev/null +++ b/curl/forex/quote/getAFxQuote.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/forex/Quote" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "GBPUSD" +}' \ No newline at end of file diff --git a/curl/function/call/callAFunction.sh b/curl/function/call/callAFunction.sh new file mode 100755 index 0000000..e43e649 --- /dev/null +++ b/curl/function/call/callAFunction.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/function/Call" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "my-first-func", + "request": {} +}' \ No newline at end of file diff --git a/curl/function/delete/deleteAFunction.sh b/curl/function/delete/deleteAFunction.sh new file mode 100755 index 0000000..1c0e5fe --- /dev/null +++ b/curl/function/delete/deleteAFunction.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/function/Delete" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "my-first-func", + "project": "tests" +}' \ No newline at end of file diff --git a/curl/function/deploy/deployAFunction.sh b/curl/function/deploy/deployAFunction.sh new file mode 100755 index 0000000..2c76511 --- /dev/null +++ b/curl/function/deploy/deployAFunction.sh @@ -0,0 +1,10 @@ +curl "https://api.m3o.com/v1/function/Deploy" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "entrypoint": "helloworld", + "name": "my-first-func", + "project": "tests", + "repo": "github.com/m3o/nodejs-function-example", + "runtime": "nodejs14" +}' \ No newline at end of file diff --git a/curl/function/describe/describeFunctionStatus.sh b/curl/function/describe/describeFunctionStatus.sh new file mode 100755 index 0000000..343e190 --- /dev/null +++ b/curl/function/describe/describeFunctionStatus.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/function/Describe" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "my-first-func", + "project": "tests" +}' \ No newline at end of file diff --git a/curl/function/list/listFunctions.sh b/curl/function/list/listFunctions.sh new file mode 100755 index 0000000..2098fa7 --- /dev/null +++ b/curl/function/list/listFunctions.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/function/List" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/geocoding/lookup/geocodeAnAddress.sh b/curl/geocoding/lookup/geocodeAnAddress.sh new file mode 100755 index 0000000..8c049cc --- /dev/null +++ b/curl/geocoding/lookup/geocodeAnAddress.sh @@ -0,0 +1,9 @@ +curl "https://api.m3o.com/v1/geocoding/Lookup" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "address": "10 russell st", + "city": "london", + "country": "uk", + "postcode": "wc2b" +}' \ No newline at end of file diff --git a/curl/geocoding/reverse/reverseGeocodeLocation.sh b/curl/geocoding/reverse/reverseGeocodeLocation.sh new file mode 100755 index 0000000..cbf53d1 --- /dev/null +++ b/curl/geocoding/reverse/reverseGeocodeLocation.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/geocoding/Reverse" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "latitude": 51.5123064, + "longitude": -0.1216235 +}' \ No newline at end of file diff --git a/curl/gifs/search/search.sh b/curl/gifs/search/search.sh new file mode 100755 index 0000000..32ca349 --- /dev/null +++ b/curl/gifs/search/search.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/gifs/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "limit": 2, + "query": "dogs" +}' \ No newline at end of file diff --git a/curl/google/search/searchForVideos.sh b/curl/google/search/searchForVideos.sh new file mode 100755 index 0000000..d94ed1f --- /dev/null +++ b/curl/google/search/searchForVideos.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/google/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "query": "how to make donuts" +}' \ No newline at end of file diff --git a/curl/helloworld/call/callTheHelloworldService.sh b/curl/helloworld/call/callTheHelloworldService.sh new file mode 100755 index 0000000..ca20515 --- /dev/null +++ b/curl/helloworld/call/callTheHelloworldService.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/helloworld/Call" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "John" +}' \ No newline at end of file diff --git a/curl/helloworld/stream/streamsAreCurrentlyTemporarilyNotSupportedInClients.sh b/curl/helloworld/stream/streamsAreCurrentlyTemporarilyNotSupportedInClients.sh new file mode 100755 index 0000000..9d20e8b --- /dev/null +++ b/curl/helloworld/stream/streamsAreCurrentlyTemporarilyNotSupportedInClients.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/helloworld/Stream" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "not supported" +}' \ No newline at end of file diff --git a/curl/holidays/countries/listCountries.sh b/curl/holidays/countries/listCountries.sh new file mode 100755 index 0000000..ffe9084 --- /dev/null +++ b/curl/holidays/countries/listCountries.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/holidays/Countries" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/holidays/list/getHolidays.sh b/curl/holidays/list/getHolidays.sh new file mode 100755 index 0000000..4525b8a --- /dev/null +++ b/curl/holidays/list/getHolidays.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/holidays/List" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "country_code": "GB", + "year": 2022 +}' \ No newline at end of file diff --git a/curl/id/generate/generateABigflakeId.sh b/curl/id/generate/generateABigflakeId.sh new file mode 100755 index 0000000..51ad213 --- /dev/null +++ b/curl/id/generate/generateABigflakeId.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/id/Generate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "type": "bigflake" +}' \ No newline at end of file diff --git a/curl/id/generate/generateAShortId.sh b/curl/id/generate/generateAShortId.sh new file mode 100755 index 0000000..44024ee --- /dev/null +++ b/curl/id/generate/generateAShortId.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/id/Generate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "type": "shortid" +}' \ No newline at end of file diff --git a/curl/id/generate/generateASnowflakeId.sh b/curl/id/generate/generateASnowflakeId.sh new file mode 100755 index 0000000..8ff3d1c --- /dev/null +++ b/curl/id/generate/generateASnowflakeId.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/id/Generate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "type": "snowflake" +}' \ No newline at end of file diff --git a/curl/id/generate/generateAUniqueId.sh b/curl/id/generate/generateAUniqueId.sh new file mode 100755 index 0000000..655c66e --- /dev/null +++ b/curl/id/generate/generateAUniqueId.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/id/Generate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "type": "uuid" +}' \ No newline at end of file diff --git a/curl/id/types/listTheTypesOfIdsAvailable.sh b/curl/id/types/listTheTypesOfIdsAvailable.sh new file mode 100755 index 0000000..3cb1403 --- /dev/null +++ b/curl/id/types/listTheTypesOfIdsAvailable.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/id/Types" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/image/convert/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh b/curl/image/convert/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh new file mode 100755 index 0000000..2558e38 --- /dev/null +++ b/curl/image/convert/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/image/Convert" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "cat.jpeg", + "outputURL": true, + "url": "somewebsite.com/cat.png" +}' \ No newline at end of file diff --git a/curl/image/resize/base64ToBase64Image.sh b/curl/image/resize/base64ToBase64Image.sh new file mode 100755 index 0000000..b4a5a61 --- /dev/null +++ b/curl/image/resize/base64ToBase64Image.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/image/Resize" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "base64": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", + "height": 100, + "width": 100 +}' \ No newline at end of file diff --git a/curl/image/resize/base64ToBase64ImageWithCropping.sh b/curl/image/resize/base64ToBase64ImageWithCropping.sh new file mode 100755 index 0000000..59e3ec5 --- /dev/null +++ b/curl/image/resize/base64ToBase64ImageWithCropping.sh @@ -0,0 +1,12 @@ +curl "https://api.m3o.com/v1/image/Resize" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "base64": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", + "cropOptions": { + "height": 50, + "width": 50 + }, + "height": 100, + "width": 100 +}' \ No newline at end of file diff --git a/curl/image/resize/base64ToHostedImage.sh b/curl/image/resize/base64ToHostedImage.sh new file mode 100755 index 0000000..3068e91 --- /dev/null +++ b/curl/image/resize/base64ToHostedImage.sh @@ -0,0 +1,10 @@ +curl "https://api.m3o.com/v1/image/Resize" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "base64": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", + "height": 100, + "name": "cat.png", + "outputURL": true, + "width": 100 +}' \ No newline at end of file diff --git a/curl/image/upload/uploadABase64ImageToMicrosCdn.sh b/curl/image/upload/uploadABase64ImageToMicrosCdn.sh new file mode 100755 index 0000000..fda7f2f --- /dev/null +++ b/curl/image/upload/uploadABase64ImageToMicrosCdn.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/image/Upload" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "base64": "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAx0lEQVR4nOzaMaoDMQyE4ZHj+x82vVdhwQoTkzKQEcwP5r0ihT7sbjUTeAJ4HCegXQJYfOYefOyjDuBiz3yjwJBoCIl6QZOeUjTC1Ix1IxEJXF9+0KWsf2bD4bn37OO/c/wuQ9QyRC1D1DJELUPUMkQtQ9QyRC1D1DJELUPUMkQtQ9QyRC1D1DJELUPUMkQtQ9Sa/NG94Tf3j4WBdaxudMEkn4IM2rZBA0wBrvo7aOcpj2emXvLeVt0IGm0GVXUj91mvAAAA//+V2CZl+4AKXwAAAABJRU5ErkJggg==", + "name": "cat.jpeg", + "outputURL": true +}' \ No newline at end of file diff --git a/curl/image/upload/uploadAnImageFromAUrlToMicrosCdn.sh b/curl/image/upload/uploadAnImageFromAUrlToMicrosCdn.sh new file mode 100755 index 0000000..141a821 --- /dev/null +++ b/curl/image/upload/uploadAnImageFromAUrlToMicrosCdn.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/image/Upload" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "cat.jpeg", + "url": "somewebsite.com/cat.png" +}' \ No newline at end of file diff --git a/curl/ip/lookup/lookupIpInfo.sh b/curl/ip/lookup/lookupIpInfo.sh new file mode 100755 index 0000000..d19117f --- /dev/null +++ b/curl/ip/lookup/lookupIpInfo.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/ip/Lookup" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "ip": "93.148.214.31" +}' \ No newline at end of file diff --git a/curl/location/read/getLocationById.sh b/curl/location/read/getLocationById.sh new file mode 100755 index 0000000..5c6fa35 --- /dev/null +++ b/curl/location/read/getLocationById.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/location/Read" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "id": "1" +}' \ No newline at end of file diff --git a/curl/location/save/saveAnEntity.sh b/curl/location/save/saveAnEntity.sh new file mode 100755 index 0000000..0b2f800 --- /dev/null +++ b/curl/location/save/saveAnEntity.sh @@ -0,0 +1,14 @@ +curl "https://api.m3o.com/v1/location/Save" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "entity": { + "id": "1", + "location": { + "latitude": 51.511061, + "longitude": -0.120022, + "timestamp": "1622802761" + }, + "type": "bike" + } +}' \ No newline at end of file diff --git a/curl/location/search/searchForLocations.sh b/curl/location/search/searchForLocations.sh new file mode 100755 index 0000000..1306194 --- /dev/null +++ b/curl/location/search/searchForLocations.sh @@ -0,0 +1,12 @@ +curl "https://api.m3o.com/v1/location/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "center": { + "latitude": 51.511061, + "longitude": -0.120022 + }, + "numEntities": 10, + "radius": 100, + "type": "bike" +}' \ No newline at end of file diff --git a/curl/notes/create/createANote.sh b/curl/notes/create/createANote.sh new file mode 100755 index 0000000..1d88d04 --- /dev/null +++ b/curl/notes/create/createANote.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/notes/Create" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "text": "This is my note", + "title": "New Note" +}' \ No newline at end of file diff --git a/curl/notes/delete/deleteANote.sh b/curl/notes/delete/deleteANote.sh new file mode 100755 index 0000000..9f4a2b0 --- /dev/null +++ b/curl/notes/delete/deleteANote.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/notes/Delete" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "id": "63c0cdf8-2121-11ec-a881-0242e36f037a" +}' \ No newline at end of file diff --git a/curl/notes/list/listAllNotes.sh b/curl/notes/list/listAllNotes.sh new file mode 100755 index 0000000..4920123 --- /dev/null +++ b/curl/notes/list/listAllNotes.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/notes/List" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/notes/read/readANote.sh b/curl/notes/read/readANote.sh new file mode 100755 index 0000000..e334fcf --- /dev/null +++ b/curl/notes/read/readANote.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/notes/Read" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "id": "63c0cdf8-2121-11ec-a881-0242e36f037a" +}' \ No newline at end of file diff --git a/curl/notes/update/updateANote.sh b/curl/notes/update/updateANote.sh new file mode 100755 index 0000000..5ac8a1a --- /dev/null +++ b/curl/notes/update/updateANote.sh @@ -0,0 +1,10 @@ +curl "https://api.m3o.com/v1/notes/Update" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "note": { + "id": "63c0cdf8-2121-11ec-a881-0242e36f037a", + "text": "Updated note text", + "title": "Update Note" + } +}' \ No newline at end of file diff --git a/curl/otp/generate/generateOtp.sh b/curl/otp/generate/generateOtp.sh new file mode 100755 index 0000000..ee473be --- /dev/null +++ b/curl/otp/generate/generateOtp.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/otp/Generate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "id": "asim@example.com" +}' \ No newline at end of file diff --git a/curl/otp/validate/validateOtp.sh b/curl/otp/validate/validateOtp.sh new file mode 100755 index 0000000..5d3831b --- /dev/null +++ b/curl/otp/validate/validateOtp.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/otp/Validate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "code": "656211", + "id": "asim@example.com" +}' \ No newline at end of file diff --git a/curl/postcode/lookup/lookupPostcode.sh b/curl/postcode/lookup/lookupPostcode.sh new file mode 100755 index 0000000..33d2996 --- /dev/null +++ b/curl/postcode/lookup/lookupPostcode.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/postcode/Lookup" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "postcode": "SW1A 2AA" +}' \ No newline at end of file diff --git a/curl/postcode/random/returnARandomPostcodeAndItsInformation.sh b/curl/postcode/random/returnARandomPostcodeAndItsInformation.sh new file mode 100755 index 0000000..a2ad81f --- /dev/null +++ b/curl/postcode/random/returnARandomPostcodeAndItsInformation.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/postcode/Random" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/postcode/validate/returnARandomPostcodeAndItsInformation.sh b/curl/postcode/validate/returnARandomPostcodeAndItsInformation.sh new file mode 100755 index 0000000..a0181c4 --- /dev/null +++ b/curl/postcode/validate/returnARandomPostcodeAndItsInformation.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/postcode/Validate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "postcode": "SW1A 2AA" +}' \ No newline at end of file diff --git a/curl/prayer/times/prayerTimes.sh b/curl/prayer/times/prayerTimes.sh new file mode 100755 index 0000000..bac0de4 --- /dev/null +++ b/curl/prayer/times/prayerTimes.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/prayer/Times" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "location": "london" +}' \ No newline at end of file diff --git a/curl/qr/generate/generateAQrCode.sh b/curl/qr/generate/generateAQrCode.sh new file mode 100755 index 0000000..4aa44ea --- /dev/null +++ b/curl/qr/generate/generateAQrCode.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/qr/Generate" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "size": 300, + "text": "https://m3o.com/qr" +}' \ No newline at end of file diff --git a/curl/quran/chapters/listChapters.sh b/curl/quran/chapters/listChapters.sh new file mode 100755 index 0000000..85cb4b2 --- /dev/null +++ b/curl/quran/chapters/listChapters.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/quran/Chapters" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "language": "en" +}' \ No newline at end of file diff --git a/curl/quran/search/searchTheQuran.sh b/curl/quran/search/searchTheQuran.sh new file mode 100755 index 0000000..146502b --- /dev/null +++ b/curl/quran/search/searchTheQuran.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/quran/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "query": "messenger" +}' \ No newline at end of file diff --git a/curl/quran/summary/getChapterSummary.sh b/curl/quran/summary/getChapterSummary.sh new file mode 100755 index 0000000..8bde0d2 --- /dev/null +++ b/curl/quran/summary/getChapterSummary.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/quran/Summary" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "chapter": 1 +}' \ No newline at end of file diff --git a/curl/quran/verses/getVersesOfAChapter.sh b/curl/quran/verses/getVersesOfAChapter.sh new file mode 100755 index 0000000..06f6bb6 --- /dev/null +++ b/curl/quran/verses/getVersesOfAChapter.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/quran/Verses" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "chapter": 1 +}' \ No newline at end of file diff --git a/curl/routing/directions/turnByTurnDirections.sh b/curl/routing/directions/turnByTurnDirections.sh new file mode 100755 index 0000000..7753a92 --- /dev/null +++ b/curl/routing/directions/turnByTurnDirections.sh @@ -0,0 +1,13 @@ +curl "https://api.m3o.com/v1/routing/Directions" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "destination": { + "latitude": 52.529407, + "longitude": 13.397634 + }, + "origin": { + "latitude": 52.517037, + "longitude": 13.38886 + } +}' \ No newline at end of file diff --git a/curl/routing/eta/etaFromPointAToPointB.sh b/curl/routing/eta/etaFromPointAToPointB.sh new file mode 100755 index 0000000..af4ef51 --- /dev/null +++ b/curl/routing/eta/etaFromPointAToPointB.sh @@ -0,0 +1,13 @@ +curl "https://api.m3o.com/v1/routing/Eta" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "destination": { + "latitude": 52.529407, + "longitude": 13.397634 + }, + "origin": { + "latitude": 52.517037, + "longitude": 13.38886 + } +}' \ No newline at end of file diff --git a/curl/routing/route/gpsPointsForARoute.sh b/curl/routing/route/gpsPointsForARoute.sh new file mode 100755 index 0000000..889a660 --- /dev/null +++ b/curl/routing/route/gpsPointsForARoute.sh @@ -0,0 +1,13 @@ +curl "https://api.m3o.com/v1/routing/Route" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "destination": { + "latitude": 52.529407, + "longitude": 13.397634 + }, + "origin": { + "latitude": 52.517037, + "longitude": 13.38886 + } +}' \ No newline at end of file diff --git a/curl/rss/add/addANewFeed.sh b/curl/rss/add/addANewFeed.sh new file mode 100755 index 0000000..ef8d181 --- /dev/null +++ b/curl/rss/add/addANewFeed.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/rss/Add" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "category": "news", + "name": "bbc", + "url": "http://feeds.bbci.co.uk/news/rss.xml" +}' \ No newline at end of file diff --git a/curl/rss/feed/readAFeed.sh b/curl/rss/feed/readAFeed.sh new file mode 100755 index 0000000..2bae8a1 --- /dev/null +++ b/curl/rss/feed/readAFeed.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/rss/Feed" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "bbc" +}' \ No newline at end of file diff --git a/curl/rss/list/listRssFeeds.sh b/curl/rss/list/listRssFeeds.sh new file mode 100755 index 0000000..3d4635b --- /dev/null +++ b/curl/rss/list/listRssFeeds.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/rss/List" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/rss/remove/removeAFeed.sh b/curl/rss/remove/removeAFeed.sh new file mode 100755 index 0000000..22d3610 --- /dev/null +++ b/curl/rss/remove/removeAFeed.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/rss/Remove" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "name": "bbc" +}' \ No newline at end of file diff --git a/curl/sentiment/analyze/analyzeAPieceOfText.sh b/curl/sentiment/analyze/analyzeAPieceOfText.sh new file mode 100755 index 0000000..17c9e6c --- /dev/null +++ b/curl/sentiment/analyze/analyzeAPieceOfText.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/sentiment/Analyze" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "text": "this is amazing" +}' \ No newline at end of file diff --git a/curl/sms/send/sendSms.sh b/curl/sms/send/sendSms.sh new file mode 100755 index 0000000..f667d6e --- /dev/null +++ b/curl/sms/send/sendSms.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/sms/Send" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "from": "Alice", + "message": "Hi there!", + "to": "+447681129" +}' \ No newline at end of file diff --git a/curl/stock/history/getHistoricData.sh b/curl/stock/history/getHistoricData.sh new file mode 100755 index 0000000..9a17904 --- /dev/null +++ b/curl/stock/history/getHistoricData.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/stock/History" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "date": "2020-10-01", + "stock": "AAPL" +}' \ No newline at end of file diff --git a/curl/stock/orderBook/orderBookHistory.sh b/curl/stock/orderBook/orderBookHistory.sh new file mode 100755 index 0000000..e651c7f --- /dev/null +++ b/curl/stock/orderBook/orderBookHistory.sh @@ -0,0 +1,10 @@ +curl "https://api.m3o.com/v1/stock/OrderBook" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "date": "2020-10-01", + "end": "2020-10-01T11:00:00Z", + "limit": 3, + "start": "2020-10-01T10:00:00Z", + "stock": "AAPL" +}' \ No newline at end of file diff --git a/curl/stock/price/getAStockPrice.sh b/curl/stock/price/getAStockPrice.sh new file mode 100755 index 0000000..23438f4 --- /dev/null +++ b/curl/stock/price/getAStockPrice.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/stock/Price" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "AAPL" +}' \ No newline at end of file diff --git a/curl/stock/quote/getAStockQuote.sh b/curl/stock/quote/getAStockQuote.sh new file mode 100755 index 0000000..b5935dd --- /dev/null +++ b/curl/stock/quote/getAStockQuote.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/stock/Quote" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "symbol": "AAPL" +}' \ No newline at end of file diff --git a/curl/stream/publish/publishAMessage.sh b/curl/stream/publish/publishAMessage.sh new file mode 100755 index 0000000..8e55983 --- /dev/null +++ b/curl/stream/publish/publishAMessage.sh @@ -0,0 +1,11 @@ +curl "https://api.m3o.com/v1/stream/Publish" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "message": { + "id": "1", + "type": "signup", + "user": "john" + }, + "topic": "events" +}' \ No newline at end of file diff --git a/curl/stream/subscribe/subscribeToATopic.sh b/curl/stream/subscribe/subscribeToATopic.sh new file mode 100755 index 0000000..6ad3957 --- /dev/null +++ b/curl/stream/subscribe/subscribeToATopic.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/stream/Subscribe" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "topic": "events" +}' \ No newline at end of file diff --git a/curl/sunnah/books/getTheBooksWithinACollection.sh b/curl/sunnah/books/getTheBooksWithinACollection.sh new file mode 100755 index 0000000..5a53aee --- /dev/null +++ b/curl/sunnah/books/getTheBooksWithinACollection.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/sunnah/Books" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "collection": "bukhari" +}' \ No newline at end of file diff --git a/curl/sunnah/chapters/listTheChaptersInABook.sh b/curl/sunnah/chapters/listTheChaptersInABook.sh new file mode 100755 index 0000000..fa29463 --- /dev/null +++ b/curl/sunnah/chapters/listTheChaptersInABook.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/sunnah/Chapters" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "book": 1, + "collection": "bukhari" +}' \ No newline at end of file diff --git a/curl/sunnah/collections/listAvailableCollections.sh b/curl/sunnah/collections/listAvailableCollections.sh new file mode 100755 index 0000000..1ef6344 --- /dev/null +++ b/curl/sunnah/collections/listAvailableCollections.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/sunnah/Collections" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/sunnah/hadiths/listTheHadithsInABook.sh b/curl/sunnah/hadiths/listTheHadithsInABook.sh new file mode 100755 index 0000000..66834ec --- /dev/null +++ b/curl/sunnah/hadiths/listTheHadithsInABook.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/sunnah/Hadiths" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "book": 1, + "collection": "bukhari" +}' \ No newline at end of file diff --git a/curl/thumbnail/screenshot/takeScreenshotOfAUrl.sh b/curl/thumbnail/screenshot/takeScreenshotOfAUrl.sh new file mode 100755 index 0000000..a391c4c --- /dev/null +++ b/curl/thumbnail/screenshot/takeScreenshotOfAUrl.sh @@ -0,0 +1,8 @@ +curl "https://api.m3o.com/v1/thumbnail/Screenshot" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "height": 600, + "url": "https://m3o.com", + "width": 600 +}' \ No newline at end of file diff --git a/curl/time/now/returnsCurrentTimeOptionallyWithLocation.sh b/curl/time/now/returnsCurrentTimeOptionallyWithLocation.sh new file mode 100755 index 0000000..095f80d --- /dev/null +++ b/curl/time/now/returnsCurrentTimeOptionallyWithLocation.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/time/Now" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/time/zone/getTheTimezoneInfoForASpecificLocation.sh b/curl/time/zone/getTheTimezoneInfoForASpecificLocation.sh new file mode 100755 index 0000000..7a239f6 --- /dev/null +++ b/curl/time/zone/getTheTimezoneInfoForASpecificLocation.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/time/Zone" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "location": "London" +}' \ No newline at end of file diff --git a/curl/twitter/search/searchForTweets.sh b/curl/twitter/search/searchForTweets.sh new file mode 100755 index 0000000..8b179cb --- /dev/null +++ b/curl/twitter/search/searchForTweets.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/twitter/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "query": "cats" +}' \ No newline at end of file diff --git a/curl/twitter/timeline/getATwitterTimeline.sh b/curl/twitter/timeline/getATwitterTimeline.sh new file mode 100755 index 0000000..6bb381f --- /dev/null +++ b/curl/twitter/timeline/getATwitterTimeline.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/twitter/Timeline" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "limit": 1, + "username": "m3oservices" +}' \ No newline at end of file diff --git a/curl/twitter/trends/getTheCurrentGlobalTrendingTopics.sh b/curl/twitter/trends/getTheCurrentGlobalTrendingTopics.sh new file mode 100755 index 0000000..17cd09e --- /dev/null +++ b/curl/twitter/trends/getTheCurrentGlobalTrendingTopics.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/twitter/Trends" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/twitter/user/getAUsersTwitterProfile.sh b/curl/twitter/user/getAUsersTwitterProfile.sh new file mode 100755 index 0000000..042ea38 --- /dev/null +++ b/curl/twitter/user/getAUsersTwitterProfile.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/twitter/User" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "username": "crufter" +}' \ No newline at end of file diff --git a/curl/url/list/listYourShortenedUrls.sh b/curl/url/list/listYourShortenedUrls.sh new file mode 100755 index 0000000..622ca0b --- /dev/null +++ b/curl/url/list/listYourShortenedUrls.sh @@ -0,0 +1,4 @@ +curl "https://api.m3o.com/v1/url/List" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{}' \ No newline at end of file diff --git a/curl/url/proxy/resolveAShortUrlToALongDestinationUrl.sh b/curl/url/proxy/resolveAShortUrlToALongDestinationUrl.sh new file mode 100755 index 0000000..0de09b9 --- /dev/null +++ b/curl/url/proxy/resolveAShortUrlToALongDestinationUrl.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/url/Proxy" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "shortURL": "https://m3o.one/u/ck6SGVkYp" +}' \ No newline at end of file diff --git a/curl/url/shorten/shortenALongUrl.sh b/curl/url/shorten/shortenALongUrl.sh new file mode 100755 index 0000000..cf8e07d --- /dev/null +++ b/curl/url/shorten/shortenALongUrl.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/url/Shorten" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "destinationURL": "https://mysite.com/this-is-a-rather-long-web-address" +}' \ No newline at end of file diff --git a/curl/user/create/createAnAccount.sh b/curl/user/create/createAnAccount.sh new file mode 100755 index 0000000..3490a8c --- /dev/null +++ b/curl/user/create/createAnAccount.sh @@ -0,0 +1,9 @@ +curl "https://api.m3o.com/v1/user/Create" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "email": "joe@example.com", + "id": "usrid-1", + "password": "mySecretPass123", + "username": "usrname-1" +}' \ No newline at end of file diff --git a/curl/user/delete/deleteUserAccount.sh b/curl/user/delete/deleteUserAccount.sh new file mode 100755 index 0000000..02009db --- /dev/null +++ b/curl/user/delete/deleteUserAccount.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/user/Delete" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "id": "fdf34f34f34-f34f34-f43f43f34-f4f34f" +}' \ No newline at end of file diff --git a/curl/user/login/logAUserIn.sh b/curl/user/login/logAUserIn.sh new file mode 100755 index 0000000..592a105 --- /dev/null +++ b/curl/user/login/logAUserIn.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/user/Login" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "email": "joe@example.com", + "password": "mySecretPass123" +}' \ No newline at end of file diff --git a/curl/user/logout/logAUserOut.sh b/curl/user/logout/logAUserOut.sh new file mode 100755 index 0000000..015e898 --- /dev/null +++ b/curl/user/logout/logAUserOut.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/user/Logout" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "sessionId": "sds34s34s34-s34s34-s43s43s34-s4s34s" +}' \ No newline at end of file diff --git a/curl/user/read/readAccountByEmail.sh b/curl/user/read/readAccountByEmail.sh new file mode 100755 index 0000000..b8522c7 --- /dev/null +++ b/curl/user/read/readAccountByEmail.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/user/Read" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "email": "joe@example.com" +}' \ No newline at end of file diff --git a/curl/user/read/readAccountByUsernameOrEmail.sh b/curl/user/read/readAccountByUsernameOrEmail.sh new file mode 100755 index 0000000..a646e15 --- /dev/null +++ b/curl/user/read/readAccountByUsernameOrEmail.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/user/Read" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "username": "usrname-1" +}' \ No newline at end of file diff --git a/curl/user/read/readAnAccountById.sh b/curl/user/read/readAnAccountById.sh new file mode 100755 index 0000000..e229fba --- /dev/null +++ b/curl/user/read/readAnAccountById.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/user/Read" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "id": "usrid-1" +}' \ No newline at end of file diff --git a/curl/user/readSession/readASessionByTheSessionId.sh b/curl/user/readSession/readASessionByTheSessionId.sh new file mode 100755 index 0000000..675d6f3 --- /dev/null +++ b/curl/user/readSession/readASessionByTheSessionId.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/user/ReadSession" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "sessionId": "sds34s34s34-s34s34-s43s43s34-s4s34s" +}' \ No newline at end of file diff --git a/curl/user/sendVerificationEmail/sendVerificationEmail.sh b/curl/user/sendVerificationEmail/sendVerificationEmail.sh new file mode 100755 index 0000000..a6f1006 --- /dev/null +++ b/curl/user/sendVerificationEmail/sendVerificationEmail.sh @@ -0,0 +1,11 @@ +curl "https://api.m3o.com/v1/user/SendVerificationEmail" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "email": "joe@example.com", + "failureRedirectUrl": "https://m3o.com/verification-failed", + "fromName": "Awesome Dot Com", + "redirectUrl": "https://m3o.com", + "subject": "Email verification", + "textContent": "Hi there,\n\nPlease verify your email by clicking this link: $micro_verification_link" +}' \ No newline at end of file diff --git a/curl/user/update/updateAnAccount.sh b/curl/user/update/updateAnAccount.sh new file mode 100755 index 0000000..37c1261 --- /dev/null +++ b/curl/user/update/updateAnAccount.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/user/Update" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "email": "joeotheremail@example.com", + "id": "usrid-1" +}' \ No newline at end of file diff --git a/curl/user/updatePassword/updateTheAccountPassword.sh b/curl/user/updatePassword/updateTheAccountPassword.sh new file mode 100755 index 0000000..70dcadb --- /dev/null +++ b/curl/user/updatePassword/updateTheAccountPassword.sh @@ -0,0 +1,9 @@ +curl "https://api.m3o.com/v1/user/UpdatePassword" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "confirmPassword": "myEvenMoreSecretPass123", + "id": "usrid-1", + "newPassword": "myEvenMoreSecretPass123", + "oldPassword": "mySecretPass123" +}' \ No newline at end of file diff --git a/curl/user/verifyEmail/verifyEmail.sh b/curl/user/verifyEmail/verifyEmail.sh new file mode 100755 index 0000000..267a68e --- /dev/null +++ b/curl/user/verifyEmail/verifyEmail.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/user/VerifyEmail" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "token": "t2323t232t" +}' \ No newline at end of file diff --git a/curl/vehicle/lookup/lookupVehicle.sh b/curl/vehicle/lookup/lookupVehicle.sh new file mode 100755 index 0000000..a283998 --- /dev/null +++ b/curl/vehicle/lookup/lookupVehicle.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/vehicle/Lookup" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "registration": "LC60OTA" +}' \ No newline at end of file diff --git a/curl/weather/forecast/forecastWeather.sh b/curl/weather/forecast/forecastWeather.sh new file mode 100755 index 0000000..7a9f6f0 --- /dev/null +++ b/curl/weather/forecast/forecastWeather.sh @@ -0,0 +1,7 @@ +curl "https://api.m3o.com/v1/weather/Forecast" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "days": 2, + "location": "London" +}' \ No newline at end of file diff --git a/curl/weather/now/getCurrentWeather.sh b/curl/weather/now/getCurrentWeather.sh new file mode 100755 index 0000000..ecb01ed --- /dev/null +++ b/curl/weather/now/getCurrentWeather.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/weather/Now" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "location": "london" +}' \ No newline at end of file diff --git a/curl/youtube/search/searchForVideos.sh b/curl/youtube/search/searchForVideos.sh new file mode 100755 index 0000000..fb4532d --- /dev/null +++ b/curl/youtube/search/searchForVideos.sh @@ -0,0 +1,6 @@ +curl "https://api.m3o.com/v1/youtube/Search" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer $M3O_API_TOKEN" \ +-d '{ + "query": "donuts" +}' \ No newline at end of file