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
import (
"github.com/m3o/m3o-go/client"
"github.com/micro/micro-go/client"
)
func NewAddressService(token string) *AddressService {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -78,5 +78,5 @@
"prepare": "npm run build"
},
"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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

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

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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

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

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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-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 "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

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