mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-16 12:44:33 +00:00
Commit from m3o/m3o action
This commit is contained in:
6
curl/address/lookupPostcode/lookupPostcode.sh
Executable file
6
curl/address/lookupPostcode/lookupPostcode.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/answer/question/askAQuestion.sh
Executable file
6
curl/answer/question/askAQuestion.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/cache/decrement/decrementAValue.sh
vendored
Executable file
7
curl/cache/decrement/decrementAValue.sh
vendored
Executable file
@@ -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
|
||||
}'
|
||||
6
curl/cache/delete/deleteAValue.sh
vendored
Executable file
6
curl/cache/delete/deleteAValue.sh
vendored
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/cache/get/getAValue.sh
vendored
Executable file
6
curl/cache/get/getAValue.sh
vendored
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/cache/increment/incrementAValue.sh
vendored
Executable file
7
curl/cache/increment/incrementAValue.sh
vendored
Executable file
@@ -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
|
||||
}'
|
||||
7
curl/cache/set/setAValue.sh
vendored
Executable file
7
curl/cache/set/setAValue.sh
vendored
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/crypto/history/getPreviousClose.sh
Executable file
6
curl/crypto/history/getPreviousClose.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/crypto/news/getCryptocurrencyNews.sh
Executable file
6
curl/crypto/news/getCryptocurrencyNews.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/crypto/price/getCryptocurrencyPrice.sh
Executable file
6
curl/crypto/price/getCryptocurrencyPrice.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/crypto/quote/getACryptocurrencyQuote.sh
Executable file
6
curl/crypto/quote/getACryptocurrencyQuote.sh
Executable file
@@ -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"
|
||||
}'
|
||||
4
curl/currency/codes/getSupportedCodes.sh
Executable file
4
curl/currency/codes/getSupportedCodes.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/currency/Codes" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
8
curl/currency/convert/convert10UsdToGbp.sh
Executable file
8
curl/currency/convert/convert10UsdToGbp.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/currency/convert/convertUsdToGbp.sh
Executable file
7
curl/currency/convert/convertUsdToGbp.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/currency/history/historicRatesForACurrency.sh
Executable file
7
curl/currency/history/historicRatesForACurrency.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/currency/rates/getRatesForUsd.sh
Executable file
6
curl/currency/rates/getRatesForUsd.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/db/count/countEntriesInATable.sh
Executable file
6
curl/db/count/countEntriesInATable.sh
Executable file
@@ -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"
|
||||
}'
|
||||
12
curl/db/create/createARecord.sh
Executable file
12
curl/db/create/createARecord.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/db/delete/deleteARecord.sh
Executable file
7
curl/db/delete/deleteARecord.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/db/read/readRecords.sh
Executable file
7
curl/db/read/readRecords.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/db/truncate/truncateTable.sh
Executable file
6
curl/db/truncate/truncateTable.sh
Executable file
@@ -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"
|
||||
}'
|
||||
10
curl/db/update/updateARecord.sh
Executable file
10
curl/db/update/updateARecord.sh
Executable file
@@ -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"
|
||||
}'
|
||||
8
curl/email/send/sendEmail.sh
Executable file
8
curl/email/send/sendEmail.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/emoji/find/findEmoji.sh
Executable file
6
curl/emoji/find/findEmoji.sh
Executable file
@@ -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:"
|
||||
}'
|
||||
6
curl/emoji/flag/getFlagByCountryCode.sh
Executable file
6
curl/emoji/flag/getFlagByCountryCode.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/emoji/print/printTextIncludingEmoji.sh
Executable file
6
curl/emoji/print/printTextIncludingEmoji.sh
Executable file
@@ -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:"
|
||||
}'
|
||||
8
curl/emoji/send/sendATextContainingAnEmojiToAnyoneViaSms.sh
Executable file
8
curl/emoji/send/sendATextContainingAnEmojiToAnyoneViaSms.sh
Executable file
@@ -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"
|
||||
}'
|
||||
4
curl/evchargers/referenceData/getReferenceData.sh
Executable file
4
curl/evchargers/referenceData/getReferenceData.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/evchargers/ReferenceData" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
16
curl/evchargers/search/searchByBoundingBox.sh
Executable file
16
curl/evchargers/search/searchByBoundingBox.sh
Executable file
@@ -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
|
||||
}'
|
||||
11
curl/evchargers/search/searchByLocation.sh
Executable file
11
curl/evchargers/search/searchByLocation.sh
Executable file
@@ -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
|
||||
}'
|
||||
14
curl/evchargers/search/searchWithFiltersFastChargersOnly.sh
Executable file
14
curl/evchargers/search/searchWithFiltersFastChargersOnly.sh
Executable file
@@ -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
|
||||
}'
|
||||
7
curl/file/delete/deleteFile.sh
Executable file
7
curl/file/delete/deleteFile.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/file/list/listFiles.sh
Executable file
6
curl/file/list/listFiles.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/file/read/readFile.sh
Executable file
7
curl/file/read/readFile.sh
Executable file
@@ -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"
|
||||
}'
|
||||
10
curl/file/save/saveFile.sh
Executable file
10
curl/file/save/saveFile.sh
Executable file
@@ -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"
|
||||
}
|
||||
}'
|
||||
6
curl/forex/history/getPreviousClose.sh
Executable file
6
curl/forex/history/getPreviousClose.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/forex/price/getAnFxPrice.sh
Executable file
6
curl/forex/price/getAnFxPrice.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/forex/quote/getAFxQuote.sh
Executable file
6
curl/forex/quote/getAFxQuote.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/function/call/callAFunction.sh
Executable file
7
curl/function/call/callAFunction.sh
Executable file
@@ -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": {}
|
||||
}'
|
||||
7
curl/function/delete/deleteAFunction.sh
Executable file
7
curl/function/delete/deleteAFunction.sh
Executable file
@@ -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"
|
||||
}'
|
||||
10
curl/function/deploy/deployAFunction.sh
Executable file
10
curl/function/deploy/deployAFunction.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/function/describe/describeFunctionStatus.sh
Executable file
7
curl/function/describe/describeFunctionStatus.sh
Executable file
@@ -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"
|
||||
}'
|
||||
4
curl/function/list/listFunctions.sh
Executable file
4
curl/function/list/listFunctions.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/function/List" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
9
curl/geocoding/lookup/geocodeAnAddress.sh
Executable file
9
curl/geocoding/lookup/geocodeAnAddress.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/geocoding/reverse/reverseGeocodeLocation.sh
Executable file
7
curl/geocoding/reverse/reverseGeocodeLocation.sh
Executable file
@@ -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
|
||||
}'
|
||||
7
curl/gifs/search/search.sh
Executable file
7
curl/gifs/search/search.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/google/search/searchForVideos.sh
Executable file
6
curl/google/search/searchForVideos.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/helloworld/call/callTheHelloworldService.sh
Executable file
6
curl/helloworld/call/callTheHelloworldService.sh
Executable file
@@ -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"
|
||||
}'
|
||||
@@ -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"
|
||||
}'
|
||||
4
curl/holidays/countries/listCountries.sh
Executable file
4
curl/holidays/countries/listCountries.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/holidays/Countries" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
7
curl/holidays/list/getHolidays.sh
Executable file
7
curl/holidays/list/getHolidays.sh
Executable file
@@ -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
|
||||
}'
|
||||
6
curl/id/generate/generateABigflakeId.sh
Executable file
6
curl/id/generate/generateABigflakeId.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/id/generate/generateAShortId.sh
Executable file
6
curl/id/generate/generateAShortId.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/id/generate/generateASnowflakeId.sh
Executable file
6
curl/id/generate/generateASnowflakeId.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/id/generate/generateAUniqueId.sh
Executable file
6
curl/id/generate/generateAUniqueId.sh
Executable file
@@ -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"
|
||||
}'
|
||||
4
curl/id/types/listTheTypesOfIdsAvailable.sh
Executable file
4
curl/id/types/listTheTypesOfIdsAvailable.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/id/Types" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
@@ -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"
|
||||
}'
|
||||
8
curl/image/resize/base64ToBase64Image.sh
Executable file
8
curl/image/resize/base64ToBase64Image.sh
Executable file
@@ -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
|
||||
}'
|
||||
12
curl/image/resize/base64ToBase64ImageWithCropping.sh
Executable file
12
curl/image/resize/base64ToBase64ImageWithCropping.sh
Executable file
@@ -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
|
||||
}'
|
||||
10
curl/image/resize/base64ToHostedImage.sh
Executable file
10
curl/image/resize/base64ToHostedImage.sh
Executable file
@@ -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
|
||||
}'
|
||||
8
curl/image/upload/uploadABase64ImageToMicrosCdn.sh
Executable file
8
curl/image/upload/uploadABase64ImageToMicrosCdn.sh
Executable file
@@ -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
|
||||
}'
|
||||
7
curl/image/upload/uploadAnImageFromAUrlToMicrosCdn.sh
Executable file
7
curl/image/upload/uploadAnImageFromAUrlToMicrosCdn.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/ip/lookup/lookupIpInfo.sh
Executable file
6
curl/ip/lookup/lookupIpInfo.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/location/read/getLocationById.sh
Executable file
6
curl/location/read/getLocationById.sh
Executable file
@@ -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"
|
||||
}'
|
||||
14
curl/location/save/saveAnEntity.sh
Executable file
14
curl/location/save/saveAnEntity.sh
Executable file
@@ -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"
|
||||
}
|
||||
}'
|
||||
12
curl/location/search/searchForLocations.sh
Executable file
12
curl/location/search/searchForLocations.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/notes/create/createANote.sh
Executable file
7
curl/notes/create/createANote.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/notes/delete/deleteANote.sh
Executable file
6
curl/notes/delete/deleteANote.sh
Executable file
@@ -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"
|
||||
}'
|
||||
4
curl/notes/list/listAllNotes.sh
Executable file
4
curl/notes/list/listAllNotes.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/notes/List" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
6
curl/notes/read/readANote.sh
Executable file
6
curl/notes/read/readANote.sh
Executable file
@@ -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"
|
||||
}'
|
||||
10
curl/notes/update/updateANote.sh
Executable file
10
curl/notes/update/updateANote.sh
Executable file
@@ -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"
|
||||
}
|
||||
}'
|
||||
6
curl/otp/generate/generateOtp.sh
Executable file
6
curl/otp/generate/generateOtp.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/otp/validate/validateOtp.sh
Executable file
7
curl/otp/validate/validateOtp.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/postcode/lookup/lookupPostcode.sh
Executable file
6
curl/postcode/lookup/lookupPostcode.sh
Executable file
@@ -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"
|
||||
}'
|
||||
4
curl/postcode/random/returnARandomPostcodeAndItsInformation.sh
Executable file
4
curl/postcode/random/returnARandomPostcodeAndItsInformation.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/postcode/Random" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
6
curl/postcode/validate/returnARandomPostcodeAndItsInformation.sh
Executable file
6
curl/postcode/validate/returnARandomPostcodeAndItsInformation.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/prayer/times/prayerTimes.sh
Executable file
6
curl/prayer/times/prayerTimes.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/qr/generate/generateAQrCode.sh
Executable file
7
curl/qr/generate/generateAQrCode.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/quran/chapters/listChapters.sh
Executable file
6
curl/quran/chapters/listChapters.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/quran/search/searchTheQuran.sh
Executable file
6
curl/quran/search/searchTheQuran.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/quran/summary/getChapterSummary.sh
Executable file
6
curl/quran/summary/getChapterSummary.sh
Executable file
@@ -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
|
||||
}'
|
||||
6
curl/quran/verses/getVersesOfAChapter.sh
Executable file
6
curl/quran/verses/getVersesOfAChapter.sh
Executable file
@@ -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
|
||||
}'
|
||||
13
curl/routing/directions/turnByTurnDirections.sh
Executable file
13
curl/routing/directions/turnByTurnDirections.sh
Executable file
@@ -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
|
||||
}
|
||||
}'
|
||||
13
curl/routing/eta/etaFromPointAToPointB.sh
Executable file
13
curl/routing/eta/etaFromPointAToPointB.sh
Executable file
@@ -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
|
||||
}
|
||||
}'
|
||||
13
curl/routing/route/gpsPointsForARoute.sh
Executable file
13
curl/routing/route/gpsPointsForARoute.sh
Executable file
@@ -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
|
||||
}
|
||||
}'
|
||||
8
curl/rss/add/addANewFeed.sh
Executable file
8
curl/rss/add/addANewFeed.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/rss/feed/readAFeed.sh
Executable file
6
curl/rss/feed/readAFeed.sh
Executable file
@@ -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"
|
||||
}'
|
||||
4
curl/rss/list/listRssFeeds.sh
Executable file
4
curl/rss/list/listRssFeeds.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/rss/List" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
6
curl/rss/remove/removeAFeed.sh
Executable file
6
curl/rss/remove/removeAFeed.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/sentiment/analyze/analyzeAPieceOfText.sh
Executable file
6
curl/sentiment/analyze/analyzeAPieceOfText.sh
Executable file
@@ -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"
|
||||
}'
|
||||
8
curl/sms/send/sendSms.sh
Executable file
8
curl/sms/send/sendSms.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/stock/history/getHistoricData.sh
Executable file
7
curl/stock/history/getHistoricData.sh
Executable file
@@ -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"
|
||||
}'
|
||||
10
curl/stock/orderBook/orderBookHistory.sh
Executable file
10
curl/stock/orderBook/orderBookHistory.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/stock/price/getAStockPrice.sh
Executable file
6
curl/stock/price/getAStockPrice.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/stock/quote/getAStockQuote.sh
Executable file
6
curl/stock/quote/getAStockQuote.sh
Executable file
@@ -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"
|
||||
}'
|
||||
11
curl/stream/publish/publishAMessage.sh
Executable file
11
curl/stream/publish/publishAMessage.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/stream/subscribe/subscribeToATopic.sh
Executable file
6
curl/stream/subscribe/subscribeToATopic.sh
Executable file
@@ -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"
|
||||
}'
|
||||
6
curl/sunnah/books/getTheBooksWithinACollection.sh
Executable file
6
curl/sunnah/books/getTheBooksWithinACollection.sh
Executable file
@@ -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"
|
||||
}'
|
||||
7
curl/sunnah/chapters/listTheChaptersInABook.sh
Executable file
7
curl/sunnah/chapters/listTheChaptersInABook.sh
Executable file
@@ -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"
|
||||
}'
|
||||
4
curl/sunnah/collections/listAvailableCollections.sh
Executable file
4
curl/sunnah/collections/listAvailableCollections.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/sunnah/Collections" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user