Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-03 21:59:46 +00:00
parent db0befe675
commit 340daa09b4
185 changed files with 186 additions and 183 deletions

View File

@@ -1,7 +1,7 @@
package address package address
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewAddressService(token string) *AddressService { func NewAddressService(token string) *AddressService {

View File

@@ -1,7 +1,7 @@
package answer package answer
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewAnswerService(token string) *AnswerService { func NewAnswerService(token string) *AnswerService {

View File

@@ -1,7 +1,7 @@
package cache package cache
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewCacheService(token string) *CacheService { func NewCacheService(token string) *CacheService {

View File

@@ -1,7 +1,7 @@
package crypto package crypto
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewCryptoService(token string) *CryptoService { func NewCryptoService(token string) *CryptoService {

View File

@@ -1,7 +1,7 @@
package currency package currency
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewCurrencyService(token string) *CurrencyService { func NewCurrencyService(token string) *CurrencyService {

View File

@@ -1,7 +1,7 @@
package db package db
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewDbService(token string) *DbService { func NewDbService(token string) *DbService {

View File

@@ -1,7 +1,7 @@
package email package email
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewEmailService(token string) *EmailService { func NewEmailService(token string) *EmailService {

View File

@@ -1,7 +1,7 @@
package emoji package emoji
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewEmojiService(token string) *EmojiService { func NewEmojiService(token string) *EmojiService {

View File

@@ -1,7 +1,7 @@
package evchargers package evchargers
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewEvchargersService(token string) *EvchargersService { func NewEvchargersService(token string) *EvchargersService {

View File

@@ -1,7 +1,7 @@
package event package event
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewEventService(token string) *EventService { func NewEventService(token string) *EventService {

View File

@@ -1,7 +1,7 @@
package file package file
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewFileService(token string) *FileService { func NewFileService(token string) *FileService {

View File

@@ -1,7 +1,7 @@
package forex package forex
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewForexService(token string) *ForexService { func NewForexService(token string) *ForexService {

View File

@@ -1,7 +1,7 @@
package function package function
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewFunctionService(token string) *FunctionService { func NewFunctionService(token string) *FunctionService {

View File

@@ -1,7 +1,7 @@
package geocoding package geocoding
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewGeocodingService(token string) *GeocodingService { func NewGeocodingService(token string) *GeocodingService {

View File

@@ -1,7 +1,7 @@
package gifs package gifs
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewGifsService(token string) *GifsService { func NewGifsService(token string) *GifsService {

View File

@@ -1,7 +1,7 @@
package google package google
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewGoogleService(token string) *GoogleService { func NewGoogleService(token string) *GoogleService {

View File

@@ -1,7 +1,7 @@
package helloworld package helloworld
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewHelloworldService(token string) *HelloworldService { func NewHelloworldService(token string) *HelloworldService {

View File

@@ -1,7 +1,7 @@
package holidays package holidays
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewHolidaysService(token string) *HolidaysService { func NewHolidaysService(token string) *HolidaysService {

View File

@@ -1,7 +1,7 @@
package id package id
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewIdService(token string) *IdService { func NewIdService(token string) *IdService {

View File

@@ -1,7 +1,7 @@
package image package image
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewImageService(token string) *ImageService { func NewImageService(token string) *ImageService {

View File

@@ -1,7 +1,7 @@
package ip package ip
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewIpService(token string) *IpService { func NewIpService(token string) *IpService {

View File

@@ -1,7 +1,7 @@
package location package location
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewLocationService(token string) *LocationService { func NewLocationService(token string) *LocationService {

View File

@@ -1,4 +1,4 @@
package m3o package services
import ( import (
"github.com/micro/services/clients/go/address" "github.com/micro/services/clients/go/address"

View File

@@ -1,7 +1,7 @@
package mq package mq
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewMqService(token string) *MqService { func NewMqService(token string) *MqService {

View File

@@ -1,7 +1,7 @@
package notes package notes
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewNotesService(token string) *NotesService { func NewNotesService(token string) *NotesService {

View File

@@ -1,7 +1,7 @@
package otp package otp
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewOtpService(token string) *OtpService { func NewOtpService(token string) *OtpService {

View File

@@ -1,7 +1,7 @@
package postcode package postcode
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewPostcodeService(token string) *PostcodeService { func NewPostcodeService(token string) *PostcodeService {

View File

@@ -1,7 +1,7 @@
package prayer package prayer
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewPrayerService(token string) *PrayerService { func NewPrayerService(token string) *PrayerService {

View File

@@ -1,7 +1,7 @@
package qr package qr
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewQrService(token string) *QrService { func NewQrService(token string) *QrService {

View File

@@ -1,7 +1,7 @@
package quran package quran
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewQuranService(token string) *QuranService { func NewQuranService(token string) *QuranService {

View File

@@ -1,7 +1,7 @@
package routing package routing
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewRoutingService(token string) *RoutingService { func NewRoutingService(token string) *RoutingService {

View File

@@ -1,7 +1,7 @@
package rss package rss
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewRssService(token string) *RssService { func NewRssService(token string) *RssService {

View File

@@ -1,7 +1,7 @@
package sentiment package sentiment
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewSentimentService(token string) *SentimentService { func NewSentimentService(token string) *SentimentService {

View File

@@ -1,7 +1,7 @@
package sms package sms
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewSmsService(token string) *SmsService { func NewSmsService(token string) *SmsService {

View File

@@ -1,7 +1,7 @@
package stock package stock
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewStockService(token string) *StockService { func NewStockService(token string) *StockService {

View File

@@ -1,7 +1,7 @@
package stream package stream
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewStreamService(token string) *StreamService { func NewStreamService(token string) *StreamService {

View File

@@ -1,7 +1,7 @@
package sunnah package sunnah
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewSunnahService(token string) *SunnahService { func NewSunnahService(token string) *SunnahService {

View File

@@ -1,7 +1,7 @@
package thumbnail package thumbnail
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewThumbnailService(token string) *ThumbnailService { func NewThumbnailService(token string) *ThumbnailService {

View File

@@ -1,7 +1,7 @@
package time package time
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewTimeService(token string) *TimeService { func NewTimeService(token string) *TimeService {

View File

@@ -1,7 +1,7 @@
package twitter package twitter
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewTwitterService(token string) *TwitterService { func NewTwitterService(token string) *TwitterService {

View File

@@ -1,7 +1,7 @@
package url package url
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewUrlService(token string) *UrlService { func NewUrlService(token string) *UrlService {

View File

@@ -1,7 +1,7 @@
package user package user
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewUserService(token string) *UserService { func NewUserService(token string) *UserService {

View File

@@ -1,7 +1,7 @@
package vehicle package vehicle
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewVehicleService(token string) *VehicleService { func NewVehicleService(token string) *VehicleService {

View File

@@ -1,7 +1,7 @@
package weather package weather
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewWeatherService(token string) *WeatherService { func NewWeatherService(token string) *WeatherService {

View File

@@ -1,7 +1,7 @@
package youtube package youtube
import ( import (
"github.com/m3o/m3o-go/client" "github.com/micro/micro-go/client"
) )
func NewYoutubeService(token string) *YoutubeService { func NewYoutubeService(token string) *YoutubeService {

View File

@@ -78,5 +78,5 @@
"prepare": "npm run build" "prepare": "npm run build"
}, },
"types": "index.d.ts", "types": "index.d.ts",
"version": "1.0.624" "version": "1.0.629"
} }

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/address/LookupPostcode" \ curl "http://localhost:8080/address/LookupPostcode" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/answer/Question" \ curl "http://localhost:8080/answer/Question" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/cache/Decrement" \ curl "http://localhost:8080/cache/Decrement" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/cache/Delete" \ curl "http://localhost:8080/cache/Delete" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/cache/Get" \ curl "http://localhost:8080/cache/Get" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/cache/Increment" \ curl "http://localhost:8080/cache/Increment" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/cache/Set" \ curl "http://localhost:8080/cache/Set" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/crypto/History" \ curl "http://localhost:8080/crypto/History" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/crypto/News" \ curl "http://localhost:8080/crypto/News" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/crypto/Price" \ curl "http://localhost:8080/crypto/Price" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/crypto/Quote" \ curl "http://localhost:8080/crypto/Quote" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/currency/Codes" \ curl "http://localhost:8080/currency/Codes" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{}' -d '{}'

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/currency/Convert" \ curl "http://localhost:8080/currency/Convert" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/currency/Convert" \ curl "http://localhost:8080/currency/Convert" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/currency/History" \ curl "http://localhost:8080/currency/History" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/currency/Rates" \ curl "http://localhost:8080/currency/Rates" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Count" \ curl "http://localhost:8080/db/Count" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Create" \ curl "http://localhost:8080/db/Create" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -12,10 +12,10 @@ func CreateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Create(&db.CreateRequest{ rsp, err := dbService.Create(&db.CreateRequest{
Record: map[string]interface{}{ Record: map[string]interface{}{
"age": 42,
"isActive": true, "isActive": true,
"id": "1", "id": "1",
"name": "Jane", "name": "Jane",
"age": 42,
}, },
Table: "users", Table: "users",
}) })

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Delete" \ curl "http://localhost:8080/db/Delete" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Read" \ curl "http://localhost:8080/db/Read" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Truncate" \ curl "http://localhost:8080/db/Truncate" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Update" \ curl "http://localhost:8080/db/Update" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/email/Send" \ curl "http://localhost:8080/email/Send" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/emoji/Find" \ curl "http://localhost:8080/emoji/Find" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/emoji/Flag" \ curl "http://localhost:8080/emoji/Flag" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/emoji/Print" \ curl "http://localhost:8080/emoji/Print" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/emoji/Send" \ curl "http://localhost:8080/emoji/Send" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/evchargers/ReferenceData" \ curl "http://localhost:8080/evchargers/ReferenceData" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{}' -d '{}'

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/evchargers/Search" \ curl "http://localhost:8080/evchargers/Search" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/evchargers/Search" \ curl "http://localhost:8080/evchargers/Search" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/evchargers/Search" \ curl "http://localhost:8080/evchargers/Search" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/event/Consume" \ curl "http://localhost:8080/event/Consume" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/event/Publish" \ curl "http://localhost:8080/event/Publish" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -12,9 +12,9 @@ func PublishAnEvent() {
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN")) eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := eventService.Publish(&event.PublishRequest{ rsp, err := eventService.Publish(&event.PublishRequest{
Message: map[string]interface{}{ Message: map[string]interface{}{
"user": "john",
"id": "1", "id": "1",
"type": "signup", "type": "signup",
"user": "john",
}, },
Topic: "user", Topic: "user",
}) })

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/event/Read" \ curl "http://localhost:8080/event/Read" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/file/Delete" \ curl "http://localhost:8080/file/Delete" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/file/List" \ curl "http://localhost:8080/file/List" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/file/Read" \ curl "http://localhost:8080/file/Read" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/file/Save" \ curl "http://localhost:8080/file/Save" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/forex/History" \ curl "http://localhost:8080/forex/History" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/forex/Price" \ curl "http://localhost:8080/forex/Price" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/forex/Quote" \ curl "http://localhost:8080/forex/Quote" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/function/Call" \ curl "http://localhost:8080/function/Call" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/function/Delete" \ curl "http://localhost:8080/function/Delete" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/function/Deploy" \ curl "http://localhost:8080/function/Deploy" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/function/Describe" \ curl "http://localhost:8080/function/Describe" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/function/List" \ curl "http://localhost:8080/function/List" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{}' -d '{}'

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/geocoding/Lookup" \ curl "http://localhost:8080/geocoding/Lookup" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/geocoding/Reverse" \ curl "http://localhost:8080/geocoding/Reverse" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/gifs/Search" \ curl "http://localhost:8080/gifs/Search" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/google/Search" \ curl "http://localhost:8080/google/Search" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/helloworld/Call" \ curl "http://localhost:8080/helloworld/Call" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/helloworld/Stream" \ curl "http://localhost:8080/helloworld/Stream" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \ -H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{ -d '{

Some files were not shown because too many files have changed in this diff Show More